diff options
| author | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-15 15:44:40 +0300 |
|---|---|---|
| committer | Kent Overstreet <kent.overstreet@linux.dev> | 2025-04-15 18:35:05 +0300 |
| commit | 14bcf982f428cd98bababe30d4059f93d39a2f14 (patch) | |
| tree | d68d552bd222eaf85b944e352eed297270e1a5f2 | |
| parent | a06459657e4ecc4b35a2ee7a9bf5359ecfb077cf (diff) | |
| download | linux-14bcf982f428cd98bababe30d4059f93d39a2f14.tar.xz | |
bcachefs: Print version_incompat_allowed on startup
Let users know if incompatible features aren't enabled
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
| -rw-r--r-- | fs/bcachefs/super.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 788e870bfef6..f1eef5e7698b 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -1013,6 +1013,11 @@ static void print_mount_opts(struct bch_fs *c) bch2_opt_to_text(&p, c, c->disk_sb.sb, opt, v, OPT_SHOW_MOUNT_STYLE); } + if (c->sb.version_incompat_allowed != c->sb.version) { + prt_printf(&p, "\n allowing incompatible features above "); + bch2_version_to_text(&p, c->sb.version_incompat_allowed); + } + bch_info(c, "%s", p.buf); printbuf_exit(&p); } |
