From: Shanzhi Yu Date: Thu, 23 Oct 2014 10:13:15 +0000 (+0800) Subject: virsh: Improve the job type reported of virsh cmd blockcommit X-Git-Tag: v1.2.10-rc1~30 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8415b54695ec7323aa646ba3f9c3fe468c2ce26;p=thirdparty%2Flibvirt.git virsh: Improve the job type reported of virsh cmd blockcommit 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 Signed-off-by: Michal Privoznik --- diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 94ae3d3082..971af83c43 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -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; }