diff --git a/PVE/QemuMigrate.pm b/PVE/QemuMigrate.pm index 61c5629c..af849d35 100644 --- a/PVE/QemuMigrate.pm +++ b/PVE/QemuMigrate.pm @@ -246,10 +246,10 @@ sub sync_disks { die "can't migrate '$volid' - storagy type '$scfg->{type}' not supported\n" if $scfg->{type} ne 'dir'; - #if file, check if a backing file exist - if(($scfg->{type} eq 'dir') && (!$sharedvm)){ + # if file, check if a backing file exist + if (($scfg->{type} eq 'dir') && (!$sharedvm)) { my (undef, undef, undef, $parent) = PVE::Storage::volume_size_info($self->{storecfg}, $volid, 1); - die "can't migrate '$volid' as it's a clone of '$parent'"; + die "can't migrate '$volid' as it's a clone of '$parent'" if $parent; } } diff --git a/changelog.Debian b/changelog.Debian index 9449762e..bfb8574b 100644 --- a/changelog.Debian +++ b/changelog.Debian @@ -1,6 +1,8 @@ qemu-server (2.3-14) unstable; urgency=low * bugfix #340 : don't set cache=none to cdrom + + * Migrate: fix check if a backing file exist -- Proxmox Support Team Thu, 28 Feb 2013 06:21:30 +0100