lkml.org 
[lkml]   [2022]   [May]   [31]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH 0/5] io_uring: add opcodes for current working directory
Date
This provides consistency between io_uring and the respective I/O syscall
and avoids having the user of liburing specify the cwd in sqe when working
with current working directory, for e.g. the user can directly call with
IORING_OP_RENAME instead of IORING_OP_RENAMEAT and providing AT_FDCWD in
sqe->fd and sqe->len, similar to syscall interface.

This is done for rename, unlink, mkdir, symlink and link in this
patch-series.

The tests for these opcodes in liburing are present at
https://github.com/uarif1/liburing/tree/cwd_opcodes. If the patches are
acceptable, I am happy to create a PR in above for the tests.

Thanks!

Usama Arif (5):
io_uring: add rename opcode for current working directory
io_uring: add unlink opcode for current working directory
io_uring: add mkdir opcode for current working directory
io_uring: add symlink opcode for current working directory
io_uring: add link opcode for current working directory

fs/io_uring.c | 116 ++++++++++++++++++++++++----------
include/uapi/linux/io_uring.h | 5 ++
2 files changed, 89 insertions(+), 32 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2022-05-31 20:43    [W:0.069 / U:0.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site