]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: blockjob: Properly propagate cancellation of blockjobs
authorPeter Krempa <pkrempa@redhat.com>
Tue, 26 Nov 2019 08:28:22 +0000 (09:28 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 27 Nov 2019 14:59:33 +0000 (15:59 +0100)
commita887da529cd2d16f7fa71dabb1bae90f6a2da31b
tree388a2a88dffb2a8b23c4c67bb1dbac3e5c2dcf0d
parent01270a9a5fb0670b8d058aa4dea0db5c268642d3
qemu: blockjob: Properly propagate cancellation of blockjobs

qemu returns an error message in the job statistics even if the job was
cancelled to emphasize it was not successful. Libvirt didn't properly
transform it into QEMU_BLOCKJOB_STATE_CANCELLED though.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Cole Robinson <crobinso@redhat.com>
src/qemu/qemu_blockjob.c