summaryrefslogtreecommitdiff
path: root/bcache.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2016-10-03 19:22:17 -0800
committerKent Overstreet <kent.overstreet@gmail.com>2017-02-28 03:05:38 -0900
commita5b5eba7f788bb77cf57f9c94f3474a2d439ab0b (patch)
tree278813d1b1a9024174531376d41a2ba04a3b27f6 /bcache.c
parente4d1c93d85a5b86c04599bfc9f658308d741fd41 (diff)
New on disk format - encryption
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 1fb1a55..ac9eb07 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"))