[pve-devel] [PATCH qemu-server v2 27/32] print drive device: set {r, w}error front-end properties starting with machine version 10.0

Fiona Ebner f.ebner at proxmox.com
Wed Jun 18 15:02:04 CEST 2025


These properties cannot be specified via '-blockdev' like they could
with '-drive', because they are properties of the front-end drive
device.

Signed-off-by: Fiona Ebner <f.ebner at proxmox.com>
---

No changes in v2.

 src/PVE/QemuServer.pm | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/PVE/QemuServer.pm b/src/PVE/QemuServer.pm
index 0b983ab9..b9bc6b53 100644
--- a/src/PVE/QemuServer.pm
+++ b/src/PVE/QemuServer.pm
@@ -1498,6 +1498,9 @@ sub print_drivedevice_full {
             }
             $device .= ",write-cache=$write_cache";
         }
+        for my $o (qw(rerror werror)) {
+            $device .= ",$o=$drive->{$o}" if defined($drive->{$o});
+        }
     }
 
     return $device;
-- 
2.39.5





More information about the pve-devel mailing list