]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: block: store the delete flag in libvirtd's status XML
authorPavel Mores <pmores@redhat.com>
Tue, 10 Dec 2019 16:25:40 +0000 (17:25 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 11 Dec 2019 07:40:18 +0000 (08:40 +0100)
commit73532dadd206504775a0fef82a31baac13fb3bfe
treecd2f08ec0c40ee32d7988036cc97d5009c457058
parent9e5c98e84f7bac47b86034eb73eba5b648705473
qemu: block: store the delete flag in libvirtd's status XML

Since blockcommit is asynchronous, libvirtd can be restarted while the
operation runs.  To ensure the information necessary to finish up the job
is not lost, serialisation to and deserialisation from the status XML is
added.

To unittest this, the new element was only added to the active commit test,
the non-active commit test doesn't have the new element so as to test its
absence.

Signed-off-by: Pavel Mores <pmores@redhat.com>
Reviewed-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_domain.c
tests/qemustatusxml2xmldata/blockjob-blockdev-in.xml