]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
bcachefs: Print version_incompat_allowed on startup
authorKent Overstreet <kent.overstreet@linux.dev>
Tue, 15 Apr 2025 12:44:40 +0000 (08:44 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Tue, 15 Apr 2025 15:35:05 +0000 (11:35 -0400)
Let users know if incompatible features aren't enabled

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index 788e870bfef6a9e45a1783f65753ba74e3dd75f9..f1eef5e7698bf42b9930e24718a6207765297d4f 100644 (file)
@@ -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);
 }