summaryrefslogtreecommitdiff
path: root/cmds-inspect.c
diff options
context:
space:
mode:
authorAlexander Fougner <fougner89@gmail.com>2016-02-24 11:52:33 +0100
committerDavid Sterba <dsterba@suse.com>2016-03-14 13:42:47 +0100
commiteaa93e3b0295fc94c774ec73056559a6b8c78b42 (patch)
tree9411f31abb34a89f7e341cd24c30af1e36601a40 /cmds-inspect.c
parenta7dae09ae2f64b653ea9c5f928b86a5f98c3b506 (diff)
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 <fougner89@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-inspect.c')
-rw-r--r--cmds-inspect.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/cmds-inspect.c b/cmds-inspect.c
index 25ddd4c..176f836 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 <command> <args>",
@@ -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
}
};