[pve-devel] [PATCH qemu-server] hotplug_pending: make 'ssd' option non-hotpluggable
Oguz Bektas
o.bektas at proxmox.com
Thu Jan 16 16:06:34 CET 2020
from hotplug_pending we go into 'vmconfig_update_disk', where we check the
hotpluggability of options.
add 'ssd' there as a non-hotpluggable option (since we'd have to unplug/plug to
change the drive type)
Signed-off-by: Oguz Bektas <o.bektas at proxmox.com>
---
PVE/QemuServer.pm | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/PVE/QemuServer.pm b/PVE/QemuServer.pm
index c2547d6..1d01a68 100644
--- a/PVE/QemuServer.pm
+++ b/PVE/QemuServer.pm
@@ -5252,7 +5252,8 @@ sub vmconfig_update_disk {
if (&$safe_string_ne($drive->{discard}, $old_drive->{discard}) ||
&$safe_string_ne($drive->{iothread}, $old_drive->{iothread}) ||
&$safe_string_ne($drive->{queues}, $old_drive->{queues}) ||
- &$safe_string_ne($drive->{cache}, $old_drive->{cache})) {
+ &$safe_string_ne($drive->{cache}, $old_drive->{cache}) ||
+ &$safe_string_ne($drive->{ssd}, $old_drive->{ssd})) {
die "skip\n";
}
--
2.20.1
More information about the pve-devel
mailing list