summaryrefslogtreecommitdiff
path: root/c_src/cmd_option.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_option.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_option.c')
-rw-r--r--c_src/cmd_option.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/c_src/cmd_option.c b/c_src/cmd_option.c
index e314903a..14201c8d 100644
--- a/c_src/cmd_option.c
+++ b/c_src/cmd_option.c
@@ -94,10 +94,12 @@ int cmd_set_option(int argc, char *argv[])
}
if (!online) {
+ darray_const_str devs = get_or_split_cmdline_devs(argc, argv);
+
struct bch_opts open_opts = bch2_opts_empty();
opt_set(open_opts, nostart, true);
- struct bch_fs *c = bch2_fs_open(argv, argc, open_opts);
+ struct bch_fs *c = bch2_fs_open(&devs, &open_opts);
if (IS_ERR(c)) {
fprintf(stderr, "error opening %s: %s\n", argv[0], bch2_err_str(PTR_ERR(c)));
exit(EXIT_FAILURE);