mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-07 17:28:15 +00:00
qemu: Clear block copy mirror state explicitly
While this should not be necessary as we clear it in the event handler, let's be sure and clear it prior to starting the job. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: John Ferlan <jferlan@redhat.com>
This commit is contained in:
parent
c6db273082
commit
06fa3366c6
@ -17847,6 +17847,8 @@ qemuDomainBlockCopyCommon(virDomainObjPtr vm,
|
||||
if (!(job = qemuBlockJobDiskNew(disk, QEMU_BLOCKJOB_TYPE_COPY, device)))
|
||||
goto endjob;
|
||||
|
||||
disk->mirrorState = VIR_DOMAIN_DISK_MIRROR_STATE_NONE;
|
||||
|
||||
/* Actually start the mirroring */
|
||||
qemuDomainObjEnterMonitor(driver, vm);
|
||||
/* qemuMonitorDriveMirror needs to honor the REUSE_EXT flag as specified
|
||||
|
Loading…
x
Reference in New Issue
Block a user