diff options
| author | Theodore Ts'o <tytso@mit.edu> | 2012-12-22 18:50:33 -0500 |
|---|---|---|
| committer | Theodore Ts'o <tytso@mit.edu> | 2012-12-24 10:49:41 -0500 |
| commit | bee7b67ce92bb912fccc0dcce3c71c186c2a988b (patch) | |
| tree | 57af9e3c0952308c6cd0258b9dc90e5e2f938314 /debugfs/debug_cmds.ct | |
| parent | b4944f654cac5f70edd80d12e59bf1212047cb5d (diff) | |
| download | platform_external_e2fsprogs-bee7b67ce92bb912fccc0dcce3c71c186c2a988b.tar.gz platform_external_e2fsprogs-bee7b67ce92bb912fccc0dcce3c71c186c2a988b.tar.bz2 platform_external_e2fsprogs-bee7b67ce92bb912fccc0dcce3c71c186c2a988b.zip | |
debugfs: add the ability to manipulate the extent tree directly
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>
Diffstat (limited to 'debugfs/debug_cmds.ct')
| -rw-r--r-- | debugfs/debug_cmds.ct | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/debugfs/debug_cmds.ct b/debugfs/debug_cmds.ct index a799dd7db..7767f8f38 100644 --- a/debugfs/debug_cmds.ct +++ b/debugfs/debug_cmds.ct @@ -178,5 +178,8 @@ request do_dump_mmp, "Dump MMP information", request do_set_mmp_value, "Set MMP value", set_mmp_value, smmp; +request do_extent_open, "Open inode for extent manipulation", + extent_open, eo; + end; |
