mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
Add compatible feature bits to bch2_sb_print()
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
209695dedf
commit
08e14f84d9
@ -669,6 +669,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[500];
|
||||
char compat_features_str[500];
|
||||
char fields_have_str[200];
|
||||
char label[BCH_SB_LABEL_SIZE + 1];
|
||||
char time_str[64];
|
||||
@ -722,6 +723,10 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
bch2_sb_features,
|
||||
le64_to_cpu(sb->features[0]));
|
||||
|
||||
bch2_flags_to_text(&PBUF(compat_features_str),
|
||||
bch2_sb_compat,
|
||||
le64_to_cpu(sb->compat[0]));
|
||||
|
||||
vstruct_for_each(sb, f)
|
||||
fields_have |= 1 << le32_to_cpu(f->type);
|
||||
bch2_flags_to_text(&PBUF(fields_have_str),
|
||||
@ -740,6 +745,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
"Error action: %s\n"
|
||||
"Clean: %llu\n"
|
||||
"Features: %s\n"
|
||||
"Compat features: %s\n"
|
||||
|
||||
"Metadata replicas: %llu\n"
|
||||
"Data replicas: %llu\n"
|
||||
@ -778,6 +784,7 @@ void bch2_sb_print(struct bch_sb *sb, bool print_layout,
|
||||
|
||||
BCH_SB_CLEAN(sb),
|
||||
features_str,
|
||||
compat_features_str,
|
||||
|
||||
BCH_SB_META_REPLICAS_WANT(sb),
|
||||
BCH_SB_DATA_REPLICAS_WANT(sb),
|
||||
|
Loading…
Reference in New Issue
Block a user