[libvirt] [PATCH 7/9] virsh: do not report error on zero filesystems in cmdDomFSInfo

Ján Tomko jtomko at redhat.com
Tue Feb 12 09:21:25 UTC 2019


Use vshPrintExtra to report this message. It is a human-readable
explanation rather than an error.

Also, it is a very special system that runs with no filesystems.

Signed-off-by: Ján Tomko <jtomko at redhat.com>
---
 tools/virsh-domain.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index cb2da8eb5b..d21e77ce75 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -13955,7 +13955,7 @@ cmdDomFSInfo(vshControl *ctl, const vshCmd *cmd)
 
     if (ninfos == 0) {
         ret = true;
-        vshError(ctl, _("No filesystems are mounted in the domain"));
+        vshPrintExtra(ctl, _("No filesystems are mounted in the domain"));
         goto cleanup;
     }
 
-- 
2.19.2




More information about the libvir-list mailing list