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 <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-02-19 04:11:28 -08:00
committed by Bo Chen
parent b3e8e2abc5
commit 76e233504b

View File

@@ -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<Mutex<dyn DiskFile>>,
ImageType::Qcow2 => {
Arc::new(Mutex::new(QcowFile::from(raw_img).unwrap())) as Arc<Mutex<dyn DiskFile>>
}
ImageType::Qcow2 => Arc::new(Mutex::new(
QcowFile::from_with_nesting_depth(raw_img, 0, true).unwrap(),
)) as Arc<Mutex<dyn DiskFile>>,
};
let nsectors = (image.lock().unwrap().seek(SeekFrom::End(0)).unwrap()) / SECTOR_SIZE;