Skip to content

Commit 14bcf98

Browse files
author
Kent Overstreet
committed
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>
1 parent a064596 commit 14bcf98

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

fs/bcachefs/super.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1013,6 +1013,11 @@ static void print_mount_opts(struct bch_fs *c)
10131013
bch2_opt_to_text(&p, c, c->disk_sb.sb, opt, v, OPT_SHOW_MOUNT_STYLE);
10141014
}
10151015

1016+
if (c->sb.version_incompat_allowed != c->sb.version) {
1017+
prt_printf(&p, "\n allowing incompatible features above ");
1018+
bch2_version_to_text(&p, c->sb.version_incompat_allowed);
1019+
}
1020+
10161021
bch_info(c, "%s", p.buf);
10171022
printbuf_exit(&p);
10181023
}

0 commit comments

Comments
 (0)