diff --git a/block/src/raw_async.rs b/block/src/raw_async.rs index 477077eff..c08f501c4 100644 --- a/block/src/raw_async.rs +++ b/block/src/raw_async.rs @@ -90,6 +90,12 @@ impl disk_file::PhysicalSize for RawFileDisk { } } +impl disk_file::DiskFd for RawFileDisk { + fn fd(&self) -> BorrowedDiskFd<'_> { + BorrowedDiskFd::new(self.file.as_raw_fd()) + } +} + pub struct RawFileAsync { fd: RawFd, io_uring: IoUring,