]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Always save status XML in qemuDomainBlockJobAbort
authorPeter Krempa <pkrempa@redhat.com>
Thu, 24 Jan 2019 16:13:58 +0000 (17:13 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 7 Feb 2019 13:32:32 +0000 (14:32 +0100)
commitef8a87a09d8dfbb9978792beb257d1374d4d469c
tree2746f0473e87ef669435cc493ceff9a89e0005e5
parent94fce255461ad6bf0366dd4428921d7d41ba1a8f
qemu: Always save status XML in qemuDomainBlockJobAbort

For copy and active commit jobs we record the state of the mirror so
that we can recover. The status XML was not saved in case of
qemuDomainBlockPivot due to an oversight.

Save the XML always when invoking qemuDomainBlockJobAbort even if
the job is not currently tracking any state. This will change later and
also this is not a particularly hot code path.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c