diff options
| author | Tony Solomonik <[email protected]> | 2024-02-02 14:17:24 +0200 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-02-09 09:04:39 -0700 |
| commit | b4bb1900c12e6a0fe11ff51e1aa6eea19a4ad635 (patch) | |
| tree | eb81db2cd90eb75485851716f918ac2568307e1e /include/uapi/linux | |
| parent | 5f0d594c602f870e3a3872f7ea42bf846a1d26cf (diff) | |
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 <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/io_uring.h | 1 |
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, |