diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-01 01:45:15 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-08 02:34:33 -0900 |
commit | 06b73dbd7ffc0296b2ecea8d3bc55bfeb72d7f2a (patch) | |
tree | 1ba37985a18eb2d9a9616ee160c82339e23e2160 /bcache.c | |
parent | 171ee48e57be78f4e95954c99851553fa523bf91 (diff) |
cmd_migratedisk-format-changes
Diffstat (limited to 'bcache.c')
-rw-r--r-- | bcache.c | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -50,7 +50,12 @@ static void usage(void) "\n" "Debug:\n" " bcache dump Dump filesystem metadata to a qcow2 image\n" - " bcache list List filesystem metadata in textual form\n"); + " bcache list List filesystem metadata in textual form\n" + "\n" + "Migrate:\n" + " bcache migrate Migrate an existing filesystem to bcachefs, in place\n" + " bcache migrate_superblock\n" + " Add default superblock, after bcache migrate\n"); } int main(int argc, char *argv[]) @@ -104,6 +109,11 @@ int main(int argc, char *argv[]) if (!strcmp(cmd, "list")) return cmd_list(argc, argv); + if (!strcmp(cmd, "migrate")) + return cmd_migrate(argc, argv); + if (!strcmp(cmd, "migrate_superblock")) + return cmd_migrate_superblock(argc, argv); + usage(); return 0; } |