From f7b4356fe6550c968d8e321d9420b97a43098f84 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Thu, 4 Feb 2016 16:47:56 +0100 Subject: [PATCH] disk hotplug : allow hotplug of physical host /dev/ disks Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 14a18f0c..b63444df 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -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); }