When begin a blockcommit job(active) with virsh, it will report
"Block Commit started"(it really donesn't matter much), but for
more preciese it should report "Active Block Commit started"
Signed-off-by: Shanzhi Yu <shyu(a)redhat.com>
---
tools/virsh-domain.c | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
index 94ae3d3..3416e31 100644
--- a/tools/virsh-domain.c
+++ b/tools/virsh-domain.c
@@ -1723,9 +1723,15 @@ cmdBlockCommit(vshControl *ctl, const vshCmd *cmd)
goto cleanup;
if (!blocking) {
- vshPrint(ctl, "%s", _("Block Commit started"));
- ret = true;
- goto cleanup;
+ if (active) {
+ vshPrint(ctl, "%s", _("Active Block Commit started"));
+ ret = true;
+ goto cleanup;
+ } else {
+ vshPrint(ctl, "%s", _("Block Commit started"));
+ ret = true;
+ goto cleanup;
+ }
}
while (blocking) {
--
1.9.3