mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Introduce DiskBackend with two variants: - Legacy: wraps Box<dyn async_io::DiskFile> for existing formats - Next: wraps Box<dyn disk_file::AsyncFullDiskFile> Methods return BlockResult, with DiskFileError converted up to BlockError on the Legacy path. The Next path passes through directly with zero conversion overhead. This is a transitional type. Once all formats implement AsyncFullDiskFile, DiskBackend and Legacy are removed and callers hold Box<dyn AsyncFullDiskFile> directly. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>