2 # Restricted set of debugfs commands
4 # Copyright (C) 1993 Theodore Ts'o. This file may be redistributed
5 # under the terms of the GNU Public License.
7 command_table debug_cmds;
9 request do_show_debugfs_params, "Show debugfs parameters",
10 show_debugfs_params, params;
12 request do_open_filesys, "Open a filesystem",
15 request do_close_filesys, "Close the filesystem",
18 request do_freefrag, "Report free space fragmentation",
21 request do_show_super_stats, "Show superblock statistics",
22 show_super_stats, stats;
24 request do_ncheck, "Do inode->name translation",
27 request do_icheck, "Do block->inode translation",
30 request do_chroot, "Change root directory",
31 change_root_directory, chroot;
33 request do_change_working_dir, "Change working directory",
34 change_working_directory, cd;
36 request do_list_dir, "List directory",
39 request do_stat, "Show inode information ",
40 show_inode_info, stat;
42 request do_dump_extents, "Dump extents information ",
43 dump_extents, extents, ex;
45 request do_blocks, "Dump blocks used by an inode ",
48 request do_filefrag, "Report fragmentation information for an inode",
51 request do_testi, "Test an inode's in-use flag",
54 request do_find_free_block, "Find free block(s)",
57 request do_find_free_inode, "Find free inode(s)",
60 request do_print_working_directory, "Print current working directory",
61 print_working_directory, pwd;
63 request do_lsdel, "List deleted inodes",
64 list_deleted_inodes, lsdel;
66 request do_logdump, "Dump the contents of the journal",
69 request do_htree_dump, "Dump a hash-indexed directory",
72 request do_dx_hash, "Calculate the directory hash of a filename",
75 request do_dirsearch, "Search a directory for a particular filename",
78 request do_bmap, "Calculate the logical->physical block mapping for an inode",
81 request do_imap, "Calculate the location of an inode",
84 request do_supported_features, "Print features supported by this version of e2fsprogs",
87 request do_dump_mmp, "Dump MMP information",
90 request do_extent_open, "Open inode for extent manipulation",
93 request do_list_quota, "List quota",
96 request do_get_quota, "Get quota",