Whamcloud - gitweb
Many files:
[tools/e2fsprogs.git] / lib / ext2fs / ext2_err.c
1 /*
2  * ext2_err.c:
3  * This file is automatically generated; please do not edit it.
4  */
5 #ifdef __STDC__
6 #define NOARGS void
7 #else
8 #define NOARGS
9 #define const
10 #endif
11
12 static const char * const text[] = {
13                 "EXT2FS Library version 0.0",
14                 "Bad magic number in super-block",
15                 "Can't seek to superblock",
16                 "Can't read superblock",
17                 "Can't write superblock",
18                 "Attempt to write to filesystem opened read-only",
19                 "Can't read group descriptors",
20                 "Can't write group descriptors",
21                 "Corrupt group descriptor: bad block for block bitmap",
22                 "Corrupt group descriptor: bad block for inode bitmap",
23                 "Corrupt group descriptor: bad block for inode table",
24                 "Can't write an inode bitmap",
25                 "Can't read an inode bitmap",
26                 "Can't write an block bitmap",
27                 "Can't read an block bitmap",
28                 "Can't write an inode table",
29                 "Can't read an inode table",
30                 "Can't read next inode",
31                 "Filesystem has unexpected block size",
32                 "EXT2 directory corrupted",
33                 "Attempt to read block from filesystem resulted in short read",
34                 "Attempt to write block from filesystem resulted in short write",
35                 "No free space in the directory",
36                 "Inode bitmap not loaded",
37                 "BLOCK bitmap not loaded",
38                 "Illegal inode number",
39                 "Illegal block number",
40                 "Internal error in ext2fs_expand_dir",
41                 "Not enough space to build proposed filesystem",
42     0
43 };
44
45 struct error_table {
46     char const * const * msgs;
47     long base;
48     int n_msgs;
49 };
50 struct et_list {
51     struct et_list *next;
52     const struct error_table * table;
53 };
54 extern struct et_list *_et_list;
55
56 static const struct error_table et = { text, 2133571328L, 29 };
57
58 static struct et_list link = { 0, 0 };
59
60 void initialize_ext2_error_table (NOARGS);
61
62 void initialize_ext2_error_table (NOARGS) {
63     if (!link.table) {
64         link.next = _et_list;
65         link.table = &et;
66         _et_list = &link;
67     }
68 }