From 61c27f73f8897bb65b2d52942011e4db5306d87a Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Sat, 6 Apr 2019 21:48:39 -0600 Subject: Add barrier fsync test case Also changes the fsync prep helper to require passing in the actual flag, not just a boolean for fsync vs fdatasync. Signed-off-by: Jens Axboe --- src/io_uring.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/io_uring.h') diff --git a/src/io_uring.h b/src/io_uring.h index e234086..57b8f4d 100644 --- a/src/io_uring.h +++ b/src/io_uring.h @@ -59,6 +59,7 @@ struct io_uring_sqe { * sqe->fsync_flags */ #define IORING_FSYNC_DATASYNC (1U << 0) +#define IORING_FSYNC_BARRIER (1U << 1) /* * IO completion data structure (Completion Queue Entry) -- cgit