io_uring: add support for ftruncate
Adds support for doing truncate through io_uring, eliminating the need for applications to roll their own thread pool or offload mechanism to be able to do non-blocking truncates. Signed-off-by:Tony Solomonik <tony.solomonik@gmail.com> Link: https://lore.kernel.org/r/20240202121724.17461-3-tony.solomonik@gmail.com Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Showing
- include/uapi/linux/io_uring.h 1 addition, 0 deletionsinclude/uapi/linux/io_uring.h
- io_uring/Makefile 1 addition, 1 deletionio_uring/Makefile
- io_uring/opdef.c 10 additions, 0 deletionsio_uring/opdef.c
- io_uring/truncate.c 48 additions, 0 deletionsio_uring/truncate.c
- io_uring/truncate.h 4 additions, 0 deletionsio_uring/truncate.h
Please register or sign in to comment