5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-01-08 21:18:03 +03:00

hotplug_pending: make 'ssd' option non-hotpluggable

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>
This commit is contained in:
Oguz Bektas 2020-01-16 16:06:34 +01:00 committed by Thomas Lamprecht
parent d786a27435
commit 74f15a8993

View 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";
}