]> git.proxmox.com Git - qemu-server.git/commitdiff
hotplug: disk: mark aio as non-hotpluggable
authorFiona Ebner <f.ebner@proxmox.com>
Fri, 10 Feb 2023 14:19:09 +0000 (15:19 +0100)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 14 Feb 2023 09:09:04 +0000 (10:09 +0100)
Previously, changing aio would be applied to the configuration, but
the drive would still be using the old setting.

Signed-off-by: Fiona Ebner <f.ebner@proxmox.com>
PVE/QemuServer.pm

index a0e16dcdf492fc69ce3bac89f785cb3392a642d3..6130fe82913992be80f04eda3f3abaa014db95e0 100644 (file)
@@ -5388,7 +5388,8 @@ sub vmconfig_update_disk {
                # update existing disk
 
                # skip non hotpluggable value
-               if (safe_string_ne($drive->{discard}, $old_drive->{discard}) ||
+               if (safe_string_ne($drive->{aio}, $old_drive->{aio}) ||
+                   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}) ||