From dae66ce4934b4af0f60c1e33b34975d69535026d 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 (cherry picked from commit 76e233504bea53bba731bb7f2c8324b433fedbf4) --- 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 0e28377b6..5cd1f161f 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).unwrap(), + )) as Arc>, }; let nsectors = (image.lock().unwrap().seek(SeekFrom::End(0)).unwrap()) / SECTOR_SIZE;