diff options
author | Qu Wenruo <wqu@suse.com> | 2022-08-24 09:14:05 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2022-09-26 12:28:01 +0200 |
commit | ed2e35d85d61d00132dee8c04d02c837ebceaba2 (patch) | |
tree | 251b9482682ffdd424a1dfa235d0937d4cf57df9 /fs/char_dev.c | |
parent | ac3c0d36a2a2f7a8f9778faef3f2639f5bf29d44 (diff) |
btrfs: sysfs: introduce global qgroup attribute group
Although we already have info kobject for each qgroup, we don't have
global qgroup info attributes to show things like enabled or
inconsistent status flags.
Add this qgroups attribute groups, and the first member is qgroup_flags,
which is a read-only attribute to show human readable qgroup flags.
The path is:
/sys/fs/btrfs/<uuid>/qgroups/enabled
/sys/fs/btrfs/<uuid>/qgroups/inconsistent
The output is simple, just 1 or 0.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/char_dev.c')
0 files changed, 0 insertions, 0 deletions