public inbox for linux-bcachefs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] bcachefs: Print version_incompat_allowed on startup
@ 2025-04-15 14:28 Kent Overstreet
  2025-04-15 14:28 ` [PATCH 2/2] bcachefs: Log message when incompat version requested but not enabled Kent Overstreet
  0 siblings, 1 reply; 2+ messages in thread
From: Kent Overstreet @ 2025-04-15 14:28 UTC (permalink / raw)
  To: linux-bcachefs; +Cc: Kent Overstreet

Let users know if incompatible features aren't enabled

Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
---
 fs/bcachefs/super.c | 5 +++++
 1 file changed, 5 insertions(+)

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);
 }
-- 
2.49.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2025-04-15 14:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-04-15 14:28 [PATCH 1/2] bcachefs: Print version_incompat_allowed on startup Kent Overstreet
2025-04-15 14:28 ` [PATCH 2/2] bcachefs: Log message when incompat version requested but not enabled Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox