Skip to content

Commit 4ae0166

Browse files
author
Kent Overstreet
committed
bcachefs: Print size of superblock with space allocated
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
1 parent a6548c8 commit 4ae0166

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

fs/bcachefs/super-io.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1320,7 +1320,9 @@ void bch2_sb_to_text(struct printbuf *out, struct bch_sb *sb,
13201320

13211321
prt_printf(out, "Superblock size:");
13221322
prt_tab(out);
1323-
prt_printf(out, "%zu", vstruct_bytes(sb));
1323+
prt_units_u64(out, vstruct_bytes(sb));
1324+
prt_str(out, "/");
1325+
prt_units_u64(out, 512ULL << sb->layout.sb_max_size_bits);
13241326
prt_newline(out);
13251327

13261328
prt_printf(out, "Clean:");

0 commit comments

Comments
 (0)