diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-22 16:57:35 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@gmail.com> | 2021-03-22 17:24:13 -0400 |
commit | 1f0d52aa0677715f5bf5371708279904f5e70d24 (patch) | |
tree | 1a0f420b835cd49103086056d22fad48e0a3a6d2 /libbcachefs.c | |
parent | 11098ae37aa10d967dd356b9aa79cc991e405f4e (diff) |
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>
Diffstat (limited to 'libbcachefs.c')
-rw-r--r-- | libbcachefs.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libbcachefs.c b/libbcachefs.c index 9e7bc7d4..081f7ec6 100644 --- a/libbcachefs.c +++ b/libbcachefs.c @@ -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) |