]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Fix job status indicator for 0 length block jobs
authorPeter Krempa <pkrempa@redhat.com>
Fri, 11 Sep 2015 19:34:24 +0000 (21:34 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 23 Sep 2015 13:06:56 +0000 (15:06 +0200)
commit7acfb940f712980415e82a46a7de7adb11163a10
treeebfddb76e5b4ae34102a6e76da8367d04572fee1
parentd7a0386e229176ec67531aac1412b8a98914da8e
virsh: Fix job status indicator for 0 length block jobs

Although 0 length block jobs aren't entirely useful, the output of virsh
blockjob is empty due to the condition that suppresses the output for
migration jobs that did not start. Since the only place that actually
uses the condition that suppresses the output is in migration, let's
move the check there and thus add support for 0 of 0 equaling to 100%.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1196711
tools/virsh-domain.c