mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Change RawFileAsync::new() from std::io::Result to BlockResult, aligning it with RawFileAsyncAio::new(). Each fallible call inside the constructor now maps to BlockErrorKind::Io explicitly. FixedVhdAsync::new() follows the same change since its only fallible operation is constructing a RawFileAsync. The intermediate DiskFileError::NewAsyncIo wrapping in both new_async_io() call sites is no longer needed and is removed. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>