Skip to content

Commit 39bbbaa

Browse files
russell-islamliuw
authored andcommitted
block: Implement DiskFile marker trait for RawFileDiskAio
Add empty disk_file::DiskFile impl for RawFileDiskAio. This marker supertrait requires DiskSize + Geometry + Sync, all of which are now satisfied. Signed-off-by: Muminul Islam <muislam@microsoft.com>
1 parent 62264cb commit 39bbbaa

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

block/src/raw_async_aio.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,8 @@ impl disk_file::Resizable for RawFileDiskAio {
115115
}
116116
}
117117

118+
impl disk_file::DiskFile for RawFileDiskAio {}
119+
118120
pub struct RawFileAsyncAio {
119121
fd: RawFd,
120122
ctx: aio::IoContext,

0 commit comments

Comments
 (0)