diff options
author | Brian Foster <bfoster@redhat.com> | 2023-05-30 20:41:50 +0200 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 23:10:03 +0200 |
commit | fec4fc82b531beb2cc67b734140ffe776af33f7c (patch) | |
tree | 69eb17cf9b842e4ae2071a30a9ccc8c1d9afb7b9 /fs/bcachefs/disk_groups.h | |
parent | bcachefs: Clean up tests code (diff) | |
download | linux-fec4fc82b531beb2cc67b734140ffe776af33f7c.tar.xz linux-fec4fc82b531beb2cc67b734140ffe776af33f7c.zip |
bcachefs: create internal disk_groups sysfs file
We have bch2_sb_disk_groups_to_text() to dump disk group labels, but
no good information on device group membership at runtime. Add
bch2_disk_groups_to_text() and an associated 'disk_groups' sysfs
file to print group and device relationships.
Signed-off-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/disk_groups.h')
-rw-r--r-- | fs/bcachefs/disk_groups.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/bcachefs/disk_groups.h b/fs/bcachefs/disk_groups.h index e4470c357a66..bf39db3868bf 100644 --- a/fs/bcachefs/disk_groups.h +++ b/fs/bcachefs/disk_groups.h @@ -88,4 +88,6 @@ int bch2_dev_group_set(struct bch_fs *, struct bch_dev *, const char *); const char *bch2_sb_validate_disk_groups(struct bch_sb *, struct bch_sb_field *); +void bch2_disk_groups_to_text(struct printbuf *, struct bch_fs *); + #endif /* _BCACHEFS_DISK_GROUPS_H */ |