fix #4284: add read-only to non-hotpluggable disk options

Changing the read-only status of a disk is not possible through QMP, so
it needs to be exempt from the hotpluggable values as to notify the
user.

Signed-off-by: Leo Nunner <l.nunner@proxmox.com>
This commit is contained in:
Leo Nunner 2022-10-17 15:24:00 +02:00 committed by Thomas Lamprecht
parent 1e1d6f589c
commit e0e036e1ba

View File

@ -5280,7 +5280,8 @@ sub vmconfig_update_disk {
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->{ssd}, $old_drive->{ssd})) {
safe_string_ne($drive->{ssd}, $old_drive->{ssd}) ||
safe_string_ne($drive->{ro}, $old_drive->{ro})) {
die "skip\n";
}