From 6f9a607037a904440ffff0439c39547e5f5772b1 Mon Sep 17 00:00:00 2001 From: Alexandre Derumier Date: Fri, 2 Jan 2015 15:16:00 +0100 Subject: [PATCH] don't try to hotplug|unplug ide && sata drive We can't hotplug theses devices, so we can avoid to throw always an error when adding them Signed-off-by: Alexandre Derumier --- PVE/QemuServer.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm index 0c70c18..38eca4b 100644 --- a/PVE/QemuServer.pm +++ b/PVE/QemuServer.pm @@ -3656,7 +3656,7 @@ sub vmconfig_hotplug_pending { die "skip\n" if !$hotplug; vm_deviceunplug($vmid, $conf, $opt); } elsif (valid_drivename($opt)) { - die "skip\n" if !$hotplug; + die "skip\n" if !$hotplug || $opt =~ m/(ide|sata)(\d+)/; vm_deviceunplug($vmid, $conf, $opt); vmconfig_register_unused_drive($storecfg, $vmid, $conf, parse_drive($opt, $conf->{$opt})); } else { @@ -3903,7 +3903,7 @@ sub vmconfig_update_disk { } } else { - die "skip\n" if !$conf->{hotplug}; + die "skip\n" if !$conf->{hotplug} || $opt =~ m/(ide|sata)(\d+)/; # hotplug new disks vm_deviceplug($storecfg, $conf, $vmid, $opt, $drive); } -- 2.39.2