summaryrefslogtreecommitdiff
path: root/src/io_uring.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@kernel.dk>2019-04-06 21:48:39 -0600
committerJens Axboe <axboe@kernel.dk>2019-04-06 21:50:15 -0600
commit61c27f73f8897bb65b2d52942011e4db5306d87a (patch)
tree98840d13734fb607fa7ddefaaadeb7cad7518198 /src/io_uring.h
parentf8b12e48bffc2c74d40a67c8af49b5a32c0f25ac (diff)
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 <axboe@kernel.dk>
Diffstat (limited to 'src/io_uring.h')
-rw-r--r--src/io_uring.h1
1 files changed, 1 insertions, 0 deletions
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)