From: Goffredo Baroncelli <kreijack@xxxxxxxxx>
A new line in the "Overall" section is added to inform that a
'Multiple profile' is present.
Signed-off-by: Goffredo Baroncelli <kreijack@xxxxxxxxx>
---
cmds/filesystem-usage.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/cmds/filesystem-usage.c b/cmds/filesystem-usage.c
index aa7065d5..742b4ea4 100644
--- a/cmds/filesystem-usage.c
+++ b/cmds/filesystem-usage.c
@@ -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 profile:\t\t%*s\n", width, "YES");
+ else
+ printf(" Multiple profile:\t\t%*s\n", width, "no");
+
exit:
--
2.26.0