Initial suppor for sync_file_range()
This revs the ioengine to 11, as we now have another data direction.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_ddir.h b/io_ddir.h
index 03eefdb..87cded4 100644
--- a/io_ddir.h
+++ b/io_ddir.h
@@ -6,6 +6,7 @@
DDIR_WRITE,
DDIR_SYNC,
DDIR_DATASYNC,
+ DDIR_SYNC_FILE_RANGE,
DDIR_WAIT,
DDIR_INVAL = -1,
};
@@ -28,7 +29,8 @@
static inline int ddir_sync(enum fio_ddir ddir)
{
- return ddir == DDIR_SYNC || ddir == DDIR_DATASYNC;
+ return ddir == DDIR_SYNC || ddir == DDIR_DATASYNC ||
+ ddir == DDIR_SYNC_FILE_RANGE;
}
#endif