diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-19 15:56:34 -0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-19 17:31:47 -0800 |
commit | 5ec39af8eaba49aee7bafa44c661da39e2f40dc3 (patch) | |
tree | 1fb1a981602cbf22c7d2b2dba1168c715d7cecb5 /cmd_fsck.c | |
parent | bb1941de5378a7b8122d3575dcbc7d0aeb6326f0 (diff) |
Rename from bcache-tools to bcachefs-tools
Diffstat (limited to 'cmd_fsck.c')
-rw-r--r-- | cmd_fsck.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -1,13 +1,13 @@ #include "cmds.h" -#include "libbcache.h" +#include "libbcachefs.h" #include "super.h" #include "tools-util.h" static void usage(void) { - puts("bcache fsck - filesystem check and repair\n" - "Usage: bcache fsck [OPTION]... <devices>\n" + puts("bcachefs fsck - filesystem check and repair\n" + "Usage: bcachefs fsck [OPTION]... <devices>\n" "\n" "Options:\n" " -p Automatic repair (no questions\n" @@ -21,7 +21,7 @@ static void usage(void) int cmd_fsck(int argc, char *argv[]) { - struct bch_opts opts = bch_opts_empty(); + struct bch_opts opts = bch2_opts_empty(); struct bch_fs *c = NULL; const char *err; int opt; @@ -52,10 +52,10 @@ int cmd_fsck(int argc, char *argv[]) if (optind >= argc) die("Please supply device(s) to check"); - err = bch_fs_open(argv + optind, argc - optind, opts, &c); + err = bch2_fs_open(argv + optind, argc - optind, opts, &c); if (err) die("error opening %s: %s", argv[optind], err); - bch_fs_stop(c); + bch2_fs_stop(c); return 0; } |