summaryrefslogtreecommitdiff
path: root/cmds-inspect.c
diff options
context:
space:
mode:
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 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
}
};