From eaa93e3b0295fc94c774ec73056559a6b8c78b42 Mon Sep 17 00:00:00 2001 From: Alexander Fougner Date: Wed, 24 Feb 2016 11:52:33 +0100 Subject: btrfs-progs: introduce inspect-internal dump-super 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 Signed-off-by: David Sterba --- cmds-inspect.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'cmds-inspect.c') diff --git a/cmds-inspect.c b/cmds-inspect.c index 25ddd4cf..176f8360 100644 --- a/cmds-inspect.c +++ b/cmds-inspect.c @@ -32,6 +32,7 @@ #include "commands.h" #include "btrfs-list.h" #include "cmds-inspect-dump-tree.h" +#include "cmds-inspect-dump-super.h" static const char * const inspect_cmd_group_usage[] = { "btrfs inspect-internal ", @@ -625,6 +626,11 @@ static int cmd_inspect_dump_tree_hook(int ac, char **av) return cmd_inspect_dump_tree(ac, av); } +static int cmd_inspect_dump_super_hook(int ac, char **av) +{ + return cmd_inspect_dump_super(ac, av); +} + static const char inspect_cmd_group_info[] = "query various internal information"; @@ -642,6 +648,8 @@ const struct cmd_group inspect_cmd_group = { cmd_inspect_min_dev_size_usage, NULL, 0 }, { "dump-tree", cmd_inspect_dump_tree_hook, cmd_inspect_dump_tree_usage, NULL, 0 }, + { "dump-super", cmd_inspect_dump_super_hook, + cmd_inspect_dump_super_usage, NULL, 0 }, NULL_CMD_STRUCT } }; -- cgit v1.2.3