mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-12-11 00:00:12 +03:00
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>
This commit is contained in:
parent
3e2e3d468e
commit
8c60ee37e7
@ -256,13 +256,18 @@ int cmd_format(int argc, char *argv[])
|
|||||||
darray_free(devices);
|
darray_free(devices);
|
||||||
|
|
||||||
if (initialize) {
|
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
|
* Start the filesystem once, to allocate the journal and create
|
||||||
* the root directory:
|
* the root directory:
|
||||||
*/
|
*/
|
||||||
struct bch_fs *c = bch2_fs_open(device_paths.item,
|
struct bch_fs *c = bch2_fs_open(device_paths.item,
|
||||||
darray_size(device_paths),
|
darray_size(device_paths),
|
||||||
bch2_opts_empty());
|
mount_opts);
|
||||||
if (IS_ERR(c))
|
if (IS_ERR(c))
|
||||||
die("error opening %s: %s", device_paths.item[0],
|
die("error opening %s: %s", device_paths.item[0],
|
||||||
strerror(-PTR_ERR(c)));
|
strerror(-PTR_ERR(c)));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user