io_uring/mock: add sync read/write
Add support for synchronous zero read/write for mock files. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/571f3c9fe688e918256a06a722d3db6ced9ca3d5.1750599274.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
committed by
Jens Axboe
parent
4aac001f78
commit
d1aa034657
@@ -5,6 +5,7 @@
|
||||
|
||||
enum {
|
||||
IORING_MOCK_FEAT_CMD_COPY,
|
||||
IORING_MOCK_FEAT_RW_ZERO,
|
||||
|
||||
IORING_MOCK_FEAT_END,
|
||||
};
|
||||
@@ -17,7 +18,8 @@ struct io_uring_mock_probe {
|
||||
struct io_uring_mock_create {
|
||||
__u32 out_fd;
|
||||
__u32 flags;
|
||||
__u64 __resv[15];
|
||||
__u64 file_size;
|
||||
__u64 __resv[14];
|
||||
};
|
||||
|
||||
enum {
|
||||
|
||||
Reference in New Issue
Block a user