Skip to content

add mkdir, [sym]linkat, mknodat support

Dmitry Kadashev io-uring 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v2 Latest11 patches 0 repliesNew

Changes in v2 from the cover letter

- add symlinkat, linkat, mknodat

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11liburing.h: add mkdirat prep helpersrc/include/liburing.h+6 -00 replies
2/11Add mkdirat test case.gitignore test/Makefile test/mkdir.c+108 -00 replies
3/11io_uring.h: add symlinkat opcodesrc/include/liburing/io_uring.h+1 -00 replies
4/11liburing.h: add symlinkat prep helpersrc/include/liburing.h+7 -00 replies
5/11Add symlinkat test case.gitignore test/Makefile test/symlink.c+116 -00 replies
6/11io_uring.h: add linkat opcodesrc/include/liburing/io_uring.h+2 -00 replies
7/11liburing.h: add linkat prep helpersrc/include/liburing.h+9 -00 replies
8/11Add linkat test case.gitignore test/Makefile test/hardlink.c+136 -00 replies
9/11io_uring.h: add mknodat opcodesrc/include/liburing/io_uring.h+2 -00 replies
10/11liburing.h: add mknodat prep helpersrc/include/liburing.h+7 -00 replies
11/11Add mknod test case.gitignore test/Makefile test/mknod.c+158 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH liburing v2 00/11] add mkdir, [sym]linkat, mknodat support

This started as an attempt to add mkdir support to io_uring, but in the end more ops were added. Heavily based on a series that added unlinkat support (commit: 44db0f437a2b ("io_uring.h: add renameat and unlinkat opcodes") and a couple of subsequent ones).

The kernel side of the change:
https://lore.kernel.org/io-uring/[email protected]/T/

1-2 adds mkdirat support (the opcode is already there) and test 3-5 adds symlinkat support and test
6-8 adds linkat support and test
9-11 adds mknodat support and test

v2:
- add symlinkat, linkat, mknodat

Dmitry Kadashev (11):
liburing.h: add mkdirat prep helper
Add mkdirat test case
io_uring.h: add symlinkat opcode
liburing.h: add symlinkat prep helper
Add symlinkat test case
io_uring.h: add linkat opcode
liburing.h: add linkat prep helper
Add linkat test case
io_uring.h: add mknodat opcode
liburing.h: add mknodat prep helper
Add mknod test case

 .gitignore                      |   4 +
 src/include/liburing.h          |  29 ++++++
 src/include/liburing/io_uring.h |   5 ++
 test/Makefile                   |   8 ++
 test/hardlink.c                 | 133 +++++++++++++++++++++++++++
 test/mkdir.c                    | 105 ++++++++++++++++++++++
 test/mknod.c                    | 155 ++++++++++++++++++++++++++++++++
 test/symlink.c                  | 113 +++++++++++++++++++++++
 8 files changed, 552 insertions(+)
 create mode 100644 test/hardlink.c
 create mode 100644 test/mkdir.c
 create mode 100644 test/mknod.c
 create mode 100644 test/symlink.c
Signature · 1 line
2.30.2