mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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 <anbelski@linux.microsoft.com>
This commit is contained in:
committed by
Rob Bradford
parent
766f4206c9
commit
6850b04fa6
@@ -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");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user