[libvirt] [PATCH] tools: fix the output of blockjob

Shanzhi Yu shyu at redhat.com
Mon May 11 04:14:57 UTC 2015


There will be no output when use blockjob with "--raw" option if guest
has no block job. A explicit message should be given just like
with "--info"

Signed-off-by: Shanzhi Yu <shyu at redhat.com>
---
 tools/virsh-domain.c | 1 -
 1 file changed, 1 deletion(-)

diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 14e1e35..7094a43 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -2541,7 +2541,6 @@ cmdBlockJob(vshControl *ctl, const vshCmd *cmd)
     }
 
     if (rc == 0) {
-        if (!raw)
             vshPrint(ctl, _("No current block job for %s"), path);
         ret = true;
         goto cleanup;
-- 
2.1.0




More information about the libvir-list mailing list