summaryrefslogtreecommitdiff
path: root/bcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'bcache.c')
-rw-r--r--bcache.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/bcache.c b/bcache.c
index 1fb1a55e..ac9eb07e 100644
--- a/bcache.c
+++ b/bcache.c
@@ -30,6 +30,7 @@ static void usage(void)
"\n"
"Commands for formatting, startup and shutdown:\n"
" format Format a new filesystem\n"
+ " unlock Unlock an encrypted filesystem prior to running/mounting\n"
" assemble Assemble an existing multi device filesystem\n"
" incremental Incrementally assemble an existing multi device filesystem\n"
" run Start a partially assembled filesystem\n"
@@ -46,6 +47,7 @@ static void usage(void)
"\n"
"Repair:\n"
" bcache fsck Check an existing filesystem for errors\n"
+ "\n"
"Debug:\n"
" bcache dump Dump filesystem metadata to a qcow2 image\n"
" bcache list List filesystem metadata in textual form\n");
@@ -94,6 +96,9 @@ int main(int argc, char *argv[])
if (!strcmp(cmd, "fsck"))
return cmd_fsck(argc, argv);
+ if (!strcmp(cmd, "unlock"))
+ return cmd_unlock(argc, argv);
+
if (!strcmp(cmd, "dump"))
return cmd_dump(argc, argv);
if (!strcmp(cmd, "list"))