1*6a54128fSAndroid Build Coastguard Worker# 2*6a54128fSAndroid Build Coastguard Worker# Copyright (C) 1993 Theodore Ts'o. This file may be redistributed 3*6a54128fSAndroid Build Coastguard Worker# under the terms of the GNU Public License. 4*6a54128fSAndroid Build Coastguard Worker# 5*6a54128fSAndroid Build Coastguard Workercommand_table debug_cmds; 6*6a54128fSAndroid Build Coastguard Worker 7*6a54128fSAndroid Build Coastguard Workerrequest do_show_debugfs_params, "Show debugfs parameters", 8*6a54128fSAndroid Build Coastguard Worker show_debugfs_params, params; 9*6a54128fSAndroid Build Coastguard Worker 10*6a54128fSAndroid Build Coastguard Workerrequest do_open_filesys, "Open a filesystem", 11*6a54128fSAndroid Build Coastguard Worker open_filesys, open; 12*6a54128fSAndroid Build Coastguard Worker 13*6a54128fSAndroid Build Coastguard Workerrequest do_close_filesys, "Close the filesystem", 14*6a54128fSAndroid Build Coastguard Worker close_filesys, close; 15*6a54128fSAndroid Build Coastguard Worker 16*6a54128fSAndroid Build Coastguard Workerrequest do_freefrag, "Report free space fragmentation", 17*6a54128fSAndroid Build Coastguard Worker freefrag, e2freefrag; 18*6a54128fSAndroid Build Coastguard Worker 19*6a54128fSAndroid Build Coastguard Workerrequest do_features, "Set/print superblock features", 20*6a54128fSAndroid Build Coastguard Worker feature, features; 21*6a54128fSAndroid Build Coastguard Worker 22*6a54128fSAndroid Build Coastguard Workerrequest do_dirty_filesys, "Mark the filesystem as dirty", 23*6a54128fSAndroid Build Coastguard Worker dirty_filesys, dirty; 24*6a54128fSAndroid Build Coastguard Worker 25*6a54128fSAndroid Build Coastguard Workerrequest do_init_filesys, "Initialize a filesystem (DESTROYS DATA)", 26*6a54128fSAndroid Build Coastguard Worker init_filesys; 27*6a54128fSAndroid Build Coastguard Worker 28*6a54128fSAndroid Build Coastguard Workerrequest do_show_super_stats, "Show superblock statistics", 29*6a54128fSAndroid Build Coastguard Worker show_super_stats, stats; 30*6a54128fSAndroid Build Coastguard Worker 31*6a54128fSAndroid Build Coastguard Workerrequest do_ncheck, "Do inode->name translation", 32*6a54128fSAndroid Build Coastguard Worker ncheck; 33*6a54128fSAndroid Build Coastguard Worker 34*6a54128fSAndroid Build Coastguard Workerrequest do_icheck, "Do block->inode translation", 35*6a54128fSAndroid Build Coastguard Worker icheck; 36*6a54128fSAndroid Build Coastguard Worker 37*6a54128fSAndroid Build Coastguard Workerrequest do_chroot, "Change root directory", 38*6a54128fSAndroid Build Coastguard Worker change_root_directory, chroot; 39*6a54128fSAndroid Build Coastguard Worker 40*6a54128fSAndroid Build Coastguard Workerrequest do_change_working_dir, "Change working directory", 41*6a54128fSAndroid Build Coastguard Worker change_working_directory, cd; 42*6a54128fSAndroid Build Coastguard Worker 43*6a54128fSAndroid Build Coastguard Workerrequest do_list_dir, "List directory", 44*6a54128fSAndroid Build Coastguard Worker list_directory, ls; 45*6a54128fSAndroid Build Coastguard Worker 46*6a54128fSAndroid Build Coastguard Workerrequest do_stat, "Show inode information ", 47*6a54128fSAndroid Build Coastguard Worker show_inode_info, stat; 48*6a54128fSAndroid Build Coastguard Worker 49*6a54128fSAndroid Build Coastguard Workerrequest do_dump_extents, "Dump extents information ", 50*6a54128fSAndroid Build Coastguard Worker dump_extents, extents, ex; 51*6a54128fSAndroid Build Coastguard Worker 52*6a54128fSAndroid Build Coastguard Workerrequest do_blocks, "Dump blocks used by an inode ", 53*6a54128fSAndroid Build Coastguard Worker blocks; 54*6a54128fSAndroid Build Coastguard Worker 55*6a54128fSAndroid Build Coastguard Workerrequest do_filefrag, "Report fragmentation information for an inode", 56*6a54128fSAndroid Build Coastguard Worker filefrag; 57*6a54128fSAndroid Build Coastguard Worker 58*6a54128fSAndroid Build Coastguard Workerrequest do_link, "Create directory link", 59*6a54128fSAndroid Build Coastguard Worker link, ln; 60*6a54128fSAndroid Build Coastguard Worker 61*6a54128fSAndroid Build Coastguard Workerrequest do_unlink, "Delete a directory link", 62*6a54128fSAndroid Build Coastguard Worker unlink; 63*6a54128fSAndroid Build Coastguard Worker 64*6a54128fSAndroid Build Coastguard Workerrequest do_mkdir, "Create a directory", 65*6a54128fSAndroid Build Coastguard Worker mkdir; 66*6a54128fSAndroid Build Coastguard Worker 67*6a54128fSAndroid Build Coastguard Workerrequest do_rmdir, "Remove a directory", 68*6a54128fSAndroid Build Coastguard Worker rmdir; 69*6a54128fSAndroid Build Coastguard Worker 70*6a54128fSAndroid Build Coastguard Workerrequest do_rm, "Remove a file (unlink and kill_file, if appropriate)", 71*6a54128fSAndroid Build Coastguard Worker rm; 72*6a54128fSAndroid Build Coastguard Worker 73*6a54128fSAndroid Build Coastguard Workerrequest do_kill_file, "Deallocate an inode and its blocks", 74*6a54128fSAndroid Build Coastguard Worker kill_file; 75*6a54128fSAndroid Build Coastguard Worker 76*6a54128fSAndroid Build Coastguard Workerrequest do_copy_inode, "Copy the inode structure", 77*6a54128fSAndroid Build Coastguard Worker copy_inode; 78*6a54128fSAndroid Build Coastguard Worker 79*6a54128fSAndroid Build Coastguard Workerrequest do_clri, "Clear an inode's contents", 80*6a54128fSAndroid Build Coastguard Worker clri; 81*6a54128fSAndroid Build Coastguard Worker 82*6a54128fSAndroid Build Coastguard Workerrequest do_freei, "Clear an inode's in-use flag", 83*6a54128fSAndroid Build Coastguard Worker freei; 84*6a54128fSAndroid Build Coastguard Worker 85*6a54128fSAndroid Build Coastguard Workerrequest do_seti, "Set an inode's in-use flag", 86*6a54128fSAndroid Build Coastguard Worker seti; 87*6a54128fSAndroid Build Coastguard Worker 88*6a54128fSAndroid Build Coastguard Workerrequest do_testi, "Test an inode's in-use flag", 89*6a54128fSAndroid Build Coastguard Worker testi; 90*6a54128fSAndroid Build Coastguard Worker 91*6a54128fSAndroid Build Coastguard Workerrequest do_freeb, "Clear a block's in-use flag", 92*6a54128fSAndroid Build Coastguard Worker freeb; 93*6a54128fSAndroid Build Coastguard Worker 94*6a54128fSAndroid Build Coastguard Workerrequest do_setb, "Set a block's in-use flag", 95*6a54128fSAndroid Build Coastguard Worker setb; 96*6a54128fSAndroid Build Coastguard Worker 97*6a54128fSAndroid Build Coastguard Workerrequest do_testb, "Test a block's in-use flag", 98*6a54128fSAndroid Build Coastguard Worker testb; 99*6a54128fSAndroid Build Coastguard Worker 100*6a54128fSAndroid Build Coastguard Workerrequest do_modify_inode, "Modify an inode by structure", 101*6a54128fSAndroid Build Coastguard Worker modify_inode, mi; 102*6a54128fSAndroid Build Coastguard Worker 103*6a54128fSAndroid Build Coastguard Workerrequest do_find_free_block, "Find free block(s)", 104*6a54128fSAndroid Build Coastguard Worker find_free_block, ffb; 105*6a54128fSAndroid Build Coastguard Worker 106*6a54128fSAndroid Build Coastguard Workerrequest do_find_free_inode, "Find free inode(s)", 107*6a54128fSAndroid Build Coastguard Worker find_free_inode, ffi; 108*6a54128fSAndroid Build Coastguard Worker 109*6a54128fSAndroid Build Coastguard Workerrequest do_print_working_directory, "Print current working directory", 110*6a54128fSAndroid Build Coastguard Worker print_working_directory, pwd; 111*6a54128fSAndroid Build Coastguard Worker 112*6a54128fSAndroid Build Coastguard Workerrequest do_expand_dir, "Expand directory", 113*6a54128fSAndroid Build Coastguard Worker expand_dir, expand; 114*6a54128fSAndroid Build Coastguard Worker 115*6a54128fSAndroid Build Coastguard Workerrequest do_mknod, "Create a special file", 116*6a54128fSAndroid Build Coastguard Worker mknod; 117*6a54128fSAndroid Build Coastguard Worker 118*6a54128fSAndroid Build Coastguard Workerrequest do_lsdel, "List deleted inodes", 119*6a54128fSAndroid Build Coastguard Worker list_deleted_inodes, lsdel; 120*6a54128fSAndroid Build Coastguard Worker 121*6a54128fSAndroid Build Coastguard Workerrequest do_undel, "Undelete file", 122*6a54128fSAndroid Build Coastguard Worker undelete, undel; 123*6a54128fSAndroid Build Coastguard Worker 124*6a54128fSAndroid Build Coastguard Workerrequest do_write, "Copy a file from your native filesystem", 125*6a54128fSAndroid Build Coastguard Worker write; 126*6a54128fSAndroid Build Coastguard Worker 127*6a54128fSAndroid Build Coastguard Workerrequest do_dump, "Dump an inode out to a file", 128*6a54128fSAndroid Build Coastguard Worker dump_inode, dump; 129*6a54128fSAndroid Build Coastguard Worker 130*6a54128fSAndroid Build Coastguard Workerrequest do_cat, "Dump an inode out to stdout", 131*6a54128fSAndroid Build Coastguard Worker cat; 132*6a54128fSAndroid Build Coastguard Worker 133*6a54128fSAndroid Build Coastguard Workerrequest do_lcd, "Change the current directory on your native filesystem", 134*6a54128fSAndroid Build Coastguard Worker lcd; 135*6a54128fSAndroid Build Coastguard Worker 136*6a54128fSAndroid Build Coastguard Workerrequest do_rdump, "Recursively dump a directory to the native filesystem", 137*6a54128fSAndroid Build Coastguard Worker rdump; 138*6a54128fSAndroid Build Coastguard Worker 139*6a54128fSAndroid Build Coastguard Workerrequest do_set_super, "Set superblock value", 140*6a54128fSAndroid Build Coastguard Worker set_super_value, ssv; 141*6a54128fSAndroid Build Coastguard Worker 142*6a54128fSAndroid Build Coastguard Workerrequest do_set_inode, "Set inode field", 143*6a54128fSAndroid Build Coastguard Worker set_inode_field, sif; 144*6a54128fSAndroid Build Coastguard Worker 145*6a54128fSAndroid Build Coastguard Workerrequest do_set_block_group_descriptor, "Set block group descriptor field", 146*6a54128fSAndroid Build Coastguard Worker set_block_group, set_bg; 147*6a54128fSAndroid Build Coastguard Worker 148*6a54128fSAndroid Build Coastguard Workerrequest do_logdump, "Dump the contents of the journal", 149*6a54128fSAndroid Build Coastguard Worker logdump; 150*6a54128fSAndroid Build Coastguard Worker 151*6a54128fSAndroid Build Coastguard Workerrequest do_htree_dump, "Dump a hash-indexed directory", 152*6a54128fSAndroid Build Coastguard Worker htree_dump, htree; 153*6a54128fSAndroid Build Coastguard Worker 154*6a54128fSAndroid Build Coastguard Workerrequest do_dx_hash, "Calculate the directory hash of a filename", 155*6a54128fSAndroid Build Coastguard Worker dx_hash, hash; 156*6a54128fSAndroid Build Coastguard Worker 157*6a54128fSAndroid Build Coastguard Workerrequest do_dirsearch, "Search a directory for a particular filename", 158*6a54128fSAndroid Build Coastguard Worker dirsearch; 159*6a54128fSAndroid Build Coastguard Worker 160*6a54128fSAndroid Build Coastguard Workerrequest do_bmap, "Calculate the logical->physical block mapping for an inode", 161*6a54128fSAndroid Build Coastguard Worker bmap; 162*6a54128fSAndroid Build Coastguard Worker 163*6a54128fSAndroid Build Coastguard Workerrequest do_fallocate, "Allocate uninitialized blocks to an inode", 164*6a54128fSAndroid Build Coastguard Worker fallocate; 165*6a54128fSAndroid Build Coastguard Worker 166*6a54128fSAndroid Build Coastguard Workerrequest do_punch, "Punch (or truncate) blocks from an inode by deallocating them", 167*6a54128fSAndroid Build Coastguard Worker punch, truncate; 168*6a54128fSAndroid Build Coastguard Worker 169*6a54128fSAndroid Build Coastguard Workerrequest do_symlink, "Create a symbolic link", 170*6a54128fSAndroid Build Coastguard Worker symlink; 171*6a54128fSAndroid Build Coastguard Worker 172*6a54128fSAndroid Build Coastguard Workerrequest do_imap, "Calculate the location of an inode", 173*6a54128fSAndroid Build Coastguard Worker imap; 174*6a54128fSAndroid Build Coastguard Worker 175*6a54128fSAndroid Build Coastguard Workerrequest do_dump_unused, "Dump unused blocks", 176*6a54128fSAndroid Build Coastguard Worker dump_unused; 177*6a54128fSAndroid Build Coastguard Worker 178*6a54128fSAndroid Build Coastguard Workerrequest do_set_current_time, "Set current time to use when setting filesystem fields", 179*6a54128fSAndroid Build Coastguard Worker set_current_time; 180*6a54128fSAndroid Build Coastguard Worker 181*6a54128fSAndroid Build Coastguard Workerrequest do_supported_features, "Print features supported by this version of e2fsprogs", 182*6a54128fSAndroid Build Coastguard Worker supported_features; 183*6a54128fSAndroid Build Coastguard Worker 184*6a54128fSAndroid Build Coastguard Workerrequest do_dump_mmp, "Dump MMP information", 185*6a54128fSAndroid Build Coastguard Worker dump_mmp; 186*6a54128fSAndroid Build Coastguard Worker 187*6a54128fSAndroid Build Coastguard Workerrequest do_set_mmp_value, "Set MMP value", 188*6a54128fSAndroid Build Coastguard Worker set_mmp_value, smmp; 189*6a54128fSAndroid Build Coastguard Worker 190*6a54128fSAndroid Build Coastguard Workerrequest do_extent_open, "Open inode for extent manipulation", 191*6a54128fSAndroid Build Coastguard Worker extent_open, eo; 192*6a54128fSAndroid Build Coastguard Worker 193*6a54128fSAndroid Build Coastguard Workerrequest do_zap_block, "Zap block: fill with 0, pattern, flip bits etc.", 194*6a54128fSAndroid Build Coastguard Worker zap_block, zap; 195*6a54128fSAndroid Build Coastguard Worker 196*6a54128fSAndroid Build Coastguard Workerrequest do_block_dump, "Dump contents of a block", 197*6a54128fSAndroid Build Coastguard Worker block_dump, bdump, bd; 198*6a54128fSAndroid Build Coastguard Worker 199*6a54128fSAndroid Build Coastguard Workerrequest do_list_xattr, "List extended attributes of an inode", 200*6a54128fSAndroid Build Coastguard Worker ea_list; 201*6a54128fSAndroid Build Coastguard Worker 202*6a54128fSAndroid Build Coastguard Workerrequest do_get_xattr, "Get an extended attribute of an inode", 203*6a54128fSAndroid Build Coastguard Worker ea_get; 204*6a54128fSAndroid Build Coastguard Worker 205*6a54128fSAndroid Build Coastguard Workerrequest do_set_xattr, "Set an extended attribute of an inode", 206*6a54128fSAndroid Build Coastguard Worker ea_set; 207*6a54128fSAndroid Build Coastguard Worker 208*6a54128fSAndroid Build Coastguard Workerrequest do_rm_xattr, "Remove an extended attribute of an inode", 209*6a54128fSAndroid Build Coastguard Worker ea_rm; 210*6a54128fSAndroid Build Coastguard Worker 211*6a54128fSAndroid Build Coastguard Workerrequest do_list_quota, "List quota", 212*6a54128fSAndroid Build Coastguard Worker list_quota, lq; 213*6a54128fSAndroid Build Coastguard Worker 214*6a54128fSAndroid Build Coastguard Workerrequest do_get_quota, "Get quota", 215*6a54128fSAndroid Build Coastguard Worker get_quota, gq; 216*6a54128fSAndroid Build Coastguard Worker 217*6a54128fSAndroid Build Coastguard Workerrequest do_idump, "Dump the inode structure in hex", 218*6a54128fSAndroid Build Coastguard Worker inode_dump, idump, id; 219*6a54128fSAndroid Build Coastguard Worker 220*6a54128fSAndroid Build Coastguard Workerrequest do_journal_open, "Open the journal", 221*6a54128fSAndroid Build Coastguard Worker journal_open, jo; 222*6a54128fSAndroid Build Coastguard Worker 223*6a54128fSAndroid Build Coastguard Workerrequest do_journal_close, "Close the journal", 224*6a54128fSAndroid Build Coastguard Worker journal_close, jc; 225*6a54128fSAndroid Build Coastguard Worker 226*6a54128fSAndroid Build Coastguard Workerrequest do_journal_write, "Write a transaction to the journal", 227*6a54128fSAndroid Build Coastguard Worker journal_write, jw; 228*6a54128fSAndroid Build Coastguard Worker 229*6a54128fSAndroid Build Coastguard Workerrequest do_journal_run, "Recover the journal", 230*6a54128fSAndroid Build Coastguard Worker journal_run, jr; 231*6a54128fSAndroid Build Coastguard Worker 232*6a54128fSAndroid Build Coastguard Workerend; 233*6a54128fSAndroid Build Coastguard Worker 234