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;
}
}
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 <support@proxmox.com> Thu, 28 Feb 2013 06:21:30 +0100