mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-14 10:48:24 +00:00
disk hotplug : allow hotplug of physical host /dev/ disks
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
This commit is contained in:
parent
031a1661c3
commit
f7b4356fe6
@ -4472,7 +4472,7 @@ sub vmconfig_update_disk {
|
|||||||
|
|
||||||
die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/;
|
die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/;
|
||||||
# hotplug new disks
|
# hotplug new disks
|
||||||
PVE::Storage::activate_volumes($storecfg, [$drive->{file}]);
|
PVE::Storage::activate_volumes($storecfg, [$drive->{file}]) if $drive->{file} !~ m|^/dev/.+|;
|
||||||
vm_deviceplug($storecfg, $conf, $vmid, $opt, $drive);
|
vm_deviceplug($storecfg, $conf, $vmid, $opt, $drive);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user