mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Change the return type of RawFileAsyncAio::new() from std::io::Result<Self> to BlockResult<Self>, wrapping internal errors from EventFd::new() and IoContext::new() in BlockError with DiskFileError::NewAsyncIo. This simplifies the caller in AsyncDiskFile::new_async_io() which no longer needs its own error mapping. Signed-off-by: Muminul Islam <muislam@microsoft.com>