summaryrefslogtreecommitdiff
path: root/include/uapi/linux
diff options
context:
space:
mode:
authorTony Solomonik <tony.solomonik@gmail.com>2024-02-02 15:17:24 +0300
committerJens Axboe <axboe@kernel.dk>2024-02-09 19:04:39 +0300
commitb4bb1900c12e6a0fe11ff51e1aa6eea19a4ad635 (patch)
treeeb81db2cd90eb75485851716f918ac2568307e1e /include/uapi/linux
parent5f0d594c602f870e3a3872f7ea42bf846a1d26cf (diff)
downloadlinux-b4bb1900c12e6a0fe11ff51e1aa6eea19a4ad635.tar.xz
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>
Diffstat (limited to 'include/uapi/linux')
-rw-r--r--include/uapi/linux/io_uring.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/io_uring.h b/include/uapi/linux/io_uring.h
index 7a673b52827b..fb812f1b6bb5 100644
--- a/include/uapi/linux/io_uring.h
+++ b/include/uapi/linux/io_uring.h
@@ -255,6 +255,7 @@ enum io_uring_op {
IORING_OP_FUTEX_WAKE,
IORING_OP_FUTEX_WAITV,
IORING_OP_FIXED_FD_INSTALL,
+ IORING_OP_FTRUNCATE,
/* this goes last, obviously */
IORING_OP_LAST,