path: root/cmds-fi-usage.c
diff options
authorMisono Tomohiro <>2018-03-29 17:22:43 +0900
committerDavid Sterba <>2018-06-07 16:37:35 +0200
commit781792707a258be9c5e7a8b018b5838d162a01c2 (patch)
tree1b01f881eca9b3ba8dc709a1d1b09968aee9dcd5 /cmds-fi-usage.c
parent803f6c47146f9d2083ac15a88bd627cde08d78e7 (diff)
btrfs-progs: fi usage: change warning message more appropriately
"fi usage" shows the warning "RAID5/6 numbers will be incorrect" when running without root privilege even if raid5/6 is not used. What happens is it cannot get the per device profile usage info, so change the message more appropriately. Reviewed-by: Qu Wenruo <> Signed-off-by: Tomohiro Misono <> [ adjust message ] Signed-off-by: David Sterba <>
Diffstat (limited to 'cmds-fi-usage.c')
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c
index de7ad668..23309d7e 100644
--- a/cmds-fi-usage.c
+++ b/cmds-fi-usage.c
@@ -629,7 +629,7 @@ int load_chunk_and_device_info(int fd, struct chunk_info **chunkinfo,
ret = load_chunk_info(fd, chunkinfo, chunkcount);
if (ret == -EPERM) {
-"cannot read detailed chunk info, RAID5/6 numbers will be incorrect, run as root");
+"cannot read detailed chunk info, per-device usage will not be shown, run as root");
} else if (ret) {
return ret;