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:
Kent Overstreet 2021-03-22 16:57:35 -04:00
parent 11098ae37a
commit 1f0d52aa06

View File

@ -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)