From 986e562ab1ef73e95171f147c197d3b422a3057d Mon Sep 17 00:00:00 2001 From: Dan Costinas Date: Sun, 31 May 2026 23:51:02 +0300 Subject: [PATCH] Use cqe result to derive error instead of errno --- src/fs/io_uring_vfs.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fs/io_uring_vfs.rs b/src/fs/io_uring_vfs.rs index 57acf61..de842ee 100644 --- a/src/fs/io_uring_vfs.rs +++ b/src/fs/io_uring_vfs.rs @@ -171,7 +171,7 @@ impl VfsImpl for IoUringVfs { cqe.result(), buf.len() as i32, "Read cqe result error: {}", - std::io::Error::last_os_error() + std::io::Error::from_raw_os_error(-cqe.result()) ); break; } @@ -217,7 +217,7 @@ impl VfsImpl for IoUringVfs { cqe.result(), buf.len() as i32, "Write cqe result error: {}", - std::io::Error::last_os_error() + std::io::Error::from_raw_os_error(-cqe.result()) ); break; }