mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-30 09:21:45 +00:00
btrfs-progs: fi usage: add check for multiple profiles
A new line in the "Overall" section is added to inform that 'Multiple profiles' are present. Signed-off-by: Goffredo Baroncelli <kreijack@inwind.it> Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
138460757a
commit
6b535a04ee
@ -492,6 +492,11 @@ static int print_filesystem_usage_overall(int fd, struct chunk_info *chunkinfo,
|
||||
printf(" Global reserve:\t\t%*s\t(used: %s)\n", width,
|
||||
pretty_size_mode(l_global_reserve, unit_mode),
|
||||
pretty_size_mode(l_global_reserve_used, unit_mode));
|
||||
if (btrfs_test_for_mixed_profiles_by_fd(fd) > 0)
|
||||
printf(" Multiple profiles:\t\t%*s\n", width, "YES");
|
||||
else
|
||||
printf(" Multiple profiles:\t\t%*s\n", width, "no");
|
||||
|
||||
|
||||
exit:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user