From 76e233504bea53bba731bb7f2c8324b433fedbf4 Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Thu, 19 Feb 2026 04:11:28 -0800 Subject: [PATCH] vhost_user_block: Disable use of backing files in test implementation Remove the use of QCOW2 backing files in the test implementation used for CI. Signed-off-by: Rob Bradford --- vhost_user_block/src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/vhost_user_block/src/lib.rs b/vhost_user_block/src/lib.rs index 456af40d9..13668e1cd 100644 --- a/vhost_user_block/src/lib.rs +++ b/vhost_user_block/src/lib.rs @@ -224,9 +224,9 @@ impl VhostUserBlkBackend { let image_type = qcow::detect_image_type(&mut raw_img).unwrap(); let image = match image_type { ImageType::Raw => Arc::new(Mutex::new(raw_img)) as Arc>, - ImageType::Qcow2 => { - Arc::new(Mutex::new(QcowFile::from(raw_img).unwrap())) as Arc> - } + ImageType::Qcow2 => Arc::new(Mutex::new( + QcowFile::from_with_nesting_depth(raw_img, 0, true).unwrap(), + )) as Arc>, }; let nsectors = (image.lock().unwrap().seek(SeekFrom::End(0)).unwrap()) / SECTOR_SIZE;