mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-02-02 00:00:03 +03:00
Rename group to label in show-super output
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
This commit is contained in:
parent
39a6bf885d
commit
57f6402131
@ -37,14 +37,14 @@ static void usage(void)
|
||||
"Repair:\n"
|
||||
" fsck Check an existing filesystem for errors\n"
|
||||
"\n"
|
||||
"Startup/shutdown, assembly of multi device filesystems:\n"
|
||||
#if 0
|
||||
"Startup/shutdown, assembly of multi device filesystems:\n"
|
||||
" assemble Assemble an existing multi device filesystem\n"
|
||||
" incremental Incrementally assemble an existing multi device filesystem\n"
|
||||
" run Start a partially assembled filesystem\n"
|
||||
" stop Stop a running filesystem\n"
|
||||
#endif
|
||||
"\n"
|
||||
#endif
|
||||
"Commands for managing a running filesystem:\n"
|
||||
" fs usage Show disk usage\n"
|
||||
"\n"
|
||||
|
@ -410,10 +410,10 @@ static int bch2_sb_get_target(struct bch_sb *sb, char *buf, size_t len, u64 v)
|
||||
struct bch_disk_group *g = gi->entries + t.group;
|
||||
|
||||
if (t.group < disk_groups_nr(gi) && !BCH_GROUP_DELETED(g)) {
|
||||
ret = scnprintf(buf, len, "Group %u (%.*s)", t.group,
|
||||
ret = scnprintf(buf, len, "Label %u (%.*s)", t.group,
|
||||
BCH_SB_LABEL_SIZE, g->label);
|
||||
} else {
|
||||
ret = scnprintf(buf, len, "Bad group %u", t.group);
|
||||
ret = scnprintf(buf, len, "Bad label %u", t.group);
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -475,7 +475,7 @@ static void bch2_sb_print_members(struct bch_sb *sb, struct bch_sb_field *f,
|
||||
char member_uuid_str[40];
|
||||
char data_allowed_str[100];
|
||||
char data_has_str[100];
|
||||
char group[BCH_SB_LABEL_SIZE+10];
|
||||
char label [BCH_SB_LABEL_SIZE+10];
|
||||
char time_str[64];
|
||||
|
||||
if (!bch2_member_exists(m))
|
||||
@ -487,14 +487,14 @@ static void bch2_sb_print_members(struct bch_sb *sb, struct bch_sb_field *f,
|
||||
unsigned idx = BCH_MEMBER_GROUP(m) - 1;
|
||||
|
||||
if (idx < disk_groups_nr(gi)) {
|
||||
snprintf(group, sizeof(group), "%.*s (%u)",
|
||||
scnprintf(label, sizeof(label), "%.*s (%u)",
|
||||
BCH_SB_LABEL_SIZE,
|
||||
gi->entries[idx].label, idx);
|
||||
} else {
|
||||
strcpy(group, "(bad disk groups section)");
|
||||
strcpy(label, "(bad disk labels section)");
|
||||
}
|
||||
} else {
|
||||
strcpy(group, "(none)");
|
||||
strcpy(label, "(none)");
|
||||
}
|
||||
|
||||
bch2_flags_to_text(&PBUF(data_allowed_str),
|
||||
@ -545,7 +545,7 @@ static void bch2_sb_print_members(struct bch_sb *sb, struct bch_sb_field *f,
|
||||
? bch2_member_states[BCH_MEMBER_STATE(m)]
|
||||
: "unknown",
|
||||
|
||||
group,
|
||||
label,
|
||||
data_allowed_str,
|
||||
data_has_str,
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user