mirror of
https://git.proxmox.com/git/qemu-server
synced 2026-01-26 23:40:27 +00:00
allow disks on shared storages on replicated VMs
This commit is contained in:
parent
17677004cc
commit
9b1396edd2
@ -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";
|
||||
};
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user