mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user