| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 1 | # |
| Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 2 | # Copyright (C) 1993, 1994, 1995, 1996 Theodore Ts'o. |
| 3 | # |
| 4 | # %Begin-Header% |
| 5 | # This file may be redistributed under the terms of the GNU Public |
| 6 | # License. |
| 7 | # %End-Header% |
| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 8 | # |
| 9 | error_table ext2 |
| 10 | |
| 11 | ec EXT2_ET_BASE, |
| Theodore Ts'o | 74becf3 | 1997-04-26 14:37:06 +0000 | [diff] [blame] | 12 | "EXT2FS Library version @E2FSPROGS_VERSION@" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 13 | |
| 14 | ec EXT2_ET_MAGIC_EXT2FS_FILSYS, |
| 15 | "Wrong magic number for ext2_filsys structure" |
| 16 | |
| 17 | ec EXT2_ET_MAGIC_BADBLOCKS_LIST, |
| 18 | "Wrong magic number for badblocks_list structure" |
| 19 | |
| 20 | ec EXT2_ET_MAGIC_BADBLOCKS_ITERATE, |
| 21 | "Wrong magic number for badblocks_iterate structure" |
| 22 | |
| 23 | ec EXT2_ET_MAGIC_INODE_SCAN, |
| 24 | "Wrong magic number for inode_scan structure" |
| 25 | |
| 26 | ec EXT2_ET_MAGIC_IO_CHANNEL, |
| 27 | "Wrong magic number for io_channel structure" |
| 28 | |
| 29 | ec EXT2_ET_MAGIC_UNIX_IO_CHANNEL, |
| 30 | "Wrong magic number for unix io_channel structure" |
| 31 | |
| 32 | ec EXT2_ET_MAGIC_IO_MANAGER, |
| 33 | "Wrong magic number for io_manager structure" |
| 34 | |
| 35 | ec EXT2_ET_MAGIC_BLOCK_BITMAP, |
| 36 | "Wrong magic number for block_bitmap structure" |
| 37 | |
| 38 | ec EXT2_ET_MAGIC_INODE_BITMAP, |
| 39 | "Wrong magic number for inode_bitmap structure" |
| 40 | |
| Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 41 | ec EXT2_ET_MAGIC_GENERIC_BITMAP, |
| 42 | "Wrong magic number for generic_bitmap structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 43 | |
| Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 44 | ec EXT2_ET_MAGIC_TEST_IO_CHANNEL, |
| 45 | "Wrong magic number for test io_channel structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 46 | |
| Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 47 | ec EXT2_ET_MAGIC_DBLIST, |
| 48 | "Wrong magic number for directory block list structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 49 | |
| Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 50 | ec EXT2_ET_MAGIC_ICOUNT, |
| 51 | "Wrong magic number for icount structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 52 | |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 53 | ec EXT2_ET_MAGIC_PQ_IO_CHANNEL, |
| 54 | "Wrong magic number for Powerquest io_channel structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 55 | |
| Theodore Ts'o | 30fab29 | 1997-10-25 22:37:42 +0000 | [diff] [blame] | 56 | ec EXT2_ET_MAGIC_EXT2_FILE, |
| 57 | "Wrong magic number for ext2 file structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 58 | |
| Theodore Ts'o | 72ed126 | 2000-11-12 19:32:20 +0000 | [diff] [blame] | 59 | ec EXT2_ET_MAGIC_E2IMAGE, |
| 60 | "Wrong magic number for Ext2 Image Header" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 61 | |
| Theodore Ts'o | f12e285 | 2002-02-20 01:06:25 -0500 | [diff] [blame] | 62 | ec EXT2_ET_MAGIC_INODE_IO_CHANNEL, |
| 63 | "Wrong magic number for inode io_channel structure" |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 64 | |
| 65 | ec EXT2_ET_MAGIC_RESERVED_9, |
| 66 | "Wrong magic number --- RESERVED_9" |
| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 67 | |
| 68 | ec EXT2_ET_BAD_MAGIC, |
| 69 | "Bad magic number in super-block" |
| 70 | |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 71 | ec EXT2_ET_REV_TOO_HIGH, |
| 72 | "Filesystem revision too high" |
| 73 | |
| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 74 | ec EXT2_ET_RO_FILSYS, |
| 75 | "Attempt to write to filesystem opened read-only" |
| 76 | |
| 77 | ec EXT2_ET_GDESC_READ, |
| 78 | "Can't read group descriptors" |
| 79 | |
| 80 | ec EXT2_ET_GDESC_WRITE, |
| 81 | "Can't write group descriptors" |
| 82 | |
| 83 | ec EXT2_ET_GDESC_BAD_BLOCK_MAP, |
| 84 | "Corrupt group descriptor: bad block for block bitmap" |
| 85 | |
| 86 | ec EXT2_ET_GDESC_BAD_INODE_MAP, |
| 87 | "Corrupt group descriptor: bad block for inode bitmap" |
| 88 | |
| 89 | ec EXT2_ET_GDESC_BAD_INODE_TABLE, |
| 90 | "Corrupt group descriptor: bad block for inode table" |
| 91 | |
| 92 | ec EXT2_ET_INODE_BITMAP_WRITE, |
| 93 | "Can't write an inode bitmap" |
| 94 | |
| 95 | ec EXT2_ET_INODE_BITMAP_READ, |
| 96 | "Can't read an inode bitmap" |
| 97 | |
| 98 | ec EXT2_ET_BLOCK_BITMAP_WRITE, |
| 99 | "Can't write an block bitmap" |
| 100 | |
| 101 | ec EXT2_ET_BLOCK_BITMAP_READ, |
| 102 | "Can't read an block bitmap" |
| 103 | |
| 104 | ec EXT2_ET_INODE_TABLE_WRITE, |
| 105 | "Can't write an inode table" |
| 106 | |
| 107 | ec EXT2_ET_INODE_TABLE_READ, |
| 108 | "Can't read an inode table" |
| 109 | |
| 110 | ec EXT2_ET_NEXT_INODE_READ, |
| 111 | "Can't read next inode" |
| 112 | |
| 113 | ec EXT2_ET_UNEXPECTED_BLOCK_SIZE, |
| 114 | "Filesystem has unexpected block size" |
| 115 | |
| 116 | ec EXT2_ET_DIR_CORRUPTED, |
| 117 | "EXT2 directory corrupted" |
| 118 | |
| 119 | ec EXT2_ET_SHORT_READ, |
| 120 | "Attempt to read block from filesystem resulted in short read" |
| 121 | |
| 122 | ec EXT2_ET_SHORT_WRITE, |
| 123 | "Attempt to write block from filesystem resulted in short write" |
| 124 | |
| 125 | ec EXT2_ET_DIR_NO_SPACE, |
| 126 | "No free space in the directory" |
| 127 | |
| 128 | ec EXT2_ET_NO_INODE_BITMAP, |
| 129 | "Inode bitmap not loaded" |
| 130 | |
| 131 | ec EXT2_ET_NO_BLOCK_BITMAP, |
| Theodore Ts'o | 78d8f90 | 1997-10-26 01:53:39 +0000 | [diff] [blame] | 132 | "Block bitmap not loaded" |
| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 133 | |
| 134 | ec EXT2_ET_BAD_INODE_NUM, |
| 135 | "Illegal inode number" |
| 136 | |
| 137 | ec EXT2_ET_BAD_BLOCK_NUM, |
| 138 | "Illegal block number" |
| 139 | |
| 140 | ec EXT2_ET_EXPAND_DIR_ERR, |
| 141 | "Internal error in ext2fs_expand_dir" |
| 142 | |
| 143 | ec EXT2_ET_TOOSMALL, |
| 144 | "Not enough space to build proposed filesystem" |
| 145 | |
| Theodore Ts'o | f3db356 | 1997-04-26 13:34:30 +0000 | [diff] [blame] | 146 | ec EXT2_ET_BAD_BLOCK_MARK, |
| 147 | "Illegal block number passed to ext2fs_mark_block_bitmap" |
| 148 | |
| 149 | ec EXT2_ET_BAD_BLOCK_UNMARK, |
| 150 | "Illegal block number passed to ext2fs_unmark_block_bitmap" |
| 151 | |
| 152 | ec EXT2_ET_BAD_BLOCK_TEST, |
| 153 | "Illegal block number passed to ext2fs_test_block_bitmap" |
| 154 | |
| 155 | ec EXT2_ET_BAD_INODE_MARK, |
| 156 | "Illegal inode number passed to ext2fs_mark_inode_bitmap" |
| 157 | |
| 158 | ec EXT2_ET_BAD_INODE_UNMARK, |
| 159 | "Illegal inode number passed to ext2fs_unmark_inode_bitmap" |
| 160 | |
| 161 | ec EXT2_ET_BAD_INODE_TEST, |
| 162 | "Illegal inode number passed to ext2fs_test_inode_bitmap" |
| 163 | |
| 164 | ec EXT2_ET_FUDGE_BLOCK_BITMAP_END, |
| 165 | "Attempt to fudge end of block bitmap past the real end" |
| 166 | |
| 167 | ec EXT2_ET_FUDGE_INODE_BITMAP_END, |
| 168 | "Attempt to fudge end of inode bitmap past the real end" |
| 169 | |
| 170 | ec EXT2_ET_BAD_IND_BLOCK, |
| 171 | "Illegal indirect block found" |
| 172 | |
| 173 | ec EXT2_ET_BAD_DIND_BLOCK, |
| 174 | "Illegal doubly indirect block found" |
| 175 | |
| 176 | ec EXT2_ET_BAD_TIND_BLOCK, |
| 177 | "Illegal triply indirect block found" |
| 178 | |
| Theodore Ts'o | 50e1e10 | 1997-04-26 13:58:21 +0000 | [diff] [blame] | 179 | ec EXT2_ET_NEQ_BLOCK_BITMAP, |
| 180 | "Block bitmaps are not the same" |
| 181 | |
| 182 | ec EXT2_ET_NEQ_INODE_BITMAP, |
| 183 | "Inode bitmaps are not the same" |
| 184 | |
| 185 | ec EXT2_ET_BAD_DEVICE_NAME, |
| 186 | "Illegal or malformed device name" |
| 187 | |
| Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 188 | ec EXT2_ET_MISSING_INODE_TABLE, |
| Theodore Ts'o | 1e3472c | 1997-04-29 14:53:37 +0000 | [diff] [blame] | 189 | "A block group is missing an inode table" |
| 190 | |
| 191 | ec EXT2_ET_CORRUPT_SUPERBLOCK, |
| 192 | "The ext2 superblock is corrupt" |
| 193 | |
| 194 | ec EXT2_ET_BAD_GENERIC_MARK, |
| 195 | "Illegal generic bit number passed to ext2fs_mark_generic_bitmap" |
| 196 | |
| 197 | ec EXT2_ET_BAD_GENERIC_UNMARK, |
| 198 | "Illegal generic bit number passed to ext2fs_unmark_generic_bitmap" |
| 199 | |
| 200 | ec EXT2_ET_BAD_GENERIC_TEST, |
| 201 | "Illegal generic bit number passed to ext2fs_test_generic_bitmap" |
| 202 | |
| 203 | ec EXT2_ET_SYMLINK_LOOP, |
| 204 | "Too many symbolic links encountered." |
| 205 | |
| 206 | ec EXT2_ET_CALLBACK_NOTHANDLED, |
| 207 | "The callback function will not handle this case" |
| Theodore Ts'o | 7f88b04 | 1997-04-26 14:48:50 +0000 | [diff] [blame] | 208 | |
| Theodore Ts'o | 19c78dc | 1997-04-29 16:17:09 +0000 | [diff] [blame] | 209 | ec EXT2_ET_BAD_BLOCK_IN_INODE_TABLE, |
| 210 | "The inode is from a bad block in the inode table" |
| 211 | |
| 212 | ec EXT2_ET_UNSUPP_FEATURE, |
| 213 | "Filesystem has unsupported feature(s)" |
| 214 | |
| 215 | ec EXT2_ET_RO_UNSUPP_FEATURE, |
| 216 | "Filesystem has unsupported read-only feature(s)" |
| 217 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 218 | ec EXT2_ET_LLSEEK_FAILED, |
| Theodore Ts'o | a1230b1 | 1997-07-02 02:41:59 +0000 | [diff] [blame] | 219 | "IO Channel failed to seek on read or write" |
| 220 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 221 | ec EXT2_ET_NO_MEMORY, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 222 | "Memory allocation failed" |
| 223 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 224 | ec EXT2_ET_INVALID_ARGUMENT, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 225 | "Invalid argument passed to ext2 library" |
| 226 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 227 | ec EXT2_ET_BLOCK_ALLOC_FAIL, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 228 | "Could not allocate block in ext2 filesystem" |
| 229 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 230 | ec EXT2_ET_INODE_ALLOC_FAIL, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 231 | "Could not allocate inode in ext2 filesystem" |
| 232 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 233 | ec EXT2_ET_NO_DIRECTORY, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 234 | "Ext2 inode is not a directory" |
| 235 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 236 | ec EXT2_ET_TOO_MANY_REFS, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 237 | "Too many references in table" |
| 238 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 239 | ec EXT2_ET_FILE_NOT_FOUND, |
| Theodore Ts'o | 71b9714 | 1997-10-25 04:19:14 +0000 | [diff] [blame] | 240 | "File not found by ext2_lookup" |
| 241 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 242 | ec EXT2_ET_FILE_RO, |
| Theodore Ts'o | 30fab29 | 1997-10-25 22:37:42 +0000 | [diff] [blame] | 243 | "File open read-only" |
| 244 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 245 | ec EXT2_ET_DB_NOT_FOUND, |
| Theodore Ts'o | 78d8f90 | 1997-10-26 01:53:39 +0000 | [diff] [blame] | 246 | "Ext2 directory block not found" |
| 247 | |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 248 | ec EXT2_ET_DIR_EXISTS, |
| Theodore Ts'o | 78d8f90 | 1997-10-26 01:53:39 +0000 | [diff] [blame] | 249 | "Ext2 directory already exists" |
| 250 | |
| Theodore Ts'o | d36d835 | 1997-11-12 03:48:07 +0000 | [diff] [blame] | 251 | ec EXT2_ET_UNIMPLEMENTED, |
| 252 | "Unimplemented ext2 library function" |
| 253 | |
| Theodore Ts'o | c775256 | 1998-02-24 04:25:52 +0000 | [diff] [blame] | 254 | ec EXT2_ET_CANCEL_REQUESTED, |
| 255 | "User cancel requested" |
| 256 | |
| Theodore Ts'o | 674a4ee | 1998-03-23 02:06:52 +0000 | [diff] [blame] | 257 | ec EXT2_ET_FILE_TOO_BIG, |
| 258 | "Ext2 file too big" |
| 259 | |
| Theodore Ts'o | 0360394 | 2001-04-17 00:53:25 +0000 | [diff] [blame] | 260 | ec EXT2_ET_JOURNAL_NOT_BLOCK, |
| Theodore Ts'o | d3cd93c | 2000-10-24 18:33:16 +0000 | [diff] [blame] | 261 | "Supplied journal device not a block device" |
| 262 | |
| Theodore Ts'o | 0360394 | 2001-04-17 00:53:25 +0000 | [diff] [blame] | 263 | ec EXT2_ET_NO_JOURNAL_SB, |
| Theodore Ts'o | a112847 | 2001-01-16 06:56:14 +0000 | [diff] [blame] | 264 | "Journal superblock not found" |
| 265 | |
| Theodore Ts'o | 0360394 | 2001-04-17 00:53:25 +0000 | [diff] [blame] | 266 | ec EXT2_ET_JOURNAL_TOO_SMALL, |
| 267 | "Journal must be at least 1024 blocks" |
| 268 | |
| Theodore Ts'o | 4ed8ebe | 2001-05-23 18:30:10 +0000 | [diff] [blame] | 269 | ec EXT2_ET_JOURNAL_UNSUPP_VERSION, |
| 270 | "Unsupported journal version" |
| 271 | |
| Theodore Ts'o | adee8d7 | 2001-07-23 00:17:49 -0400 | [diff] [blame] | 272 | ec EXT2_ET_LOAD_EXT_JOURNAL, |
| 273 | "Error loading external journal" |
| 274 | |
| Theodore Ts'o | f12e285 | 2002-02-20 01:06:25 -0500 | [diff] [blame] | 275 | ec EXT2_ET_NO_JOURNAL, |
| 276 | "Journal not found" |
| 277 | |
| Theodore Ts'o | 52783e0 | 2002-03-11 15:04:45 -0500 | [diff] [blame] | 278 | ec EXT2_ET_DIRHASH_UNSUPP, |
| 279 | "Directory hash unsupported" |
| 280 | |
| Theodore Ts'o | 0684a4f | 2002-08-17 10:19:44 -0400 | [diff] [blame] | 281 | ec EXT2_ET_BAD_EA_BLOCK_NUM, |
| 282 | "Illegal extended attribute block number" |
| 283 | |
| Theodore Ts'o | 3839e65 | 1997-04-26 13:21:57 +0000 | [diff] [blame] | 284 | end |
| Theodore Ts'o | 291c904 | 1997-10-31 06:17:08 +0000 | [diff] [blame] | 285 | |