Fix build on Linux

This commit is contained in:
Pekka Enberg
2023-11-11 09:21:13 +02:00
parent 2267ee121b
commit 509b322f8a

View File

@@ -40,7 +40,7 @@ pub struct File {
impl File {
pub fn pread(&self, pos: usize, c: &mut Completion) -> Result<()> {
let fd = io_uring::types::Fd(self.file.as_raw_fd());
let read_e = io_uring::opcode::Read::new(fd, c.buf.as_mut_ptr(), buf.len() as u32 )
let read_e = io_uring::opcode::Read::new(fd, c.buf.as_mut_ptr(), c.buf.len() as u32 )
.offset(pos as u64)
.build();
let mut ring = self.ring.borrow_mut();