Initial suppor for sync_file_range()
[fio.git] / log.c
diff --git a/log.c b/log.c
index ba52f0768744df5ea19cec1c2758a399e0cc8db9..99f20b53083b29ae4399827ff677b89e1d16781f 100644 (file)
--- a/log.c
+++ b/log.c
@@ -20,9 +20,10 @@ void queue_io_piece(struct thread_data *td, struct io_piece *ipo)
 
 void log_io_u(struct thread_data *td, struct io_u *io_u)
 {
-       const char *act[] = { "read", "write", "sync", "datasync" };
+       const char *act[] = { "read", "write", "sync", "datasync",
+                               "sync_file_range" };
 
-       assert(io_u->ddir < 3);
+       assert(io_u->ddir <= 4);
 
        if (!td->o.write_iolog_file)
                return;