From d8415b54695ec7323aa646ba3f9c3fe468c2ce26 Mon Sep 17 00:00:00 2001 From: Shanzhi Yu Date: Thu, 23 Oct 2014 18:13:15 +0800 Subject: [PATCH] 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 --- tools/virsh-domain.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }