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