Whamcloud - gitweb
debugfs: add the ability to manipulate the extent tree directly
authorTheodore Ts'o <tytso@mit.edu>
Sat, 22 Dec 2012 23:50:33 +0000 (18:50 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 24 Dec 2012 15:49:41 +0000 (10:49 -0500)
commitbee7b67ce92bb912fccc0dcce3c71c186c2a988b
tree57af9e3c0952308c6cd0258b9dc90e5e2f938314
parentb4944f654cac5f70edd80d12e59bf1212047cb5d
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>
debugfs/Makefile.in
debugfs/debug_cmds.ct
debugfs/debugfs.c
debugfs/debugfs.h
debugfs/extent_cmds.ct [moved from lib/ext2fs/extent_dbg.ct with 95% similarity]
debugfs/extent_inode.c [new file with mode: 0644]
debugfs/ro_debug_cmds.ct
lib/ext2fs/Makefile.in
lib/ext2fs/ext2fs.h
lib/ext2fs/extent.c