]> xenbits.xensource.com Git - libvirt.git/commitdiff
virsh: Improve the job type reported of virsh cmd blockcommit
authorShanzhi Yu <shyu@redhat.com>
Thu, 23 Oct 2014 10:13:15 +0000 (18:13 +0800)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 28 Oct 2014 23:16:32 +0000 (00:16 +0100)
When starting an active block commit job in virsh, it will report
"Block Commit started", but for more precise message it could
report "Active Block Commit started".

Signed-off-by: Shanzhi Yu <shyu@redhat.com>
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c

index 94ae3d308210a5223c9bb9af4d91413425ab4ce3..971af83c43c41d38287eeb7b5642e6c39ef23cf7 100644 (file)
@@ -1723,7 +1723,9 @@ cmdBlockCommit(vshControl *ctl, const vshCmd *cmd)
         goto cleanup;
 
     if (!blocking) {
-        vshPrint(ctl, "%s", _("Block Commit started"));
+        vshPrint(ctl, "%s", active ?
+                 _("Active Block Commit started") :
+                 _("Block Commit started"));
         ret = true;
         goto cleanup;
     }