ext2_err.et.in 10.8 KB
Newer Older
Theodore Ts'o's avatar
Theodore Ts'o committed
1
#
Theodore Ts'o's avatar
Theodore Ts'o committed
2 3 4 5 6 7
# Copyright (C) 1993, 1994, 1995, 1996 Theodore Ts'o.  
#
# %Begin-Header%
# This file may be redistributed under the terms of the GNU Public
# License.
# %End-Header%
Theodore Ts'o's avatar
Theodore Ts'o committed
8 9 10 11
#
	error_table ext2

ec	EXT2_ET_BASE,
Theodore Ts'o's avatar
Theodore Ts'o committed
12
	"EXT2FS Library version @E2FSPROGS_VERSION@"
Theodore Ts'o's avatar
Theodore Ts'o committed
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40

ec	EXT2_ET_MAGIC_EXT2FS_FILSYS,
	"Wrong magic number for ext2_filsys structure"

ec	EXT2_ET_MAGIC_BADBLOCKS_LIST,
	"Wrong magic number for badblocks_list structure"

ec	EXT2_ET_MAGIC_BADBLOCKS_ITERATE,
	"Wrong magic number for badblocks_iterate structure"

ec	EXT2_ET_MAGIC_INODE_SCAN,
	"Wrong magic number for inode_scan structure"

ec	EXT2_ET_MAGIC_IO_CHANNEL,
	"Wrong magic number for io_channel structure"

ec	EXT2_ET_MAGIC_UNIX_IO_CHANNEL,
	"Wrong magic number for unix io_channel structure"

ec	EXT2_ET_MAGIC_IO_MANAGER,
	"Wrong magic number for io_manager structure"

ec	EXT2_ET_MAGIC_BLOCK_BITMAP,
	"Wrong magic number for block_bitmap structure"

ec	EXT2_ET_MAGIC_INODE_BITMAP,
	"Wrong magic number for inode_bitmap structure"

Theodore Ts'o's avatar
Theodore Ts'o committed
41 42
ec	EXT2_ET_MAGIC_GENERIC_BITMAP,
	"Wrong magic number for generic_bitmap structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
43

Theodore Ts'o's avatar
Theodore Ts'o committed
44 45
ec	EXT2_ET_MAGIC_TEST_IO_CHANNEL,
	"Wrong magic number for test io_channel structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
46

Theodore Ts'o's avatar
Theodore Ts'o committed
47 48
ec	EXT2_ET_MAGIC_DBLIST,
	"Wrong magic number for directory block list structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
49

Theodore Ts'o's avatar
Theodore Ts'o committed
50 51
ec	EXT2_ET_MAGIC_ICOUNT,
	"Wrong magic number for icount structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
52

Theodore Ts'o's avatar
Theodore Ts'o committed
53 54
ec	EXT2_ET_MAGIC_PQ_IO_CHANNEL,
	"Wrong magic number for Powerquest io_channel structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
55

Theodore Ts'o's avatar
Theodore Ts'o committed
56 57
ec	EXT2_ET_MAGIC_EXT2_FILE,
	"Wrong magic number for ext2 file structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
58

59 60
ec	EXT2_ET_MAGIC_E2IMAGE,
	"Wrong magic number for Ext2 Image Header"
Theodore Ts'o's avatar
Theodore Ts'o committed
61

62 63
ec	EXT2_ET_MAGIC_INODE_IO_CHANNEL,
	"Wrong magic number for inode io_channel structure"
Theodore Ts'o's avatar
Theodore Ts'o committed
64

65 66
ec	EXT2_ET_MAGIC_EXTENT_HANDLE,
	"Wrong magic number for ext4 extent handle"
Theodore Ts'o's avatar
Theodore Ts'o committed
67 68 69 70

ec	EXT2_ET_BAD_MAGIC,
	"Bad magic number in super-block"

Theodore Ts'o's avatar
Theodore Ts'o committed
71 72 73
ec	EXT2_ET_REV_TOO_HIGH,
	"Filesystem revision too high"

Theodore Ts'o's avatar
Theodore Ts'o committed
74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
ec	EXT2_ET_RO_FILSYS,
	"Attempt to write to filesystem opened read-only"

ec	EXT2_ET_GDESC_READ,
	"Can't read group descriptors"

ec	EXT2_ET_GDESC_WRITE,
	"Can't write group descriptors"

ec	EXT2_ET_GDESC_BAD_BLOCK_MAP,
	"Corrupt group descriptor: bad block for block bitmap"

ec	EXT2_ET_GDESC_BAD_INODE_MAP,
	"Corrupt group descriptor: bad block for inode bitmap"

ec	EXT2_ET_GDESC_BAD_INODE_TABLE,
	"Corrupt group descriptor: bad block for inode table"

ec	EXT2_ET_INODE_BITMAP_WRITE,
	"Can't write an inode bitmap"

ec	EXT2_ET_INODE_BITMAP_READ,
	"Can't read an inode bitmap"

ec	EXT2_ET_BLOCK_BITMAP_WRITE,
99
	"Can't write a block bitmap"
Theodore Ts'o's avatar
Theodore Ts'o committed
100 101

ec	EXT2_ET_BLOCK_BITMAP_READ,
102
	"Can't read a block bitmap"
Theodore Ts'o's avatar
Theodore Ts'o committed
103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122

ec	EXT2_ET_INODE_TABLE_WRITE,
	"Can't write an inode table"

ec	EXT2_ET_INODE_TABLE_READ,
	"Can't read an inode table"

ec	EXT2_ET_NEXT_INODE_READ,
	"Can't read next inode"

ec	EXT2_ET_UNEXPECTED_BLOCK_SIZE,
	"Filesystem has unexpected block size"

ec	EXT2_ET_DIR_CORRUPTED,
	"EXT2 directory corrupted"

ec	EXT2_ET_SHORT_READ,
	"Attempt to read block from filesystem resulted in short read"

ec	EXT2_ET_SHORT_WRITE,
123
	"Attempt to write block to filesystem resulted in short write"
Theodore Ts'o's avatar
Theodore Ts'o committed
124 125 126 127 128 129 130 131

ec	EXT2_ET_DIR_NO_SPACE,
	"No free space in the directory"

ec	EXT2_ET_NO_INODE_BITMAP,
	"Inode bitmap not loaded"

ec	EXT2_ET_NO_BLOCK_BITMAP,
Theodore Ts'o's avatar
bmap.c:  
Theodore Ts'o committed
132
	"Block bitmap not loaded"
Theodore Ts'o's avatar
Theodore Ts'o committed
133 134 135 136 137 138 139 140 141 142 143 144 145

ec	EXT2_ET_BAD_INODE_NUM,
	"Illegal inode number"

ec	EXT2_ET_BAD_BLOCK_NUM,
	"Illegal block number"

ec	EXT2_ET_EXPAND_DIR_ERR,
	"Internal error in ext2fs_expand_dir"

ec	EXT2_ET_TOOSMALL,
	"Not enough space to build proposed filesystem"

Theodore Ts'o's avatar
Theodore Ts'o committed
146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
ec	EXT2_ET_BAD_BLOCK_MARK,
	"Illegal block number passed to ext2fs_mark_block_bitmap"

ec	EXT2_ET_BAD_BLOCK_UNMARK,
	"Illegal block number passed to ext2fs_unmark_block_bitmap"

ec	EXT2_ET_BAD_BLOCK_TEST,
	"Illegal block number passed to ext2fs_test_block_bitmap"

ec	EXT2_ET_BAD_INODE_MARK,
	"Illegal inode number passed to ext2fs_mark_inode_bitmap"

ec	EXT2_ET_BAD_INODE_UNMARK,
	"Illegal inode number passed to ext2fs_unmark_inode_bitmap"

ec	EXT2_ET_BAD_INODE_TEST,
	"Illegal inode number passed to ext2fs_test_inode_bitmap"

ec	EXT2_ET_FUDGE_BLOCK_BITMAP_END,
	"Attempt to fudge end of block bitmap past the real end"

ec	EXT2_ET_FUDGE_INODE_BITMAP_END,
	"Attempt to fudge end of inode bitmap past the real end"

ec	EXT2_ET_BAD_IND_BLOCK,
	"Illegal indirect block found" 

ec	EXT2_ET_BAD_DIND_BLOCK,
	"Illegal doubly indirect block found" 

ec	EXT2_ET_BAD_TIND_BLOCK,
	"Illegal triply indirect block found" 

Theodore Ts'o's avatar
Theodore Ts'o committed
179 180 181 182 183 184 185 186 187
ec	EXT2_ET_NEQ_BLOCK_BITMAP,
	"Block bitmaps are not the same"

ec	EXT2_ET_NEQ_INODE_BITMAP,
	"Inode bitmaps are not the same"

ec	EXT2_ET_BAD_DEVICE_NAME,
	"Illegal or malformed device name"

Theodore Ts'o's avatar
Theodore Ts'o committed
188
ec	EXT2_ET_MISSING_INODE_TABLE,
Theodore Ts'o's avatar
Theodore Ts'o committed
189
	"A block group is missing an inode table"
Theodore Ts'o's avatar
Theodore Ts'o committed
190

Theodore Ts'o's avatar
Theodore Ts'o committed
191 192 193 194 195 196 197 198 199 200 201
ec	EXT2_ET_CORRUPT_SUPERBLOCK,
	"The ext2 superblock is corrupt"

ec	EXT2_ET_BAD_GENERIC_MARK,
	"Illegal generic bit number passed to ext2fs_mark_generic_bitmap"

ec	EXT2_ET_BAD_GENERIC_UNMARK,
	"Illegal generic bit number passed to ext2fs_unmark_generic_bitmap"

ec	EXT2_ET_BAD_GENERIC_TEST,
	"Illegal generic bit number passed to ext2fs_test_generic_bitmap"
Theodore Ts'o's avatar
Theodore Ts'o committed
202

Theodore Ts'o's avatar
Theodore Ts'o committed
203 204 205 206 207 208
ec	EXT2_ET_SYMLINK_LOOP,
	"Too many symbolic links encountered."

ec	EXT2_ET_CALLBACK_NOTHANDLED,
	"The callback function will not handle this case"

Theodore Ts'o's avatar
Theodore Ts'o committed
209 210 211 212 213 214 215 216 217
ec	EXT2_ET_BAD_BLOCK_IN_INODE_TABLE,
	"The inode is from a bad block in the inode table"

ec	EXT2_ET_UNSUPP_FEATURE,
	"Filesystem has unsupported feature(s)"

ec	EXT2_ET_RO_UNSUPP_FEATURE,
	"Filesystem has unsupported read-only feature(s)"

218
ec	EXT2_ET_LLSEEK_FAILED,
219 220
	"IO Channel failed to seek on read or write"

221
ec	EXT2_ET_NO_MEMORY,
Theodore Ts'o's avatar
Theodore Ts'o committed
222 223
	"Memory allocation failed"

224
ec	EXT2_ET_INVALID_ARGUMENT,
Theodore Ts'o's avatar
Theodore Ts'o committed
225 226
	"Invalid argument passed to ext2 library"

227
ec	EXT2_ET_BLOCK_ALLOC_FAIL,
Theodore Ts'o's avatar
Theodore Ts'o committed
228 229
	"Could not allocate block in ext2 filesystem"

230
ec	EXT2_ET_INODE_ALLOC_FAIL,
Theodore Ts'o's avatar
Theodore Ts'o committed
231 232
	"Could not allocate inode in ext2 filesystem"

233
ec	EXT2_ET_NO_DIRECTORY,
Theodore Ts'o's avatar
Theodore Ts'o committed
234 235
	"Ext2 inode is not a directory"

236
ec	EXT2_ET_TOO_MANY_REFS,
Theodore Ts'o's avatar
Theodore Ts'o committed
237 238
	"Too many references in table"

239
ec	EXT2_ET_FILE_NOT_FOUND,
Theodore Ts'o's avatar
Theodore Ts'o committed
240 241
	"File not found by ext2_lookup"

242
ec	EXT2_ET_FILE_RO,
Theodore Ts'o's avatar
Theodore Ts'o committed
243 244
	"File open read-only"

245
ec	EXT2_ET_DB_NOT_FOUND,
Theodore Ts'o's avatar
bmap.c:  
Theodore Ts'o committed
246 247
	"Ext2 directory block not found"

248
ec	EXT2_ET_DIR_EXISTS,
Theodore Ts'o's avatar
bmap.c:  
Theodore Ts'o committed
249 250
	"Ext2 directory already exists"

251 252 253
ec	EXT2_ET_UNIMPLEMENTED,
	"Unimplemented ext2 library function"

Theodore Ts'o's avatar
Theodore Ts'o committed
254 255 256
ec	EXT2_ET_CANCEL_REQUESTED,
	"User cancel requested"

Theodore Ts'o's avatar
Theodore Ts'o committed
257 258 259
ec	EXT2_ET_FILE_TOO_BIG,
	"Ext2 file too big"

260
ec	EXT2_ET_JOURNAL_NOT_BLOCK,
261 262
	"Supplied journal device not a block device"

263
ec	EXT2_ET_NO_JOURNAL_SB,
264 265
	"Journal superblock not found"

266 267 268
ec	EXT2_ET_JOURNAL_TOO_SMALL,
	"Journal must be at least 1024 blocks"

Theodore Ts'o's avatar
Theodore Ts'o committed
269 270 271
ec	EXT2_ET_JOURNAL_UNSUPP_VERSION,
	"Unsupported journal version"

272 273 274
ec	EXT2_ET_LOAD_EXT_JOURNAL,
	"Error loading external journal"

275 276 277
ec	EXT2_ET_NO_JOURNAL,
	"Journal not found"

278 279 280
ec	EXT2_ET_DIRHASH_UNSUPP,
	"Directory hash unsupported"

281 282 283
ec	EXT2_ET_BAD_EA_BLOCK_NUM,
	"Illegal extended attribute block number"

284 285 286
ec	EXT2_ET_TOO_MANY_INODES,
	"Cannot create filesystem with requested number of inodes"

287 288 289
ec	EXT2_ET_NOT_IMAGE_FILE,
	"E2image snapshot not in use"

290 291 292
ec	EXT2_ET_RES_GDT_BLOCKS,
	"Too many reserved group descriptor blocks"

293 294 295
ec	EXT2_ET_RESIZE_INODE_CORRUPT,
	"Resize inode is corrupt"

296
ec	EXT2_ET_SET_BMAP_NO_IND,
297
	"Tried to set block bmap with missing indirect block"
298

Theodore Ts'o's avatar
Theodore Ts'o committed
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328
ec	EXT2_ET_TDB_SUCCESS,
	"TDB: Success"

ec	EXT2_ET_TDB_ERR_CORRUPT,
	"TDB: Corrupt database"

ec	EXT2_ET_TDB_ERR_IO,
	"TDB: IO Error"

ec	EXT2_ET_TDB_ERR_LOCK,
	"TDB: Locking error"

ec	EXT2_ET_TDB_ERR_OOM,
	"TDB: Out of memory"

ec	EXT2_ET_TDB_ERR_EXISTS,
	"TDB: Record exists"

ec	EXT2_ET_TDB_ERR_NOLOCK,
	"TDB: Lock exists on other keys"

ec	EXT2_ET_TDB_ERR_EINVAL,
	"TDB: Invalid parameter"

ec	EXT2_ET_TDB_ERR_NOEXIST,
	"TDB: Record does not exist"

ec	EXT2_ET_TDB_ERR_RDONLY,
	"TDB: Write not permitted"

329 330 331
ec	EXT2_ET_DBLIST_EMPTY,
	"Ext2fs directory block list is empty"

332 333 334
ec	EXT2_ET_RO_BLOCK_ITERATE,
	"Attempt to modify a block mapping via a read-only block iterator"

335 336 337
ec	EXT2_ET_MAGIC_EXTENT_PATH,
	"Wrong magic number for ext4 extent saved path"

338 339
ec	EXT2_ET_MAGIC_GENERIC_BITMAP64,
	"Wrong magic number for 64-bit generic bitmap"
340

341 342
ec	EXT2_ET_MAGIC_BLOCK_BITMAP64,
	"Wrong magic number for 64-bit block bitmap"
343

344 345
ec	EXT2_ET_MAGIC_INODE_BITMAP64,
	"Wrong magic number for 64-bit inode bitmap"
346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372

ec	EXT2_ET_MAGIC_RESERVED_13,
	"Wrong magic number --- RESERVED_13"

ec	EXT2_ET_MAGIC_RESERVED_14,
	"Wrong magic number --- RESERVED_14"

ec	EXT2_ET_MAGIC_RESERVED_15,
	"Wrong magic number --- RESERVED_15"

ec	EXT2_ET_MAGIC_RESERVED_16,
	"Wrong magic number --- RESERVED_16"

ec	EXT2_ET_MAGIC_RESERVED_17,
	"Wrong magic number --- RESERVED_17"

ec	EXT2_ET_MAGIC_RESERVED_18,
	"Wrong magic number --- RESERVED_18"

ec	EXT2_ET_MAGIC_RESERVED_19,
	"Wrong magic number --- RESERVED_19"

ec	EXT2_ET_EXTENT_HEADER_BAD,
	"Corrupt extent header"

ec	EXT2_ET_EXTENT_INDEX_BAD,
	"Corrupt extent index"
373

374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403
ec	EXT2_ET_EXTENT_LEAF_BAD,
	"Corrupt extent"

ec	EXT2_ET_EXTENT_NO_SPACE,
	"No free space in extent map"

ec	EXT2_ET_INODE_NOT_EXTENT,
	"Inode does not use extents"

ec	EXT2_ET_EXTENT_NO_NEXT,
	"No 'next' extent"

ec	EXT2_ET_EXTENT_NO_PREV,
	"No 'previous' extent"

ec	EXT2_ET_EXTENT_NO_UP,
	"No 'up' extent"

ec	EXT2_ET_EXTENT_NO_DOWN,
	"No 'down' extent"

ec	EXT2_ET_NO_CURRENT_NODE,
	"No current node"

ec	EXT2_ET_OP_NOT_SUPPORTED,
	"Ext2fs operation not supported"

ec	EXT2_ET_CANT_INSERT_EXTENT,
	"No room to insert extent in node"

404 405 406
ec	EXT2_ET_CANT_SPLIT_EXTENT,
	"Splitting would result in empty node"

407 408 409
ec	EXT2_ET_EXTENT_NOT_FOUND,
	"Extent not found"

410 411
ec	EXT2_ET_EXTENT_NOT_SUPPORTED,
	"Operation not supported for inodes containing extents"
Theodore Ts'o's avatar
Theodore Ts'o committed
412

413 414 415
ec	EXT2_ET_EXTENT_INVALID_LENGTH,
	"Extent length is invalid"

416 417 418
ec	EXT2_ET_IO_CHANNEL_NO_SUPPORT_64,
	"I/O Channel does not support 64-bit block numbers"

419
ec	EXT2_ET_NO_MTAB_FILE,
420 421
	"Can't check if filesystem is mounted due to missing mtab file"

422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478
ec	EXT2_ET_CANT_USE_LEGACY_BITMAPS,
	"Filesystem too large to use legacy bitmaps"

ec	EXT2_ET_MMP_MAGIC_INVALID,
	"MMP: invalid magic number"

ec	EXT2_ET_MMP_FAILED,
	"MMP: device currently active"

ec	EXT2_ET_MMP_FSCK_ON,
	"MMP: fsck being run"

ec	EXT2_ET_MMP_BAD_BLOCK,
	"MMP: block number beyond filesystem range"

ec	EXT2_ET_MMP_UNKNOWN_SEQ,
	"MMP: undergoing an unknown operation"

ec	EXT2_ET_MMP_CHANGE_ABORT,
	"MMP: filesystem still in use"

ec	EXT2_ET_MMP_OPEN_DIRECT,
	"MMP: open with O_DIRECT failed"

ec	EXT2_ET_BAD_DESC_SIZE,
	"Block group descriptor size incorrect"

ec	EXT2_ET_INODE_CSUM_INVALID,
	"Inode checksum does not match inode"

ec	EXT2_ET_INODE_BITMAP_CSUM_INVALID,
	"Inode bitmap checksum does not match bitmap"

ec	EXT2_ET_EXTENT_CSUM_INVALID,
	"Extent block checksum does not match extent block"

ec	EXT2_ET_DIR_NO_SPACE_FOR_CSUM,
	"Directory block does not have space for checksum"

ec	EXT2_ET_DIR_CSUM_INVALID,
	"Directory block checksum does not match directory block"

ec	EXT2_ET_EXT_ATTR_CSUM_INVALID,
	"Extended attribute block checksum does not match block"

ec	EXT2_ET_SB_CSUM_INVALID,
	"Superblock checksum does not match superblock"

ec	EXT2_ET_UNKNOWN_CSUM,
	"Unknown checksum algorithm"

ec	EXT2_ET_MMP_CSUM_INVALID,
	"MMP block checksum does not match MMP block"

ec	EXT2_ET_FILE_EXISTS,
	"Ext2 file already exists"

479
	end