diff options
Diffstat (limited to 'c_src/cmd_strip_alloc.c')
-rw-r--r-- | c_src/cmd_strip_alloc.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/c_src/cmd_strip_alloc.c b/c_src/cmd_strip_alloc.c index c313b665..90e733a7 100644 --- a/c_src/cmd_strip_alloc.c +++ b/c_src/cmd_strip_alloc.c @@ -96,16 +96,17 @@ int cmd_strip_alloc(int argc, char *argv[]) args_shift(optind); if (!argc) { - fprintf(stderr, "Please supply device(s)\n"); - exit(8); + strip_alloc_usage(); + die("Please supply device(s)"); } darray_const_str devs = get_or_split_cmdline_devs(argc, argv); struct bch_opts opts = bch2_opts_empty(); opt_set(opts, nostart, true); + struct bch_fs *c; reopen: - struct bch_fs *c = bch2_fs_open(&devs, &opts); + c = bch2_fs_open(&devs, &opts); int ret = PTR_ERR_OR_ZERO(c); if (ret) die("Error opening filesystem: %s", bch2_err_str(ret)); |