diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-03 16:27:03 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-05-03 16:27:03 -0400 |
commit | 6e4bda5ad5f7a43b90d9f22b8e86011e51569bf1 (patch) | |
tree | 1887f27eda977f5178ccc0636b18635f8a67b61a | |
parent | 8376810564f63793b953b856ec60bbb1e2495a40 (diff) |
Set BCH_FEATURE_incompat_version_field if supported
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
-rw-r--r-- | c_src/libbcachefs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/c_src/libbcachefs.c b/c_src/libbcachefs.c index eb99535f..6f68f4c5 100644 --- a/c_src/libbcachefs.c +++ b/c_src/libbcachefs.c @@ -222,7 +222,7 @@ struct bch_sb *bch2_format(struct bch_opt_strs fs_opt_strs, sb.sb->nr_devices = devs.nr; SET_BCH_SB_VERSION_INCOMPAT_ALLOWED(sb.sb, opts.version); - if (opts.version == bcachefs_metadata_version_current) + if (opts.version > bcachefs_metadata_version_disk_accounting_big_endian) sb.sb->features[0] |= cpu_to_le64(BCH_SB_FEATURES_ALL); uuid_generate(sb.sb->uuid.b); |