summaryrefslogtreecommitdiff
path: root/c_src/cmd_dump.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@linux.dev>2025-04-28 14:50:43 -0400
committerKent Overstreet <kent.overstreet@linux.dev>2025-04-28 15:31:43 -0400
commit6d7b47685b2625e3103e26a25c8003ef6de5f82d (patch)
tree421b388c1e90e45d7f653bf502c0858426b8d625 /c_src/cmd_dump.c
parent0589d9f3c3cdff28a13f9efc96762d39ef615d22 (diff)
Update bcachefs sources to f0ebca18293c bcachefs: bch2_fs_open() now takes a darray
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_dump.c')
-rw-r--r--c_src/cmd_dump.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/c_src/cmd_dump.c b/c_src/cmd_dump.c
index 7d7ceaa5..c6b813e9 100644
--- a/c_src/cmd_dump.c
+++ b/c_src/cmd_dump.c
@@ -147,7 +147,9 @@ int cmd_dump(int argc, char *argv[])
if (!argc)
die("Please supply device(s) to check");
- struct bch_fs *c = bch2_fs_open(argv, argc, opts);
+ darray_const_str devs = get_or_split_cmdline_devs(argc, argv);
+
+ struct bch_fs *c = bch2_fs_open(&devs, &opts);
if (IS_ERR(c))
die("error opening devices: %s", bch2_err_str(PTR_ERR(c)));
@@ -177,5 +179,6 @@ int cmd_dump(int argc, char *argv[])
up_read(&c->state_lock);
bch2_fs_stop(c);
+ darray_exit(&devs);
return 0;
}