mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-09 00:00:04 +03:00
Set features in format
This is a fixup for d3dc47271b
Add format options for --no-initialize
and specifying the metadata version
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
11098ae37a
commit
1f0d52aa06
@ -209,6 +209,9 @@ struct bch_sb *bch2_format(struct bch_opt_strs fs_opt_strs,
|
||||
sb.sb->user_uuid = opts.uuid;
|
||||
sb.sb->nr_devices = nr_devs;
|
||||
|
||||
if (opts.version == bcachefs_metadata_version_current)
|
||||
sb.sb->features[0] |= BCH_SB_FEATURES_ALL;
|
||||
|
||||
uuid_generate(sb.sb->uuid.b);
|
||||
|
||||
if (opts.label)
|
||||
|
Loading…
Reference in New Issue
Block a user