]> git.proxmox.com Git - qemu-server.git/commitdiff
allow disks on shared storages on replicated VMs
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 27 Jun 2017 13:00:06 +0000 (15:00 +0200)
committerDietmar Maurer <dietmar@proxmox.com>
Tue, 27 Jun 2017 13:22:08 +0000 (15:22 +0200)
PVE/API2/Qemu.pm

index da5f5b15f8933eaf64d98ad7bcea76b6fa6db177..eb7d6dde43d1148ce03804cbf0102b389f1a9347 100644 (file)
@@ -972,6 +972,8 @@ my $update_vm_api  = sub {
            $format = (PVE::Storage::parse_volname($storecfg, $volid))[6];
        }
        return if PVE::Storage::storage_can_replicate($storecfg, $storeid, $format);
+       my $scfg = PVE::Storage::storage_config($storecfg, $storeid);
+       return if $scfg->{shared};
        die "cannot add non-replicatable volume to a replicated VM\n";
     };