io_uring: add support for fallocate()

This exposes fallocate(2) through io_uring.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
Jens Axboe
2019-12-10 10:38:56 -07:00
parent 4d92748373
commit d63d1b5edb
2 changed files with 61 additions and 0 deletions

View File

@@ -76,6 +76,7 @@ enum {
IORING_OP_ASYNC_CANCEL,
IORING_OP_LINK_TIMEOUT,
IORING_OP_CONNECT,
IORING_OP_FALLOCATE,
/* this goes last, obviously */
IORING_OP_LAST,