1 /* debugfs/ro_debug_cmds.c - automatically generated from debugfs/ro_debug_cmds.ct */
2 #include <ss/ss.h>
3 
4 static char const * const ssu00001[] = {
5 "show_debugfs_params",
6     "params",
7     (char const *)0
8 };
9 extern void do_show_debugfs_params __SS_PROTO;
10 static char const * const ssu00002[] = {
11 "open_filesys",
12     "open",
13     (char const *)0
14 };
15 extern void do_open_filesys __SS_PROTO;
16 static char const * const ssu00003[] = {
17 "close_filesys",
18     "close",
19     (char const *)0
20 };
21 extern void do_close_filesys __SS_PROTO;
22 static char const * const ssu00004[] = {
23 "freefrag",
24     "e2freefrag",
25     (char const *)0
26 };
27 extern void do_freefrag __SS_PROTO;
28 static char const * const ssu00005[] = {
29 "show_super_stats",
30     "stats",
31     (char const *)0
32 };
33 extern void do_show_super_stats __SS_PROTO;
34 static char const * const ssu00006[] = {
35 "ncheck",
36     (char const *)0
37 };
38 extern void do_ncheck __SS_PROTO;
39 static char const * const ssu00007[] = {
40 "icheck",
41     (char const *)0
42 };
43 extern void do_icheck __SS_PROTO;
44 static char const * const ssu00008[] = {
45 "change_root_directory",
46     "chroot",
47     (char const *)0
48 };
49 extern void do_chroot __SS_PROTO;
50 static char const * const ssu00009[] = {
51 "change_working_directory",
52     "cd",
53     (char const *)0
54 };
55 extern void do_change_working_dir __SS_PROTO;
56 static char const * const ssu00010[] = {
57 "list_directory",
58     "ls",
59     (char const *)0
60 };
61 extern void do_list_dir __SS_PROTO;
62 static char const * const ssu00011[] = {
63 "show_inode_info",
64     "stat",
65     (char const *)0
66 };
67 extern void do_stat __SS_PROTO;
68 static char const * const ssu00012[] = {
69 "dump_extents",
70     "extents",
71     "ex",
72     (char const *)0
73 };
74 extern void do_dump_extents __SS_PROTO;
75 static char const * const ssu00013[] = {
76 "blocks",
77     (char const *)0
78 };
79 extern void do_blocks __SS_PROTO;
80 static char const * const ssu00014[] = {
81 "filefrag",
82     (char const *)0
83 };
84 extern void do_filefrag __SS_PROTO;
85 static char const * const ssu00015[] = {
86 "testi",
87     (char const *)0
88 };
89 extern void do_testi __SS_PROTO;
90 static char const * const ssu00016[] = {
91 "find_free_block",
92     "ffb",
93     (char const *)0
94 };
95 extern void do_find_free_block __SS_PROTO;
96 static char const * const ssu00017[] = {
97 "find_free_inode",
98     "ffi",
99     (char const *)0
100 };
101 extern void do_find_free_inode __SS_PROTO;
102 static char const * const ssu00018[] = {
103 "print_working_directory",
104     "pwd",
105     (char const *)0
106 };
107 extern void do_print_working_directory __SS_PROTO;
108 static char const * const ssu00019[] = {
109 "list_deleted_inodes",
110     "lsdel",
111     (char const *)0
112 };
113 extern void do_lsdel __SS_PROTO;
114 static char const * const ssu00020[] = {
115 "logdump",
116     (char const *)0
117 };
118 extern void do_logdump __SS_PROTO;
119 static char const * const ssu00021[] = {
120 "htree_dump",
121     "htree",
122     (char const *)0
123 };
124 extern void do_htree_dump __SS_PROTO;
125 static char const * const ssu00022[] = {
126 "dx_hash",
127     "hash",
128     (char const *)0
129 };
130 extern void do_dx_hash __SS_PROTO;
131 static char const * const ssu00023[] = {
132 "dirsearch",
133     (char const *)0
134 };
135 extern void do_dirsearch __SS_PROTO;
136 static char const * const ssu00024[] = {
137 "bmap",
138     (char const *)0
139 };
140 extern void do_bmap __SS_PROTO;
141 static char const * const ssu00025[] = {
142 "imap",
143     (char const *)0
144 };
145 extern void do_imap __SS_PROTO;
146 static char const * const ssu00026[] = {
147 "supported_features",
148     (char const *)0
149 };
150 extern void do_supported_features __SS_PROTO;
151 static char const * const ssu00027[] = {
152 "dump_mmp",
153     (char const *)0
154 };
155 extern void do_dump_mmp __SS_PROTO;
156 static char const * const ssu00028[] = {
157 "extent_open",
158     "eo",
159     (char const *)0
160 };
161 extern void do_extent_open __SS_PROTO;
162 static char const * const ssu00029[] = {
163 "lost_quota",
164     "lq",
165     (char const *)0
166 };
167 extern void do_list_quota __SS_PROTO;
168 static char const * const ssu00030[] = {
169 "get_quota",
170     "gq",
171     (char const *)0
172 };
173 extern void do_get_quota __SS_PROTO;
174 static ss_request_entry ssu00031[] = {
175     { ssu00001,
176       do_show_debugfs_params,
177       "Show debugfs parameters",
178       0 },
179     { ssu00002,
180       do_open_filesys,
181       "Open a filesystem",
182       0 },
183     { ssu00003,
184       do_close_filesys,
185       "Close the filesystem",
186       0 },
187     { ssu00004,
188       do_freefrag,
189       "Report free space fragmentation",
190       0 },
191     { ssu00005,
192       do_show_super_stats,
193       "Show superblock statistics",
194       0 },
195     { ssu00006,
196       do_ncheck,
197       "Do inode->name translation",
198       0 },
199     { ssu00007,
200       do_icheck,
201       "Do block->inode translation",
202       0 },
203     { ssu00008,
204       do_chroot,
205       "Change root directory",
206       0 },
207     { ssu00009,
208       do_change_working_dir,
209       "Change working directory",
210       0 },
211     { ssu00010,
212       do_list_dir,
213       "List directory",
214       0 },
215     { ssu00011,
216       do_stat,
217       "Show inode information ",
218       0 },
219     { ssu00012,
220       do_dump_extents,
221       "Dump extents information ",
222       0 },
223     { ssu00013,
224       do_blocks,
225       "Dump blocks used by an inode ",
226       0 },
227     { ssu00014,
228       do_filefrag,
229       "Report fragmentation information for an inode",
230       0 },
231     { ssu00015,
232       do_testi,
233       "Test an inode's in-use flag",
234       0 },
235     { ssu00016,
236       do_find_free_block,
237       "Find free block(s)",
238       0 },
239     { ssu00017,
240       do_find_free_inode,
241       "Find free inode(s)",
242       0 },
243     { ssu00018,
244       do_print_working_directory,
245       "Print current working directory",
246       0 },
247     { ssu00019,
248       do_lsdel,
249       "List deleted inodes",
250       0 },
251     { ssu00020,
252       do_logdump,
253       "Dump the contents of the journal",
254       0 },
255     { ssu00021,
256       do_htree_dump,
257       "Dump a hash-indexed directory",
258       0 },
259     { ssu00022,
260       do_dx_hash,
261       "Calculate the directory hash of a filename",
262       0 },
263     { ssu00023,
264       do_dirsearch,
265       "Search a directory for a particular filename",
266       0 },
267     { ssu00024,
268       do_bmap,
269       "Calculate the logical->physical block mapping for an inode",
270       0 },
271     { ssu00025,
272       do_imap,
273       "Calculate the location of an inode",
274       0 },
275     { ssu00026,
276       do_supported_features,
277       "Print features supported by this version of e2fsprogs",
278       0 },
279     { ssu00027,
280       do_dump_mmp,
281       "Dump MMP information",
282       0 },
283     { ssu00028,
284       do_extent_open,
285       "Open inode for extent manipulation",
286       0 },
287     { ssu00029,
288       do_list_quota,
289       "List quota",
290       0 },
291     { ssu00030,
292       do_get_quota,
293       "Get quota",
294       0 },
295     { 0, 0, 0, 0 }
296 };
297 
298 ss_request_table debug_cmds = { 2, ssu00031 };
299