From: Kent Overstreet Date: Wed, 16 Apr 2025 13:23:15 +0000 (-0400) Subject: bcachefs: Print features on startup with -o verbose X-Git-Tag: v6.16-rc1~211^2~160 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=576493133f26a172b8db4313448206d30750c9b2;p=thirdparty%2Fkernel%2Flinux.git bcachefs: Print features on startup with -o verbose Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/super.c b/fs/bcachefs/super.c index b34c91dd51b15..60e632e22b981 100644 --- a/fs/bcachefs/super.c +++ b/fs/bcachefs/super.c @@ -1054,6 +1054,11 @@ static void print_mount_opts(struct bch_fs *c) bch2_version_to_text(&p, c->sb.version_incompat_allowed); } + if (c->opts.verbose) { + prt_printf(&p, "\n features: "); + prt_bitflags(&p, bch2_sb_features, c->sb.features); + } + bch_info(c, "%s", p.buf); printbuf_exit(&p); }