Format now sets version_incompat_allowed
Some checks are pending
build / bcachefs-tools-deb (ubuntu-22.04) (push) Waiting to run
build / bcachefs-tools-deb (ubuntu-24.04) (push) Waiting to run
build / bcachefs-tools-rpm (push) Waiting to run
build / bcachefs-tools-msrv (push) Waiting to run
Nix-Tests / nix-flake-check (push) Waiting to run

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Kent Overstreet 2025-03-10 14:33:06 -04:00
parent 6cbadc946d
commit f42ee45c6e

View File

@ -207,6 +207,7 @@ struct bch_sb *bch2_format(struct bch_opt_strs fs_opt_strs,
sb.sb->magic = BCHFS_MAGIC; sb.sb->magic = BCHFS_MAGIC;
sb.sb->user_uuid = opts.uuid; sb.sb->user_uuid = opts.uuid;
sb.sb->nr_devices = nr_devs; sb.sb->nr_devices = nr_devs;
SET_BCH_SB_VERSION_INCOMPAT_ALLOWED(sb.sb, opts.version);
if (opts.version == bcachefs_metadata_version_current) if (opts.version == bcachefs_metadata_version_current)
sb.sb->features[0] |= cpu_to_le64(BCH_SB_FEATURES_ALL); sb.sb->features[0] |= cpu_to_le64(BCH_SB_FEATURES_ALL);