mirror of
https://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
synced 2024-11-28 12:34:13 +08:00
bee7b67ce9
This commit adds the functionality which had previously only been in the tst_extents command to debugfs. The debugfs command extent_open will open extent tree of a particular inode, and enables a series of commands which will allow the user to interact with the extent tree directly. Once the extent tree is closed via extent_open(), these additional commands will be disabled again. This commit exports two new functions from lib/ext2fs/extent.c which had previously been statically defined: ext2fs_extent_node_split() and ext2fs_extent_goto2(). Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
78 lines
1.5 KiB
XML
78 lines
1.5 KiB
XML
#
|
|
# Copyright (C) 1993 Theodore Ts'o. This file may be redistributed
|
|
# under the terms of the GNU Public License.
|
|
#
|
|
command_table extent_cmds;
|
|
|
|
request do_current_node, "Current extent node",
|
|
current_node, current;
|
|
|
|
request do_root_node, "Goto root extent",
|
|
root_node, root;
|
|
|
|
request do_last_leaf, "Goto last leaf",
|
|
last_leaf;
|
|
|
|
request do_first_sib, "Goto first sibling",
|
|
first_sibling, first_sib;
|
|
|
|
request do_last_sib, "Goto last sibling",
|
|
last_sibling, last_sib;
|
|
|
|
request do_next_sib, "Goto next sibling",
|
|
next_sibling, next_sib, ns;
|
|
|
|
request do_prev_sib, "Goto previous sibling",
|
|
prev_sibling, prev_sib, ps;
|
|
|
|
request do_next_leaf, "Goto next leaf",
|
|
next_leaf, nl;
|
|
|
|
request do_prev_leaf, "Goto previous leaf",
|
|
prev_leaf, pl;
|
|
|
|
request do_next, "Goto next node",
|
|
next, n;
|
|
|
|
request do_prev, "Goto previous node",
|
|
previous, prev, p;
|
|
|
|
request do_up, "Up node",
|
|
up_node, up, u;
|
|
|
|
request do_down, "Down node",
|
|
down_node, down, d;
|
|
|
|
request do_delete_node, "Delete node",
|
|
delete_node, delete;
|
|
|
|
request do_insert_node, "Insert node",
|
|
insert_node, insert;
|
|
|
|
request do_split_node, "Split node",
|
|
split_node, split;
|
|
|
|
request do_fix_parents, "Fix parents",
|
|
fix_parents, fixp;
|
|
|
|
request do_set_bmap, "Set block mapping",
|
|
set_bmap;
|
|
|
|
request do_replace_node, "Insert node",
|
|
replace_node, replace;
|
|
|
|
request do_print_all, "Iterate over all nodes and print them",
|
|
print_all, all;
|
|
|
|
request do_goto_block, "Goto extent containing specified block",
|
|
goto_block, goto;
|
|
|
|
request do_info, "Print extent info",
|
|
info;
|
|
|
|
request do_extent_close, "Close extent handle",
|
|
extent_close, ec;
|
|
|
|
end;
|
|
|