Add device index to show-super

This commit is contained in:
Kent Overstreet 2021-01-26 20:48:58 -05:00
parent 9fce394ca6
commit 0e05fa6dfe

View File

@ -733,6 +733,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
printf("External UUID: %s\n" printf("External UUID: %s\n"
"Internal UUID: %s\n" "Internal UUID: %s\n"
"Device index: %u\n"
"Label: %s\n" "Label: %s\n"
"Version: %llu\n" "Version: %llu\n"
"Created: %s\n" "Created: %s\n"
@ -764,6 +765,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
"Superblock size: %llu\n", "Superblock size: %llu\n",
user_uuid_str, user_uuid_str,
internal_uuid_str, internal_uuid_str,
sb->dev_idx,
label, label,
le64_to_cpu(sb->version), le64_to_cpu(sb->version),
time_str, time_str,