diff --git a/Cargo.lock b/Cargo.lock index 6dadbfd8e..94936a95b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -893,9 +893,9 @@ dependencies = [ [[package]] name = "io-uring" -version = "0.5.13" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd1e1a01cfb924fd8c5c43b6827965db394f5a3a16c599ce03452266e1cf984c" +checksum = "8b7b36074613a723279637061b40db993208908a94f10ccb14436ce735bc0f57" dependencies = [ "bitflags 1.3.2", "libc", diff --git a/block/Cargo.toml b/block/Cargo.toml index bcea96354..ab73da283 100644 --- a/block/Cargo.toml +++ b/block/Cargo.toml @@ -11,7 +11,7 @@ io_uring = ["dep:io-uring"] [dependencies] byteorder = "1.4.3" crc32c = "0.6.3" -io-uring = { version = "0.5.13", optional = true } +io-uring = { version = "0.6.0", optional = true } libc = "0.2.139" log = "0.4.17" remain = "0.2.6" diff --git a/block/src/raw_async.rs b/block/src/raw_async.rs index 736c994f7..a723fe670 100644 --- a/block/src/raw_async.rs +++ b/block/src/raw_async.rs @@ -86,7 +86,7 @@ impl AsyncIo for RawFileAsync { let _ = unsafe { sq.push( &opcode::Readv::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32) - .offset(offset) + .offset(offset.try_into().unwrap()) .build() .flags(squeue::Flags::ASYNC) .user_data(user_data), @@ -114,7 +114,7 @@ impl AsyncIo for RawFileAsync { let _ = unsafe { sq.push( &opcode::Writev::new(types::Fd(self.fd), iovecs.as_ptr(), iovecs.len() as u32) - .offset(offset) + .offset(offset.try_into().unwrap()) .build() .flags(squeue::Flags::ASYNC) .user_data(user_data),