bcachefs: Print features on startup with -o verbose
authorKent Overstreet <kent.overstreet@linux.dev>
Wed, 16 Apr 2025 13:23:15 +0000 (09:23 -0400)
committerKent Overstreet <kent.overstreet@linux.dev>
Thu, 22 May 2025 00:14:20 +0000 (20:14 -0400)
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/super.c

index b34c91dd51b15ce6f1f76484535de40ea09817dd..60e632e22b98161578874cf3d58a4935e7484c36 100644 (file)
@@ -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);
 }