]> git.proxmox.com Git - qemu-server.git/commitdiff
forbid migration of template with local base image
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 15 Sep 2016 11:23:56 +0000 (13:23 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 15 Sep 2016 12:15:09 +0000 (14:15 +0200)
PVE/QemuMigrate.pm

index 6415032eaa60f0e30e67ebfa72967447693fc513..22a49ef5fff62629b007744f44ae9d94d44f9ff6 100644 (file)
@@ -317,6 +317,9 @@ sub sync_disks {
                    die "non-migratable snapshot exists\n";
                }
            }
+
+           die "referenced by linked clone(s)\n"
+               if PVE::Storage::volume_is_base_and_used($self->{storecfg}, $volid);
        };
 
        my $test_drive = sub {