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:
Goffredo Baroncelli 2020-04-04 12:32:10 +02:00 committed by David Sterba
parent 138460757a
commit 6b535a04ee

View File

@ -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: