]> git.proxmox.com Git - qemu-server.git/commitdiff
disable drive-mirror when iothread is enabled
authorAlexandre Derumier <aderumier@odiso.com>
Sat, 20 Aug 2016 08:02:29 +0000 (10:02 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 23 Aug 2016 07:28:54 +0000 (09:28 +0200)
drive-mirror is not working with qemu 2.6 when iothread is enabled.

with virtio-blk : mirror is working, but block-job-completed crash the vm
with virtio-scsi : mirror hang at start.

This should be fixed in qemu 2.7

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index 2414fd86c861d9b25941641f461dfac9d827d71b..46f8fdcc2c0719ce41a99483608f9a5116667987 100644 (file)
@@ -5761,6 +5761,9 @@ sub clone_disk {
        if (!$running || $snapname) {
            qemu_img_convert($drive->{file}, $newvolid, $size, $snapname, $sparseinit);
        } else {
+           #qemu 2.6
+           die "drive-mirror is not working currently when iothread is enabled" if $drive->{iothread};
+
            qemu_drive_mirror($vmid, $drivename, $newvolid, $newvmid, $sparseinit);
        }
     }