From: Kent Overstreet Date: Tue, 15 Apr 2025 12:44:40 +0000 (-0400) Subject: bcachefs: Print version_incompat_allowed on startup X-Git-Tag: v6.15-rc3~30^2~4 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=14bcf982f428cd98bababe30d4059f93d39a2f14;p=thirdparty%2Flinux.git bcachefs: Print version_incompat_allowed on startup Let users know if incompatible features aren't enabled Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index 788e870bfef6a..f1eef5e7698bf 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); }