]> xenbits.xensource.com Git - libvirt.git/commit
virsh: blockcopy: Report error if the copy job fails
authorPeter Krempa <pkrempa@redhat.com>
Fri, 19 Jun 2015 13:43:02 +0000 (15:43 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 22 Jun 2015 09:09:54 +0000 (11:09 +0200)
commite7d3ff8464ed4833fa9c9bd9ef1f613f04434b31
tree5bde43b72fb8c805f4ab47837358ae8b33e9b1e2
parent50a9099262d6815976dad28264ad8f2f067b391e
virsh: blockcopy: Report error if the copy job fails

When the block job would fail while watching it using the "--wait"
option for blockcopy, virsh would rather unhelpfully report:

$ virsh blockcopy vm hdc /tmp/raw.img --granularity 4096 --verbose --wait

Now in mirroring phase

Add a special case when the block job vanishes while waiting for it to
finish to improve the message:

$ virsh blockcopy vm hdc /tmp/raw.img --granularity 8192 --verbose --wait
error: Block Copy unexpectedly failed
tools/virsh-domain.c