mirror of
https://github.com/koverstreet/bcachefs-tools.git
synced 2025-03-10 00:00:04 +03:00
bcacheadm: print more info in query_dev
Also display the internal cacheset uuid for each dev, stored in the superblock. As well as the dev uuid stored in the struct member_info. Signed-off-by: Jacob Malevich <jam@daterainc.com> Issue DAT-1913 Change-Id: Ib9815a023b0791c54ffde573fda1e9911d757c34
This commit is contained in:
parent
3fa318e8b7
commit
16d5881bad
8
bcache.c
8
bcache.c
@ -835,6 +835,10 @@ static void show_super_common(struct cache_sb *sb, bool force_csum)
|
|||||||
|
|
||||||
uuid_unparse(sb->user_uuid.b, uuid);
|
uuid_unparse(sb->user_uuid.b, uuid);
|
||||||
printf("cset.uuid\t\t%s\n", uuid);
|
printf("cset.uuid\t\t%s\n", uuid);
|
||||||
|
|
||||||
|
uuid_unparse(sb->set_uuid.b, uuid);
|
||||||
|
printf("internal.uuid\t%s\n", uuid);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void show_super_backingdev(struct cache_sb *sb, bool force_csum)
|
void show_super_backingdev(struct cache_sb *sb, bool force_csum)
|
||||||
@ -860,9 +864,13 @@ void show_super_backingdev(struct cache_sb *sb, bool force_csum)
|
|||||||
void show_super_cache(struct cache_sb *sb, bool force_csum)
|
void show_super_cache(struct cache_sb *sb, bool force_csum)
|
||||||
{
|
{
|
||||||
struct cache_member *m = sb->members + sb->nr_this_dev;
|
struct cache_member *m = sb->members + sb->nr_this_dev;
|
||||||
|
char uuid[16];
|
||||||
|
|
||||||
show_super_common(sb, force_csum);
|
show_super_common(sb, force_csum);
|
||||||
|
|
||||||
|
uuid_unparse(m->uuid.b, uuid);
|
||||||
|
printf("dev.cache.uuid\t%s\n", uuid);
|
||||||
|
|
||||||
printf("dev.sectors_per_block\t%u\n"
|
printf("dev.sectors_per_block\t%u\n"
|
||||||
"dev.sectors_per_bucket\t%u\n",
|
"dev.sectors_per_bucket\t%u\n",
|
||||||
sb->block_size,
|
sb->block_size,
|
||||||
|
Loading…
Reference in New Issue
Block a user