]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: driver: Set mirror state after successful command
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Feb 2019 12:19:17 +0000 (13:19 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 21 May 2019 12:22:05 +0000 (14:22 +0200)
commit019461facb562c40a360351f36d81f49b7ed120a
tree619cdbbcc7cb27cfa4b95ef87e4c833f17903fb0
parentd41e1aa16985661d4046331feff193dc6e2a275a
qemu: driver: Set mirror state after successful command

When aborting or pivoting a block job we record which operation we do
for the mirror in the virDomainDiskDef structure. As everything is
synchronized by a job it's not necessary to modify the state prior to
calling the monitor and resetting the state on failure.

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