2 # Copyright (C) 1993 Theodore Ts'o. This file may be redistributed
3 # under the terms of the GNU Public License.
5 command_table debug_cmds;
7 request do_show_debugfs_params, "Show debugfs parameters",
8 show_debugfs_params, params;
10 request do_open_filesys, "Open a filesystem",
13 request do_close_filesys, "Close the filesystem",
16 request do_dirty_filesys, "Mark the filesystem as dirty",
19 request do_init_filesys, "Initalize a filesystem (DESTROYS DATA)",
22 request do_show_super_stats, "Show superblock statistics",
23 show_super_stats, stats;
25 request do_ncheck, "Do inode->name translation",
28 request do_icheck, "Do block->inode translation",
31 request do_chroot, "Change root directory",
32 change_root_directory, chroot;
34 request do_change_working_dir, "Change working directory",
35 change_working_directory, cd;
37 request do_list_dir, "List directory",
40 request do_stat, "Show inode information ",
41 show_inode_info, stat;
43 request do_link, "Create directory link",
46 request do_unlink, "Delete a directory link",
49 request do_mkdir, "Create a directory",
52 request do_rmdir, "Remove a directory",
55 request do_rm, "Remove a file (unlink and kill_file, if appropriate)",
58 request do_kill_file, "Deallocate an inode and its blocks",
61 request do_clri, "Clear an inode's contents",
64 request do_freei, "Clear an inode's in-use flag",
67 request do_seti, "Set an inode's in-use flag",
70 request do_testi, "Test an inode's in-use flag",
73 request do_freeb, "Clear a block's in-use flag",
76 request do_setb, "Set a block's in-use flag",
79 request do_testb, "Test a block's in-use flag",
82 request do_modify_inode, "Modify an inode by structure",
85 request do_find_free_block, "Find free block(s)",
88 request do_find_free_inode, "Find free inode(s)",
91 request do_print_working_directory, "Print current working directory",
92 print_working_directory, pwd;
94 request do_expand_dir, "Expand directory",
97 request do_mknod, "Create a special file",
100 request do_lsdel, "List deleted inodes",
101 list_deleted_inodes, lsdel;
103 request do_write, "Copy a file from your native filesystem",
106 request do_dump, "Dump an inode out to a file",
109 request do_cat, "Dump an inode out to stdout",