| /* |
| * ext2_err.c: |
| * This file is automatically generated; please do not edit it. |
| */ |
| #ifdef __STDC__ |
| #define NOARGS void |
| #else |
| #define NOARGS |
| #define const |
| #endif |
| |
| static const char * const text[] = { |
| "EXT2FS Library version 0.0", |
| "Bad magic number in super-block", |
| "Can't seek to superblock", |
| "Can't read superblock", |
| "Can't write superblock", |
| "Attempt to write to filesystem opened read-only", |
| "Can't read group descriptors", |
| "Can't write group descriptors", |
| "Corrupt group descriptor: bad block for block bitmap", |
| "Corrupt group descriptor: bad block for inode bitmap", |
| "Corrupt group descriptor: bad block for inode table", |
| "Can't write an inode bitmap", |
| "Can't read an inode bitmap", |
| "Can't write an block bitmap", |
| "Can't read an block bitmap", |
| "Can't write an inode table", |
| "Can't read an inode table", |
| "Can't read next inode", |
| "Filesystem has unexpected block size", |
| "EXT2 directory corrupted", |
| "Attempt to read block from filesystem resulted in short read", |
| "Attempt to write block from filesystem resulted in short write", |
| "No free space in the directory", |
| "Inode bitmap not loaded", |
| "BLOCK bitmap not loaded", |
| "Illegal inode number", |
| "Illegal block number", |
| "Internal error in ext2fs_expand_dir", |
| "Not enough space to build proposed filesystem", |
| 0 |
| }; |
| |
| struct error_table { |
| char const * const * msgs; |
| long base; |
| int n_msgs; |
| }; |
| struct et_list { |
| struct et_list *next; |
| const struct error_table * table; |
| }; |
| extern struct et_list *_et_list; |
| |
| static const struct error_table et = { text, 2133571328L, 29 }; |
| |
| static struct et_list link = { 0, 0 }; |
| |
| void initialize_ext2_error_table (NOARGS); |
| |
| void initialize_ext2_error_table (NOARGS) { |
| if (!link.table) { |
| link.next = _et_list; |
| link.table = &et; |
| _et_list = &link; |
| } |
| } |