mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-10-04 19:20:11 +00:00
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:
parent
e57d58e542
commit
b3205b153e
@ -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";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user