mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
show-super now lists superblock features
This commit is contained in:
parent
f0d907189f
commit
50de96f5b2
@ -657,6 +657,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
{
|
||||
struct bch_sb_field_members *mi;
|
||||
char user_uuid_str[40], internal_uuid_str[40];
|
||||
char features_str[200];
|
||||
char fields_have_str[200];
|
||||
char label[BCH_SB_LABEL_SIZE + 1];
|
||||
char time_str[64];
|
||||
@ -702,6 +703,10 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
bch2_sb_get_target(sb, promote_str, sizeof(promote_str),
|
||||
BCH_SB_PROMOTE_TARGET(sb));
|
||||
|
||||
bch2_flags_to_text(&PBUF(features_str),
|
||||
bch2_sb_features,
|
||||
le64_to_cpu(sb->features[0]));
|
||||
|
||||
vstruct_for_each(sb, f)
|
||||
fields_have |= 1 << le32_to_cpu(f->type);
|
||||
bch2_flags_to_text(&PBUF(fields_have_str),
|
||||
@ -716,6 +721,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
"Btree node size: %s\n"
|
||||
"Error action: %s\n"
|
||||
"Clean: %llu\n"
|
||||
"Features: %s\n"
|
||||
|
||||
"Metadata replicas: %llu\n"
|
||||
"Data replicas: %llu\n"
|
||||
@ -749,6 +755,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
: "unknown",
|
||||
|
||||
BCH_SB_CLEAN(sb),
|
||||
features_str,
|
||||
|
||||
BCH_SB_META_REPLICAS_WANT(sb),
|
||||
BCH_SB_DATA_REPLICAS_WANT(sb),
|
||||
|
Loading…
Reference in New Issue
Block a user