summaryrefslogtreecommitdiff
path: root/cmd_format.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-05-02 18:39:16 -0400
committerKent Overstreet <kent.overstreet@gmail.com>2022-05-02 18:42:06 -0400
commit6f5afc0c12bbf56ffdabe5b2c5297aef255c4baa (patch)
treef5da49a340ab5d14835d37d69d5126f0e955833c /cmd_format.c
parent88b27bd794e2fce01453f1b8c482fe1c2470c8d0 (diff)
Update bcachefs sources to bdf6d7c135 fixup! bcachefs: Kill journal buf bloom filter
Diffstat (limited to 'cmd_format.c')
-rw-r--r--cmd_format.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmd_format.c b/cmd_format.c
index c3debe0a..5c2bc8c0 100644
--- a/cmd_format.c
+++ b/cmd_format.c
@@ -197,9 +197,9 @@ int cmd_format(int argc, char *argv[])
initialize = false;
break;
case O_no_opt:
- darray_push(device_paths, optarg);
+ darray_push(&device_paths, optarg);
dev_opts.path = optarg;
- darray_push(devices, dev_opts);
+ darray_push(&devices, dev_opts);
dev_opts.size = 0;
break;
case O_quiet:
@@ -253,7 +253,7 @@ int cmd_format(int argc, char *argv[])
free(opts.passphrase);
}
- darray_exit(devices);
+ darray_exit(&devices);
if (initialize) {
struct bch_opts mount_opts = bch2_opts_empty();
@@ -275,7 +275,7 @@ int cmd_format(int argc, char *argv[])
bch2_fs_stop(c);
}
- darray_exit(device_paths);
+ darray_exit(&device_paths);
return 0;
}