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