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.
Showing the changes to include/uapi (1 of 5 files). Show all
Unified · Split
| @@ -255,6 +255,7 @@ enum io_uring_op { · 254 unmodified lines | |||
| 255 | IORING_OP_FUTEX_WAKE, | 255 | IORING_OP_FUTEX_WAKE, |
| 256 | IORING_OP_FUTEX_WAITV, | 256 | IORING_OP_FUTEX_WAITV, |
| 257 | IORING_OP_FIXED_FD_INSTALL, | 257 | IORING_OP_FIXED_FD_INSTALL, |
| 258 | IORING_OP_FTRUNCATE, | ||
| 258 | 259 | ||
| 259 | /* this goes last, obviously */ | 260 | /* this goes last, obviously */ |
| 260 | IORING_OP_LAST, | 261 | IORING_OP_LAST, |