summaryrefslogtreecommitdiff
path: root/cmd_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'cmd_format.c')
-rw-r--r--cmd_format.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/cmd_format.c b/cmd_format.c
index 3ef862f7..45764a10 100644
--- a/cmd_format.c
+++ b/cmd_format.c
@@ -268,3 +268,15 @@ int cmd_format(int argc, char *argv[])
return 0;
}
+
+int cmd_show_super(int argc, char *argv[])
+{
+ struct bch_sb *sb;
+
+ if (argc != 2)
+ die("please supply a single device");
+
+ sb = bcache_super_read(argv[1]);
+ bcache_super_print(sb, HUMAN_READABLE);
+ return 0;
+}