diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-28 14:50:43 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-28 15:31:43 -0400 |
commit | 6d7b47685b2625e3103e26a25c8003ef6de5f82d (patch) | |
tree | 421b388c1e90e45d7f653bf502c0858426b8d625 /c_src/cmd_device.c | |
parent | 0589d9f3c3cdff28a13f9efc96762d39ef615d22 (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_device.c')
-rw-r--r-- | c_src/cmd_device.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/c_src/cmd_device.c b/c_src/cmd_device.c index 96c25310..cb40dcea 100644 --- a/c_src/cmd_device.c +++ b/c_src/cmd_device.c @@ -515,7 +515,11 @@ static int cmd_device_resize(int argc, char *argv[]) } else { printf("Doing offline resize of %s\n", dev); - struct bch_fs *c = bch2_fs_open(&dev, 1, bch2_opts_empty()); + darray_const_str devs = {}; + darray_push(&devs, dev); + + struct bch_opts opts = bch2_opts_empty(); + struct bch_fs *c = bch2_fs_open(&devs, &opts); if (IS_ERR(c)) die("error opening %s: %s", dev, bch2_err_str(PTR_ERR(c))); @@ -612,7 +616,11 @@ static int cmd_device_resize_journal(int argc, char *argv[]) } else { printf("%s is offline - starting:\n", dev); - struct bch_fs *c = bch2_fs_open(&dev, 1, bch2_opts_empty()); + darray_const_str devs = {}; + darray_push(&devs, dev); + + struct bch_opts opts = bch2_opts_empty(); + struct bch_fs *c = bch2_fs_open(&devs, &opts); if (IS_ERR(c)) die("error opening %s: %s", dev, bch2_err_str(PTR_ERR(c))); |