Re: [libvirt] [PATCH 04/12] qemu: driver: Set mirror state after successful command

2019-05-21 Thread Ján Tomko
On Fri, May 17, 2019 at 01:19:50PM +0200, Peter Krempa wrote: 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 rese

[libvirt] [PATCH 04/12] qemu: driver: Set mirror state after successful command

2019-05-17 Thread Peter Krempa
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 reseting the state on failure. Signed-off-by: Peter Krempa --- sr