]> git.proxmox.com Git - qemu-server.git/commitdiff
disk hotplug : allow hotplug of physical host /dev/ disks
authorAlexandre Derumier <aderumier@odiso.com>
Thu, 4 Feb 2016 15:47:56 +0000 (16:47 +0100)
committerDietmar Maurer <dietmar@proxmox.com>
Thu, 4 Feb 2016 17:09:38 +0000 (18:09 +0100)
Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
PVE/QemuServer.pm

index 14a18f0cf7dc7c62d705148c47da60e7e68d5099..b63444dff28eebe9c5a5403cf7f6b64fade9e0c1 100644 (file)
@@ -4472,7 +4472,7 @@ sub vmconfig_update_disk {
 
     die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/;
     # 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);
 }