From: Peter Krempa Date: Thu, 24 Jan 2019 09:49:34 +0000 (+0100) Subject: qemu: Clear block copy mirror state explicitly X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=06fa3366c6c13ab10ccb748653173786f0c105a9;p=libvirt.git 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 Reviewed-by: John Ferlan --- diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index 5387150bbd..af89f6de3b 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -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