• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#
2# Copyright (C) 1993 Theodore Ts'o.  This file may be redistributed
3# under the terms of the GNU Public License.
4#
5command_table debug_cmds;
6
7request do_show_debugfs_params, "Show debugfs parameters",
8	show_debugfs_params, params;
9
10request do_open_filesys, "Open a filesystem",
11	open_filesys, open;
12
13request do_close_filesys, "Close the filesystem",
14	close_filesys, close;
15
16request do_features, "Set/print superblock features",
17	feature, features;
18
19request do_dirty_filesys, "Mark the filesystem as dirty",
20	dirty_filesys, dirty;
21
22request do_init_filesys, "Initalize a filesystem (DESTROYS DATA)",
23	init_filesys;
24
25request do_show_super_stats, "Show superblock statistics",
26	show_super_stats, stats;
27
28request do_ncheck, "Do inode->name translation",
29	ncheck;
30
31request do_icheck, "Do block->inode translation",
32	icheck;
33
34request do_chroot, "Change root directory",
35	change_root_directory, chroot;
36
37request do_change_working_dir, "Change working directory",
38	change_working_directory, cd;
39
40request do_list_dir, "List directory",
41	list_directory, ls;
42
43request do_stat, "Show inode information ",
44	show_inode_info, stat;
45
46request do_link, "Create directory link",
47	link, ln;
48
49request do_unlink, "Delete a directory link",
50	unlink;
51
52request do_mkdir, "Create a directory",
53	mkdir;
54
55request do_rmdir, "Remove a directory",
56	rmdir;
57
58request do_rm, "Remove a file (unlink and kill_file, if appropriate)",
59	rm;
60
61request do_kill_file, "Deallocate an inode and its blocks",
62	kill_file;
63
64request do_clri, "Clear an inode's contents",
65	clri;
66
67request do_freei, "Clear an inode's in-use flag",
68	freei;
69
70request do_seti, "Set an inode's in-use flag",
71	seti;
72
73request do_testi, "Test an inode's in-use flag",
74	testi;
75
76request do_freeb, "Clear a block's in-use flag",
77	freeb;
78
79request do_setb, "Set a block's in-use flag",
80	setb;
81
82request do_testb, "Test a block's in-use flag",
83	testb;
84
85request do_modify_inode, "Modify an inode by structure",
86	modify_inode, mi;
87
88request do_find_free_block, "Find free block(s)",
89	find_free_block, ffb;
90
91request do_find_free_inode, "Find free inode(s)",
92	find_free_inode, ffi;
93
94request	do_print_working_directory, "Print current working directory",
95	print_working_directory, pwd;
96
97request	do_expand_dir, "Expand directory",
98	expand_dir, expand;
99
100request do_mknod, "Create a special file",
101	mknod;
102
103request do_lsdel, "List deleted inodes",
104	list_deleted_inodes, lsdel;
105
106request do_undel, "Undelete file",
107	undelete, undel;
108
109request do_write, "Copy a file from your native filesystem",
110	write;
111
112request do_dump, "Dump an inode out to a file",
113	dump_inode, dump;
114
115request do_cat, "Dump an inode out to stdout",
116	cat;
117
118request do_lcd, "Change the current directory on your native filesystem",
119	lcd;
120
121request do_rdump, "Recursively dump a directory to the native filesystem",
122	rdump;
123
124request do_set_super, "Set superblock value",
125	set_super_value, ssv;
126
127request do_set_inode, "Set inode field",
128	set_inode_field, sif;
129
130request do_set_block_group_descriptor, "Set block group descriptor field",
131	set_block_group, set_bg;
132
133request do_logdump, "Dump the contents of the journal",
134	logdump;
135
136request do_htree_dump, "Dump a hash-indexed directory",
137	htree_dump, htree;
138
139request do_dx_hash, "Calculate the directory hash of a filename",
140	dx_hash, hash;
141
142request do_dirsearch, "Search a directory for a particular filename",
143	dirsearch;
144
145request do_bmap, "Calculate the logical->physical block mapping for an inode",
146	bmap;
147
148request do_imap, "Calculate the location of an inode",
149	imap;
150
151request	do_dump_unused, "Dump unused blocks",
152	dump_unused;
153
154request do_set_current_time, "Set current time to use when setting filesystme fields",
155	set_current_time;
156
157end;
158
159