]> git.proxmox.com Git - qemu-server.git/commitdiff
hotplug_pending: make 'ssd' option non-hotpluggable
authorOguz Bektas <o.bektas@proxmox.com>
Thu, 16 Jan 2020 15:06:34 +0000 (16:06 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 24 Jan 2020 15:11:53 +0000 (16:11 +0100)
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@proxmox.com>
PVE/QemuServer.pm

index 7374bf1d1234d90f61c1ca45a794f99aefe4e7b3..0478950d79eecac81aa4698a5b4751948d9b3448 100644 (file)
@@ -5069,7 +5069,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";
                    }