ext2_err.c revision 65f0aab98b20b5994a726ab90d355248bcddfffd
1/*
2 * ext2_err.c:
3 * This file is automatically generated; please do not edit it.
4 */
5
6#include <stdlib.h>
7
8static const char * const text[] = {
9		"EXT2FS Library version 1.41.14",
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 for ext4 extent handle",
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		"Attempt to modify a block mapping via a read-only block iterator",
117		"Wrong magic number for ext4 extent saved path",
118		"Wrong magic number --- RESERVED_10",
119		"Wrong magic number --- RESERVED_11",
120		"Wrong magic number --- RESERVED_12",
121		"Wrong magic number --- RESERVED_13",
122		"Wrong magic number --- RESERVED_14",
123		"Wrong magic number --- RESERVED_15",
124		"Wrong magic number --- RESERVED_16",
125		"Wrong magic number --- RESERVED_17",
126		"Wrong magic number --- RESERVED_18",
127		"Wrong magic number --- RESERVED_19",
128		"Corrupt extent header",
129		"Corrupt extent index",
130		"Corrupt extent",
131		"No free space in extent map",
132		"Inode does not use extents",
133		"No 'next' extent",
134		"No 'previous' extent",
135		"No 'up' extent",
136		"No 'down' extent",
137		"No current node",
138		"Ext2fs operation not supported",
139		"No room to insert extent in node",
140		"Splitting would result in empty node",
141		"Extent not found",
142		"Operation not supported for inodes containing extents",
143		"Extent length is invalid",
144		"I/O Channel does not support 64-bit block numbers",
145		"Can't check if filesystem is mounted due to missing mtab file",
146    0
147};
148
149struct error_table {
150    char const * const * msgs;
151    long base;
152    int n_msgs;
153};
154struct et_list {
155    struct et_list *next;
156    const struct error_table * table;
157};
158extern struct et_list *_et_list;
159
160const struct error_table et_ext2_error_table = { text, 2133571328L, 137 };
161
162static struct et_list link = { 0, 0 };
163
164void initialize_ext2_error_table_r(struct et_list **list);
165void initialize_ext2_error_table(void);
166
167void initialize_ext2_error_table(void) {
168    initialize_ext2_error_table_r(&_et_list);
169}
170
171/* For Heimdal compatibility */
172void initialize_ext2_error_table_r(struct et_list **list)
173{
174    struct et_list *et, **end;
175
176    for (end = list, et = *list; et; end = &et->next, et = et->next)
177        if (et->table->msgs == text)
178            return;
179    et = malloc(sizeof(struct et_list));
180    if (et == 0) {
181        if (!link.table)
182            et = &link;
183        else
184            return;
185    }
186    et->table = &et_ext2_error_table;
187    et->next = 0;
188    *end = et;
189}
190