mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Add disk_file::DiskSize trait implementation for RawFileDiskSync using BlockError and BlockResult. Uses metadata().len() instead of seek(SeekFrom::End(0)), taking &self instead of &mut self. Add BlockError, BlockErrorKind, BlockResult, and disk_file imports needed by this and subsequent trait impls. Signed-off-by: Muminul Islam <muislam@microsoft.com>