Home | History | Annotate | Download | only in ext2fs
      1 /*
      2  * ext2_err.c:
      3  * This file is automatically generated; please do not edit it.
      4  */
      5 
      6 #include <stdlib.h>
      7 
      8 static const char * const text[] = {
      9 		"EXT2FS Library version 1.40.8",
     10 		"Wrong magic number for ext2_filsys structure",
     11 		"Wrong magic number for badblocks_list structure",
     12 		"Wrong magic number for badblocks_iterate structure",
     13 		"Wrong magic number for inode_scan structure",
     14 		"Wrong magic number for io_channel structure",
     15 		"Wrong magic number for unix io_channel structure",
     16 		"Wrong magic number for io_manager structure",
     17 		"Wrong magic number for block_bitmap structure",
     18 		"Wrong magic number for inode_bitmap structure",
     19 		"Wrong magic number for generic_bitmap structure",
     20 		"Wrong magic number for test io_channel structure",
     21 		"Wrong magic number for directory block list structure",
     22 		"Wrong magic number for icount structure",
     23 		"Wrong magic number for Powerquest io_channel structure",
     24 		"Wrong magic number for ext2 file structure",
     25 		"Wrong magic number for Ext2 Image Header",
     26 		"Wrong magic number for inode io_channel structure",
     27 		"Wrong magic number --- RESERVED_9",
     28 		"Bad magic number in super-block",
     29 		"Filesystem revision too high",
     30 		"Attempt to write to filesystem opened read-only",
     31 		"Can't read group descriptors",
     32 		"Can't write group descriptors",
     33 		"Corrupt group descriptor: bad block for block bitmap",
     34 		"Corrupt group descriptor: bad block for inode bitmap",
     35 		"Corrupt group descriptor: bad block for inode table",
     36 		"Can't write an inode bitmap",
     37 		"Can't read an inode bitmap",
     38 		"Can't write an block bitmap",
     39 		"Can't read an block bitmap",
     40 		"Can't write an inode table",
     41 		"Can't read an inode table",
     42 		"Can't read next inode",
     43 		"Filesystem has unexpected block size",
     44 		"EXT2 directory corrupted",
     45 		"Attempt to read block from filesystem resulted in short read",
     46 		"Attempt to write block from filesystem resulted in short write",
     47 		"No free space in the directory",
     48 		"Inode bitmap not loaded",
     49 		"Block bitmap not loaded",
     50 		"Illegal inode number",
     51 		"Illegal block number",
     52 		"Internal error in ext2fs_expand_dir",
     53 		"Not enough space to build proposed filesystem",
     54 		"Illegal block number passed to ext2fs_mark_block_bitmap",
     55 		"Illegal block number passed to ext2fs_unmark_block_bitmap",
     56 		"Illegal block number passed to ext2fs_test_block_bitmap",
     57 		"Illegal inode number passed to ext2fs_mark_inode_bitmap",
     58 		"Illegal inode number passed to ext2fs_unmark_inode_bitmap",
     59 		"Illegal inode number passed to ext2fs_test_inode_bitmap",
     60 		"Attempt to fudge end of block bitmap past the real end",
     61 		"Attempt to fudge end of inode bitmap past the real end",
     62 		"Illegal indirect block found" ,
     63 		"Illegal doubly indirect block found" ,
     64 		"Illegal triply indirect block found" ,
     65 		"Block bitmaps are not the same",
     66 		"Inode bitmaps are not the same",
     67 		"Illegal or malformed device name",
     68 		"A block group is missing an inode table",
     69 		"The ext2 superblock is corrupt",
     70 		"Illegal generic bit number passed to ext2fs_mark_generic_bitmap",
     71 		"Illegal generic bit number passed to ext2fs_unmark_generic_bitmap",
     72 		"Illegal generic bit number passed to ext2fs_test_generic_bitmap",
     73 		"Too many symbolic links encountered.",
     74 		"The callback function will not handle this case",
     75 		"The inode is from a bad block in the inode table",
     76 		"Filesystem has unsupported feature(s)",
     77 		"Filesystem has unsupported read-only feature(s)",
     78 		"IO Channel failed to seek on read or write",
     79 		"Memory allocation failed",
     80 		"Invalid argument passed to ext2 library",
     81 		"Could not allocate block in ext2 filesystem",
     82 		"Could not allocate inode in ext2 filesystem",
     83 		"Ext2 inode is not a directory",
     84 		"Too many references in table",
     85 		"File not found by ext2_lookup",
     86 		"File open read-only",
     87 		"Ext2 directory block not found",
     88 		"Ext2 directory already exists",
     89 		"Unimplemented ext2 library function",
     90 		"User cancel requested",
     91 		"Ext2 file too big",
     92 		"Supplied journal device not a block device",
     93 		"Journal superblock not found",
     94 		"Journal must be at least 1024 blocks",
     95 		"Unsupported journal version",
     96 		"Error loading external journal",
     97 		"Journal not found",
     98 		"Directory hash unsupported",
     99 		"Illegal extended attribute block number",
    100 		"Cannot create filesystem with requested number of inodes",
    101 		"E2image snapshot not in use",
    102 		"Too many reserved group descriptor blocks",
    103 		"Resize inode is corrupt",
    104 		"Missing indirect block not present",
    105 		"TDB: Success",
    106 		"TDB: Corrupt database",
    107 		"TDB: IO Error",
    108 		"TDB: Locking error",
    109 		"TDB: Out of memory",
    110 		"TDB: Record exists",
    111 		"TDB: Lock exists on other keys",
    112 		"TDB: Invalid parameter",
    113 		"TDB: Record does not exist",
    114 		"TDB: Write not permitted",
    115 		"Ext2fs directory block list is empty",
    116     0
    117 };
    118 
    119 struct error_table {
    120     char const * const * msgs;
    121     long base;
    122     int n_msgs;
    123 };
    124 struct et_list {
    125     struct et_list *next;
    126     const struct error_table * table;
    127 };
    128 extern struct et_list *_et_list;
    129 
    130 const struct error_table et_ext2_error_table = { text, 2133571328L, 107 };
    131 
    132 static struct et_list link = { 0, 0 };
    133 
    134 void initialize_ext2_error_table_r(struct et_list **list);
    135 void initialize_ext2_error_table(void);
    136 
    137 void initialize_ext2_error_table(void) {
    138     initialize_ext2_error_table_r(&_et_list);
    139 }
    140 
    141 /* For Heimdal compatibility */
    142 void initialize_ext2_error_table_r(struct et_list **list)
    143 {
    144     struct et_list *et, **end;
    145 
    146     for (end = list, et = *list; et; end = &et->next, et = et->next)
    147         if (et->table->msgs == text)
    148             return;
    149     et = malloc(sizeof(struct et_list));
    150     if (et == 0) {
    151         if (!link.table)
    152             et = &link;
    153         else
    154             return;
    155     }
    156     et->table = &et_ext2_error_table;
    157     et->next = 0;
    158     *end = et;
    159 }
    160