From 766f4206c9a8a127fcdfb71c74e5a77f21ab48fd Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 11 Mar 2026 23:02:31 +0100 Subject: [PATCH] performance-metrics: Set image_type=raw for block I/O test image Without explicit image_type fio first sequential write hits sector 0 and gets VIRTIO_BLK_S_IOERR. fio then hangs, causing block_write_MiBps and all other write tests using BLK_IO_TEST_IMG to time out. Signed-off-by: Anatol Belski --- performance-metrics/src/performance_tests.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/performance-metrics/src/performance_tests.rs b/performance-metrics/src/performance_tests.rs index 7eb07f368..c3787f4da 100644 --- a/performance-metrics/src/performance_tests.rs +++ b/performance-metrics/src/performance_tests.rs @@ -442,6 +442,8 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 { format!("path={test_file},queue_size={queue_size},num_queues={num_queues}"); if test_file == OVERLAY_WITH_QCOW2_BACKING || test_file == OVERLAY_WITH_RAW_BACKING { test_disk_arg.push_str(",image_type=qcow2,backing_files=on"); + } else if test_file == BLK_IO_TEST_IMG { + test_disk_arg.push_str(",image_type=raw"); } let mut child = GuestCommand::new(&guest)