1# 2# Restricted set of debugfs commands 3# 4# Copyright (C) 1993 Theodore Ts'o. This file may be redistributed 5# under the terms of the GNU Public License. 6# 7command_table debug_cmds; 8 9request do_show_debugfs_params, "Show debugfs parameters", 10 show_debugfs_params, params; 11 12request do_open_filesys, "Open a filesystem", 13 open_filesys, open; 14 15request do_close_filesys, "Close the filesystem", 16 close_filesys, close; 17 18request do_freefrag, "Report free space fragmentation", 19 freefrag, e2freefrag; 20 21request do_show_super_stats, "Show superblock statistics", 22 show_super_stats, stats; 23 24request do_ncheck, "Do inode->name translation", 25 ncheck; 26 27request do_icheck, "Do block->inode translation", 28 icheck; 29 30request do_chroot, "Change root directory", 31 change_root_directory, chroot; 32 33request do_change_working_dir, "Change working directory", 34 change_working_directory, cd; 35 36request do_list_dir, "List directory", 37 list_directory, ls; 38 39request do_stat, "Show inode information ", 40 show_inode_info, stat; 41 42request do_dump_extents, "Dump extents information ", 43 dump_extents, extents, ex; 44 45request do_blocks, "Dump blocks used by an inode ", 46 blocks; 47 48request do_filefrag, "Report fragmentation information for an inode", 49 filefrag; 50 51request do_testi, "Test an inode's in-use flag", 52 testi; 53 54request do_find_free_block, "Find free block(s)", 55 find_free_block, ffb; 56 57request do_find_free_inode, "Find free inode(s)", 58 find_free_inode, ffi; 59 60request do_print_working_directory, "Print current working directory", 61 print_working_directory, pwd; 62 63request do_lsdel, "List deleted inodes", 64 list_deleted_inodes, lsdel; 65 66request do_logdump, "Dump the contents of the journal", 67 logdump; 68 69request do_htree_dump, "Dump a hash-indexed directory", 70 htree_dump, htree; 71 72request do_dx_hash, "Calculate the directory hash of a filename", 73 dx_hash, hash; 74 75request do_dirsearch, "Search a directory for a particular filename", 76 dirsearch; 77 78request do_bmap, "Calculate the logical->physical block mapping for an inode", 79 bmap; 80 81request do_imap, "Calculate the location of an inode", 82 imap; 83 84request do_supported_features, "Print features supported by this version of e2fsprogs", 85 supported_features; 86 87request do_dump_mmp, "Dump MMP information", 88 dump_mmp; 89 90request do_extent_open, "Open inode for extent manipulation", 91 extent_open, eo; 92 93end; 94 95