diff options
author | Alexander Fougner <fougner89@gmail.com> | 2016-02-22 15:49:49 +0100 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-03-14 13:42:47 +0100 |
commit | fcd480a4d0932a4c6a12a504d3cf2e0c175ae190 (patch) | |
tree | 0895500a3a6936c4eb5a4f9865b4415512f4403d /cmds-inspect.c | |
parent | 9459f3650ca1e21292c556088c8395beee082a00 (diff) |
btrfs-progs: copy functionality of btrfs-debug-tree to inspect-internal subcommand
The long-term plan is to merge the features of standalone tools
into the btrfs binary, reducing the number of shipped binaries.
Signed-off-by: Alexander Fougner <fougner89@gmail.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect.c')
-rw-r--r-- | cmds-inspect.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c index 7fa4881a..25ddd4cf 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -31,6 +31,7 @@ #include "disk-io.h" #include "commands.h" #include "btrfs-list.h" +#include "cmds-inspect-dump-tree.h" static const char * const inspect_cmd_group_usage[] = { "btrfs inspect-internal <command> <args>", @@ -619,6 +620,11 @@ out: return !!ret; } +static int cmd_inspect_dump_tree_hook(int ac, char **av) +{ + return cmd_inspect_dump_tree(ac, av); +} + static const char inspect_cmd_group_info[] = "query various internal information"; @@ -634,6 +640,8 @@ const struct cmd_group inspect_cmd_group = { 0 }, { "min-dev-size", cmd_inspect_min_dev_size, cmd_inspect_min_dev_size_usage, NULL, 0 }, + { "dump-tree", cmd_inspect_dump_tree_hook, + cmd_inspect_dump_tree_usage, NULL, 0 }, NULL_CMD_STRUCT } }; |