From fe97785a9f738a17a9e7dd880916bdbce62dc456 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 31 Jul 2023 23:41:19 +0000 Subject: [PATCH] build: Bump io-uring from 0.5.13 to 0.6.0 Includes fixes for changed function prototypes. bumps [io-uring](https://github.com/tokio-rs/io-uring) from 0.5.13 to 0.6.0. - [Commits](https://github.com/tokio-rs/io-uring/commits) --- updated-dependencies: - dependency-name: io-uring dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Signed-off-by: Rob Bradford --- Cargo.lock | 4 ++-- block/Cargo.toml | 2 +- block/src/raw_async.rs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) 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),