]> git.proxmox.com Git - qemu-server.git/commitdiff
fix check if a backing file exist
authorDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Feb 2013 05:35:29 +0000 (06:35 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 28 Feb 2013 05:36:46 +0000 (06:36 +0100)
PVE/QemuMigrate.pm
changelog.Debian

index 61c5629c4fd1ff4e2708599188f2d6bc0e83a756..af849d35169657e0eaa9850221f475a13c387a36 100644 (file)
@@ -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;
            }
        }
 
index 9449762eb0fca80cd778bcfae5b5c2e1148c6e08..bfb8574beaaa047a9d4287ad92600ba4ad41e062 100644 (file)
@@ -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 <support@proxmox.com>  Thu, 28 Feb 2013 06:21:30 +0100