diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-03 21:09:52 -0900 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2017-03-03 23:17:31 -0900 |
commit | 171ee48e57be78f4e95954c99851553fa523bf91 (patch) | |
tree | 5a54443f074f8f7922eda1451743bb9d2f60368e /cmd_fsck.c | |
parent | a5b5eba7f788bb77cf57f9c94f3474a2d439ab0b (diff) |
Delete more unused shim code, update bcache code
Diffstat (limited to 'cmd_fsck.c')
-rw-r--r-- | cmd_fsck.c | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -21,8 +21,7 @@ static void usage(void) int cmd_fsck(int argc, char *argv[]) { - DECLARE_COMPLETION_ONSTACK(shutdown); - struct cache_set_opts opts = cache_set_opts_empty(); + struct bch_opts opts = bch_opts_empty(); struct cache_set *c = NULL; const char *err; int opt; @@ -53,16 +52,10 @@ int cmd_fsck(int argc, char *argv[]) if (optind >= argc) die("Please supply device(s) to check"); - err = bch_register_cache_set(argv + optind, argc - optind, opts, &c); + err = bch_fs_open(argv + optind, argc - optind, opts, &c); if (err) die("error opening %s: %s", argv[optind], err); - c->stop_completion = &shutdown; - bch_cache_set_stop(c); - closure_put(&c->cl); - - /* Killable? */ - wait_for_completion(&shutdown); - + bch_fs_stop_sync(c); return 0; } |