vmm: Switch VHDX to DiskBackend::Next

Wire VhdxDiskSync through DiskBackend::Next instead of Legacy.

Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>
This commit is contained in:
Anatol Belski
2026-03-25 16:44:44 +01:00
committed by Bo Chen
parent cf9496376f
commit b703043f77
+2 -2
View File
@@ -2784,10 +2784,10 @@ impl DeviceManager {
} }
ImageType::Vhdx => { ImageType::Vhdx => {
info!("Using synchronous VHDX disk file"); info!("Using synchronous VHDX disk file");
DiskBackend::Legacy(Box::new( DiskBackend::Next(Box::new(
VhdxDiskSync::new(file) VhdxDiskSync::new(file)
.map_err(DeviceManagerError::CreateFixedVhdxDiskSync)?, .map_err(DeviceManagerError::CreateFixedVhdxDiskSync)?,
) as Box<dyn DiskFile>) ))
} }
ImageType::Unknown => unreachable!(), ImageType::Unknown => unreachable!(),
}; };