• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* debugfs/debug_cmds.c - automatically generated from debugfs/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 "feature",
30     "features",
31     (char const *)0
32 };
33 extern void do_features __SS_PROTO;
34 static char const * const ssu00006[] = {
35 "dirty_filesys",
36     "dirty",
37     (char const *)0
38 };
39 extern void do_dirty_filesys __SS_PROTO;
40 static char const * const ssu00007[] = {
41 "init_filesys",
42     (char const *)0
43 };
44 extern void do_init_filesys __SS_PROTO;
45 static char const * const ssu00008[] = {
46 "show_super_stats",
47     "stats",
48     (char const *)0
49 };
50 extern void do_show_super_stats __SS_PROTO;
51 static char const * const ssu00009[] = {
52 "ncheck",
53     (char const *)0
54 };
55 extern void do_ncheck __SS_PROTO;
56 static char const * const ssu00010[] = {
57 "icheck",
58     (char const *)0
59 };
60 extern void do_icheck __SS_PROTO;
61 static char const * const ssu00011[] = {
62 "change_root_directory",
63     "chroot",
64     (char const *)0
65 };
66 extern void do_chroot __SS_PROTO;
67 static char const * const ssu00012[] = {
68 "change_working_directory",
69     "cd",
70     (char const *)0
71 };
72 extern void do_change_working_dir __SS_PROTO;
73 static char const * const ssu00013[] = {
74 "list_directory",
75     "ls",
76     (char const *)0
77 };
78 extern void do_list_dir __SS_PROTO;
79 static char const * const ssu00014[] = {
80 "show_inode_info",
81     "stat",
82     (char const *)0
83 };
84 extern void do_stat __SS_PROTO;
85 static char const * const ssu00015[] = {
86 "dump_extents",
87     "extents",
88     "ex",
89     (char const *)0
90 };
91 extern void do_dump_extents __SS_PROTO;
92 static char const * const ssu00016[] = {
93 "blocks",
94     (char const *)0
95 };
96 extern void do_blocks __SS_PROTO;
97 static char const * const ssu00017[] = {
98 "filefrag",
99     (char const *)0
100 };
101 extern void do_filefrag __SS_PROTO;
102 static char const * const ssu00018[] = {
103 "link",
104     "ln",
105     (char const *)0
106 };
107 extern void do_link __SS_PROTO;
108 static char const * const ssu00019[] = {
109 "unlink",
110     (char const *)0
111 };
112 extern void do_unlink __SS_PROTO;
113 static char const * const ssu00020[] = {
114 "mkdir",
115     (char const *)0
116 };
117 extern void do_mkdir __SS_PROTO;
118 static char const * const ssu00021[] = {
119 "rmdir",
120     (char const *)0
121 };
122 extern void do_rmdir __SS_PROTO;
123 static char const * const ssu00022[] = {
124 "rm",
125     (char const *)0
126 };
127 extern void do_rm __SS_PROTO;
128 static char const * const ssu00023[] = {
129 "kill_file",
130     (char const *)0
131 };
132 extern void do_kill_file __SS_PROTO;
133 static char const * const ssu00024[] = {
134 "copy_inode",
135     (char const *)0
136 };
137 extern void do_copy_inode __SS_PROTO;
138 static char const * const ssu00025[] = {
139 "clri",
140     (char const *)0
141 };
142 extern void do_clri __SS_PROTO;
143 static char const * const ssu00026[] = {
144 "freei",
145     (char const *)0
146 };
147 extern void do_freei __SS_PROTO;
148 static char const * const ssu00027[] = {
149 "seti",
150     (char const *)0
151 };
152 extern void do_seti __SS_PROTO;
153 static char const * const ssu00028[] = {
154 "testi",
155     (char const *)0
156 };
157 extern void do_testi __SS_PROTO;
158 static char const * const ssu00029[] = {
159 "freeb",
160     (char const *)0
161 };
162 extern void do_freeb __SS_PROTO;
163 static char const * const ssu00030[] = {
164 "setb",
165     (char const *)0
166 };
167 extern void do_setb __SS_PROTO;
168 static char const * const ssu00031[] = {
169 "testb",
170     (char const *)0
171 };
172 extern void do_testb __SS_PROTO;
173 static char const * const ssu00032[] = {
174 "modify_inode",
175     "mi",
176     (char const *)0
177 };
178 extern void do_modify_inode __SS_PROTO;
179 static char const * const ssu00033[] = {
180 "find_free_block",
181     "ffb",
182     (char const *)0
183 };
184 extern void do_find_free_block __SS_PROTO;
185 static char const * const ssu00034[] = {
186 "find_free_inode",
187     "ffi",
188     (char const *)0
189 };
190 extern void do_find_free_inode __SS_PROTO;
191 static char const * const ssu00035[] = {
192 "print_working_directory",
193     "pwd",
194     (char const *)0
195 };
196 extern void do_print_working_directory __SS_PROTO;
197 static char const * const ssu00036[] = {
198 "expand_dir",
199     "expand",
200     (char const *)0
201 };
202 extern void do_expand_dir __SS_PROTO;
203 static char const * const ssu00037[] = {
204 "mknod",
205     (char const *)0
206 };
207 extern void do_mknod __SS_PROTO;
208 static char const * const ssu00038[] = {
209 "list_deleted_inodes",
210     "lsdel",
211     (char const *)0
212 };
213 extern void do_lsdel __SS_PROTO;
214 static char const * const ssu00039[] = {
215 "undelete",
216     "undel",
217     (char const *)0
218 };
219 extern void do_undel __SS_PROTO;
220 static char const * const ssu00040[] = {
221 "write",
222     (char const *)0
223 };
224 extern void do_write __SS_PROTO;
225 static char const * const ssu00041[] = {
226 "dump_inode",
227     "dump",
228     (char const *)0
229 };
230 extern void do_dump __SS_PROTO;
231 static char const * const ssu00042[] = {
232 "cat",
233     (char const *)0
234 };
235 extern void do_cat __SS_PROTO;
236 static char const * const ssu00043[] = {
237 "lcd",
238     (char const *)0
239 };
240 extern void do_lcd __SS_PROTO;
241 static char const * const ssu00044[] = {
242 "rdump",
243     (char const *)0
244 };
245 extern void do_rdump __SS_PROTO;
246 static char const * const ssu00045[] = {
247 "set_super_value",
248     "ssv",
249     (char const *)0
250 };
251 extern void do_set_super __SS_PROTO;
252 static char const * const ssu00046[] = {
253 "set_inode_field",
254     "sif",
255     (char const *)0
256 };
257 extern void do_set_inode __SS_PROTO;
258 static char const * const ssu00047[] = {
259 "set_block_group",
260     "set_bg",
261     (char const *)0
262 };
263 extern void do_set_block_group_descriptor __SS_PROTO;
264 static char const * const ssu00048[] = {
265 "logdump",
266     (char const *)0
267 };
268 extern void do_logdump __SS_PROTO;
269 static char const * const ssu00049[] = {
270 "htree_dump",
271     "htree",
272     (char const *)0
273 };
274 extern void do_htree_dump __SS_PROTO;
275 static char const * const ssu00050[] = {
276 "dx_hash",
277     "hash",
278     (char const *)0
279 };
280 extern void do_dx_hash __SS_PROTO;
281 static char const * const ssu00051[] = {
282 "dirsearch",
283     (char const *)0
284 };
285 extern void do_dirsearch __SS_PROTO;
286 static char const * const ssu00052[] = {
287 "bmap",
288     (char const *)0
289 };
290 extern void do_bmap __SS_PROTO;
291 static char const * const ssu00053[] = {
292 "fallocate",
293     (char const *)0
294 };
295 extern void do_fallocate __SS_PROTO;
296 static char const * const ssu00054[] = {
297 "punch",
298     "truncate",
299     (char const *)0
300 };
301 extern void do_punch __SS_PROTO;
302 static char const * const ssu00055[] = {
303 "symlink",
304     (char const *)0
305 };
306 extern void do_symlink __SS_PROTO;
307 static char const * const ssu00056[] = {
308 "imap",
309     (char const *)0
310 };
311 extern void do_imap __SS_PROTO;
312 static char const * const ssu00057[] = {
313 "dump_unused",
314     (char const *)0
315 };
316 extern void do_dump_unused __SS_PROTO;
317 static char const * const ssu00058[] = {
318 "set_current_time",
319     (char const *)0
320 };
321 extern void do_set_current_time __SS_PROTO;
322 static char const * const ssu00059[] = {
323 "supported_features",
324     (char const *)0
325 };
326 extern void do_supported_features __SS_PROTO;
327 static char const * const ssu00060[] = {
328 "dump_mmp",
329     (char const *)0
330 };
331 extern void do_dump_mmp __SS_PROTO;
332 static char const * const ssu00061[] = {
333 "set_mmp_value",
334     "smmp",
335     (char const *)0
336 };
337 extern void do_set_mmp_value __SS_PROTO;
338 static char const * const ssu00062[] = {
339 "extent_open",
340     "eo",
341     (char const *)0
342 };
343 extern void do_extent_open __SS_PROTO;
344 static char const * const ssu00063[] = {
345 "zap_block",
346     "zap",
347     (char const *)0
348 };
349 extern void do_zap_block __SS_PROTO;
350 static char const * const ssu00064[] = {
351 "block_dump",
352     "bdump",
353     "bd",
354     (char const *)0
355 };
356 extern void do_block_dump __SS_PROTO;
357 static char const * const ssu00065[] = {
358 "ea_list",
359     (char const *)0
360 };
361 extern void do_list_xattr __SS_PROTO;
362 static char const * const ssu00066[] = {
363 "ea_get",
364     (char const *)0
365 };
366 extern void do_get_xattr __SS_PROTO;
367 static char const * const ssu00067[] = {
368 "ea_set",
369     (char const *)0
370 };
371 extern void do_set_xattr __SS_PROTO;
372 static char const * const ssu00068[] = {
373 "ea_rm",
374     (char const *)0
375 };
376 extern void do_rm_xattr __SS_PROTO;
377 static char const * const ssu00069[] = {
378 "list_quota",
379     "lq",
380     (char const *)0
381 };
382 extern void do_list_quota __SS_PROTO;
383 static char const * const ssu00070[] = {
384 "get_quota",
385     "gq",
386     (char const *)0
387 };
388 extern void do_get_quota __SS_PROTO;
389 static char const * const ssu00071[] = {
390 "inode_dump",
391     "idump",
392     "id",
393     (char const *)0
394 };
395 extern void do_idump __SS_PROTO;
396 static char const * const ssu00072[] = {
397 "journal_open",
398     "jo",
399     (char const *)0
400 };
401 extern void do_journal_open __SS_PROTO;
402 static char const * const ssu00073[] = {
403 "journal_close",
404     "jc",
405     (char const *)0
406 };
407 extern void do_journal_close __SS_PROTO;
408 static char const * const ssu00074[] = {
409 "journal_write",
410     "jw",
411     (char const *)0
412 };
413 extern void do_journal_write __SS_PROTO;
414 static char const * const ssu00075[] = {
415 "journal_run",
416     "jr",
417     (char const *)0
418 };
419 extern void do_journal_run __SS_PROTO;
420 static ss_request_entry ssu00076[] = {
421     { ssu00001,
422       do_show_debugfs_params,
423       "Show debugfs parameters",
424       0 },
425     { ssu00002,
426       do_open_filesys,
427       "Open a filesystem",
428       0 },
429     { ssu00003,
430       do_close_filesys,
431       "Close the filesystem",
432       0 },
433     { ssu00004,
434       do_freefrag,
435       "Report free space fragmentation",
436       0 },
437     { ssu00005,
438       do_features,
439       "Set/print superblock features",
440       0 },
441     { ssu00006,
442       do_dirty_filesys,
443       "Mark the filesystem as dirty",
444       0 },
445     { ssu00007,
446       do_init_filesys,
447       "Initialize a filesystem (DESTROYS DATA)",
448       0 },
449     { ssu00008,
450       do_show_super_stats,
451       "Show superblock statistics",
452       0 },
453     { ssu00009,
454       do_ncheck,
455       "Do inode->name translation",
456       0 },
457     { ssu00010,
458       do_icheck,
459       "Do block->inode translation",
460       0 },
461     { ssu00011,
462       do_chroot,
463       "Change root directory",
464       0 },
465     { ssu00012,
466       do_change_working_dir,
467       "Change working directory",
468       0 },
469     { ssu00013,
470       do_list_dir,
471       "List directory",
472       0 },
473     { ssu00014,
474       do_stat,
475       "Show inode information ",
476       0 },
477     { ssu00015,
478       do_dump_extents,
479       "Dump extents information ",
480       0 },
481     { ssu00016,
482       do_blocks,
483       "Dump blocks used by an inode ",
484       0 },
485     { ssu00017,
486       do_filefrag,
487       "Report fragmentation information for an inode",
488       0 },
489     { ssu00018,
490       do_link,
491       "Create directory link",
492       0 },
493     { ssu00019,
494       do_unlink,
495       "Delete a directory link",
496       0 },
497     { ssu00020,
498       do_mkdir,
499       "Create a directory",
500       0 },
501     { ssu00021,
502       do_rmdir,
503       "Remove a directory",
504       0 },
505     { ssu00022,
506       do_rm,
507       "Remove a file (unlink and kill_file, if appropriate)",
508       0 },
509     { ssu00023,
510       do_kill_file,
511       "Deallocate an inode and its blocks",
512       0 },
513     { ssu00024,
514       do_copy_inode,
515       "Copy the inode structure",
516       0 },
517     { ssu00025,
518       do_clri,
519       "Clear an inode's contents",
520       0 },
521     { ssu00026,
522       do_freei,
523       "Clear an inode's in-use flag",
524       0 },
525     { ssu00027,
526       do_seti,
527       "Set an inode's in-use flag",
528       0 },
529     { ssu00028,
530       do_testi,
531       "Test an inode's in-use flag",
532       0 },
533     { ssu00029,
534       do_freeb,
535       "Clear a block's in-use flag",
536       0 },
537     { ssu00030,
538       do_setb,
539       "Set a block's in-use flag",
540       0 },
541     { ssu00031,
542       do_testb,
543       "Test a block's in-use flag",
544       0 },
545     { ssu00032,
546       do_modify_inode,
547       "Modify an inode by structure",
548       0 },
549     { ssu00033,
550       do_find_free_block,
551       "Find free block(s)",
552       0 },
553     { ssu00034,
554       do_find_free_inode,
555       "Find free inode(s)",
556       0 },
557     { ssu00035,
558       do_print_working_directory,
559       "Print current working directory",
560       0 },
561     { ssu00036,
562       do_expand_dir,
563       "Expand directory",
564       0 },
565     { ssu00037,
566       do_mknod,
567       "Create a special file",
568       0 },
569     { ssu00038,
570       do_lsdel,
571       "List deleted inodes",
572       0 },
573     { ssu00039,
574       do_undel,
575       "Undelete file",
576       0 },
577     { ssu00040,
578       do_write,
579       "Copy a file from your native filesystem",
580       0 },
581     { ssu00041,
582       do_dump,
583       "Dump an inode out to a file",
584       0 },
585     { ssu00042,
586       do_cat,
587       "Dump an inode out to stdout",
588       0 },
589     { ssu00043,
590       do_lcd,
591       "Change the current directory on your native filesystem",
592       0 },
593     { ssu00044,
594       do_rdump,
595       "Recursively dump a directory to the native filesystem",
596       0 },
597     { ssu00045,
598       do_set_super,
599       "Set superblock value",
600       0 },
601     { ssu00046,
602       do_set_inode,
603       "Set inode field",
604       0 },
605     { ssu00047,
606       do_set_block_group_descriptor,
607       "Set block group descriptor field",
608       0 },
609     { ssu00048,
610       do_logdump,
611       "Dump the contents of the journal",
612       0 },
613     { ssu00049,
614       do_htree_dump,
615       "Dump a hash-indexed directory",
616       0 },
617     { ssu00050,
618       do_dx_hash,
619       "Calculate the directory hash of a filename",
620       0 },
621     { ssu00051,
622       do_dirsearch,
623       "Search a directory for a particular filename",
624       0 },
625     { ssu00052,
626       do_bmap,
627       "Calculate the logical->physical block mapping for an inode",
628       0 },
629     { ssu00053,
630       do_fallocate,
631       "Allocate uninitialized blocks to an inode",
632       0 },
633     { ssu00054,
634       do_punch,
635       "Punch (or truncate) blocks from an inode by deallocating them",
636       0 },
637     { ssu00055,
638       do_symlink,
639       "Create a symbolic link",
640       0 },
641     { ssu00056,
642       do_imap,
643       "Calculate the location of an inode",
644       0 },
645     { ssu00057,
646       do_dump_unused,
647       "Dump unused blocks",
648       0 },
649     { ssu00058,
650       do_set_current_time,
651       "Set current time to use when setting filesystem fields",
652       0 },
653     { ssu00059,
654       do_supported_features,
655       "Print features supported by this version of e2fsprogs",
656       0 },
657     { ssu00060,
658       do_dump_mmp,
659       "Dump MMP information",
660       0 },
661     { ssu00061,
662       do_set_mmp_value,
663       "Set MMP value",
664       0 },
665     { ssu00062,
666       do_extent_open,
667       "Open inode for extent manipulation",
668       0 },
669     { ssu00063,
670       do_zap_block,
671       "Zap block: fill with 0, pattern, flip bits etc.",
672       0 },
673     { ssu00064,
674       do_block_dump,
675       "Dump contents of a block",
676       0 },
677     { ssu00065,
678       do_list_xattr,
679       "List extended attributes of an inode",
680       0 },
681     { ssu00066,
682       do_get_xattr,
683       "Get an extended attribute of an inode",
684       0 },
685     { ssu00067,
686       do_set_xattr,
687       "Set an extended attribute of an inode",
688       0 },
689     { ssu00068,
690       do_rm_xattr,
691       "Remove an extended attribute of an inode",
692       0 },
693     { ssu00069,
694       do_list_quota,
695       "List quota",
696       0 },
697     { ssu00070,
698       do_get_quota,
699       "Get quota",
700       0 },
701     { ssu00071,
702       do_idump,
703       "Dump the inode structure in hex",
704       0 },
705     { ssu00072,
706       do_journal_open,
707       "Open the journal",
708       0 },
709     { ssu00073,
710       do_journal_close,
711       "Close the journal",
712       0 },
713     { ssu00074,
714       do_journal_write,
715       "Write a transaction to the journal",
716       0 },
717     { ssu00075,
718       do_journal_run,
719       "Recover the journal",
720       0 },
721     { 0, 0, 0, 0 }
722 };
723 
724 ss_request_table debug_cmds = { 2, ssu00076 };
725