diff --git a/1027-io_uring.h-fix-IORING_OP_URING_CMD-incompatible-issu.patch b/1027-io_uring.h-fix-IORING_OP_URING_CMD-incompatible-issu.patch new file mode 100644 index 0000000000000000000000000000000000000000..1254c25402a9062f6002e413f5f481ca25f37e4e --- /dev/null +++ b/1027-io_uring.h-fix-IORING_OP_URING_CMD-incompatible-issu.patch @@ -0,0 +1,41 @@ +From 0db609d820dd6ef52ac73f7297038a9872eb3375 Mon Sep 17 00:00:00 2001 +From: Ziyang Zhang +Date: Mon, 17 Apr 2023 11:14:54 +0800 +Subject: [PATCH] io_uring.h: fix IORING_OP_URING_CMD incompatible issue + +We need to add 12 new io_uring operation codes, such as IORING_OP_SHUTDOWN, +though their actual functionality are not supportted yet. With this action, +the IORING_OP_URING_CMD incompatible issue will go. + +Acked-by: Xiaoguang Wang +Signed-off-by: Ziyang Zhang +--- + src/include/liburing/io_uring.h | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + +diff --git a/src/include/liburing/io_uring.h b/src/include/liburing/io_uring.h +index 1970201..ec86d17 100644 +--- a/src/include/liburing/io_uring.h ++++ b/src/include/liburing/io_uring.h +@@ -139,6 +139,18 @@ enum { + IORING_OP_PROVIDE_BUFFERS, + IORING_OP_REMOVE_BUFFERS, + IORING_OP_TEE, ++ IORING_OP_SHUTDOWN, ++ IORING_OP_RENAMEAT, ++ IORING_OP_UNLINKAT, ++ IORING_OP_MKDIRAT, ++ IORING_OP_SYMLINKAT, ++ IORING_OP_LINKAT, ++ IORING_OP_MSG_RING, ++ IORING_OP_FSETXATTR, ++ IORING_OP_SETXATTR, ++ IORING_OP_FGETXATTR, ++ IORING_OP_GETXATTR, ++ IORING_OP_SOCKET, + IORING_OP_URING_CMD, + + /* this goes last, obviously */ +-- +2.31.1 + diff --git a/liburing.spec b/liburing.spec index 0e0771d38e85ad3f211a90fd1c685bc5e0d76932..82e25677d2d2d2224cb59af3927823d38ac8648b 100644 --- a/liburing.spec +++ b/liburing.spec @@ -1,4 +1,4 @@ -%define anolis_release .0.3 +%define anolis_release .0.4 Name: liburing Version: 1.0.7 @@ -36,6 +36,7 @@ Patch1023: 1023-test-nop-make-less-verbose-and-don-t-fail-on-older-k.patch Patch1024: 1024-io_uring.h-support-IORING_OP_URING_CMD.patch Patch1025: 1025-man-io_uring_setup.2-document-IORING_SETUP_SQE128-fl.patch Patch1026: 1026-io_uring.h-Add-missing-fields-for-uring_cmd-in-struc.patch +Patch1027: 1027-io_uring.h-fix-IORING_OP_URING_CMD-incompatible-issu.patch # End: Anolis customized patches %description @@ -75,6 +76,9 @@ for the Linux-native io_uring. %{_mandir}/man2/* %changelog +* Tue Apr 18 2023 Ziyang Zhang - 1.0.7-3.0.4 +- fix IORING_OP_URING_CMD incompatible issue + * Mon Mar 13 2023 Ziyang Zhang - 1.0.7-3.0.3 - Add IORING_SETUP_SQE128 support and tests - Add IORING_OP_URING_CMD support