diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 19:55:03 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-04-01 21:38:19 -0400 |
commit | 9f4ed5ce05888b62d1e4417323c553e5d06f4abf (patch) | |
tree | f7db5aeedaae555b94164f84296a80ffedc4b3d9 /c_src/cmd_format.c | |
parent | 6e50a9b4fc35852b35a407ebf934a53edd8c605f (diff) |
cmd_show_super: Also print device model
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'c_src/cmd_format.c')
-rw-r--r-- | c_src/cmd_format.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/c_src/cmd_format.c b/c_src/cmd_format.c index 4d6c2dc1..e2468350 100644 --- a/c_src/cmd_format.c +++ b/c_src/cmd_format.c @@ -384,6 +384,15 @@ int cmd_show_super(int argc, char *argv[]) if (f) __bch2_sb_field_to_text(&buf, sb.sb, f); } else { + printbuf_tabstop_push(&buf, 44); + + char *model = fd_to_dev_model(sb.bdev->bd_fd); + prt_str(&buf, "Device:"); + prt_tab(&buf); + prt_str(&buf, model); + prt_newline(&buf); + free(model); + bch2_sb_to_text(&buf, sb.sb, print_layout, fields); } printf("%s", buf.buf); |