From 6850b04fa61954cf7ba45d1b164922c3e9e62fa6 Mon Sep 17 00:00:00 2001 From: Anatol Belski Date: Wed, 11 Mar 2026 23:40:09 +0100 Subject: [PATCH] performance-metrics: Set image_type=qcow2 for remaining qcow2 test disks Without it the VMM autodetects the format and logs warnings that specifying image_type will become mandatory for non raw images in the future. Signed-off-by: Anatol Belski --- performance-metrics/src/performance_tests.rs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/performance-metrics/src/performance_tests.rs b/performance-metrics/src/performance_tests.rs index c3787f4da..1022aac19 100644 --- a/performance-metrics/src/performance_tests.rs +++ b/performance-metrics/src/performance_tests.rs @@ -440,8 +440,16 @@ pub fn performance_block_io(control: &PerformanceTestControl) -> f64 { let mut test_disk_arg = 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"); + if test_file == OVERLAY_WITH_QCOW2_BACKING + || test_file == OVERLAY_WITH_RAW_BACKING + || test_file == QCOW2_UNCOMPRESSED_IMG + || test_file == QCOW2_ZLIB_IMG + || test_file == QCOW2_ZSTD_IMG + { + test_disk_arg.push_str(",image_type=qcow2"); + if test_file == OVERLAY_WITH_QCOW2_BACKING || test_file == OVERLAY_WITH_RAW_BACKING { + test_disk_arg.push_str(",backing_files=on"); + } } else if test_file == BLK_IO_TEST_IMG { test_disk_arg.push_str(",image_type=raw"); }