[libvirt] [PATCH] virsh: blockcopy: Report error if the copy job fails

Eric Blake eblake at redhat.com
Fri Jun 19 16:43:28 UTC 2015


On 06/19/2015 07:46 AM, Peter Krempa wrote:
> 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 | 7 +++++--
>  1 file changed, 5 insertions(+), 2 deletions(-)

ACK.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20150619/b9064bd6/attachment-0001.sig>


More information about the libvir-list mailing list