]> git.proxmox.com Git - qemu-server.git/commitdiff
allow migration of local qcow2 snapshots
authorDominik Csapak <d.csapak@proxmox.com>
Mon, 5 Dec 2016 10:21:15 +0000 (11:21 +0100)
committerFabian Grünbichler <f.gruenbichler@proxmox.com>
Mon, 5 Dec 2016 11:32:50 +0000 (12:32 +0100)
we can migrate local snapshots when on zfs or dir storage with qcow2,
but the check was incorrect

we checked for if (zfs && !qcow2) instead of  if (zfs || qcow2)

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
PVE/QemuMigrate.pm

index 8a65fe6ddda974229fb1f77ce6924b61a1258a0e..76ae55e24545f7be9a2d82faef0a1bb06c86f956 100644 (file)
@@ -313,7 +313,7 @@ sub sync_disks {
 
                my $format = PVE::QemuServer::qemu_img_format($scfg, $volname);
 
-               if (!($scfg->{type} eq 'zfspool') || ($format eq 'qcow2')) {
+               if (!($scfg->{type} eq 'zfspool' || $format eq 'qcow2')) {
                    die "non-migratable snapshot exists\n";
                }
            }