allow migration of local qcow2 snapshots

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>
This commit is contained in:
Dominik Csapak 2016-12-05 11:21:15 +01:00 committed by Fabian Grünbichler
parent e57d58e542
commit b3205b153e

View 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";
}
}