]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockcopy: Actually unplug unused images when mirror job fails to start
authorPeter Krempa <pkrempa@redhat.com>
Fri, 17 Jan 2020 13:07:34 +0000 (14:07 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 24 Jan 2020 12:40:36 +0000 (13:40 +0100)
commit623366d13066174e60067fa763ddc2c3d1db20ef
tree90876d136fcb88209925db203eb7f8de6d490c78
parent6d786f95a366600e7bbae68c1b324a8131f5e2c5
qemu: blockcopy: Actually unplug unused images when mirror job fails to start

If a mirror job fails to start in -blockdev mode we'd not unplug the
backing files we added first because the code on the error path checked
the wrong value. 'rc' is used as status of the code which added the
images, but the state of the 'block(dev)-mirror' call is stored in 'ret'
at that point.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
src/qemu/qemu_driver.c