summaryrefslogtreecommitdiff
path: root/cmd_format.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-03-10 15:37:27 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2022-03-10 15:37:27 -0500
commit8c60ee37e760e7a97cb5dee95052fe7748e42ceb (patch)
tree335990fa4121e776f8b1648d7d5ededd92e3317e /cmd_format.c
parent3e2e3d468eed1d5ebbb4c6309d2eaebd081912c5 (diff)
Make filesystem initialization verbose
Initializing the freespace btree may take some time, so let's make that visible. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'cmd_format.c')
-rw-r--r--cmd_format.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd_format.c b/cmd_format.c
index f626b532..058d4154 100644
--- a/cmd_format.c
+++ b/cmd_format.c
@@ -256,13 +256,18 @@ int cmd_format(int argc, char *argv[])
darray_free(devices);
if (initialize) {
+ struct bch_opts mount_opts = bch2_opts_empty();
+
+
+ opt_set(mount_opts, verbose, true);
+
/*
* Start the filesystem once, to allocate the journal and create
* the root directory:
*/
struct bch_fs *c = bch2_fs_open(device_paths.item,
darray_size(device_paths),
- bch2_opts_empty());
+ mount_opts);
if (IS_ERR(c))
die("error opening %s: %s", device_paths.item[0],
strerror(-PTR_ERR(c)));