syslet: update to -v7 as posted by Zach
[fio.git] / engines / net.c
index 0cda953c852a11dba34602b21098c77b222863ec..552ad0bdb551abebb68f26571df5dc5e2ad20b8f 100644 (file)
@@ -198,6 +198,8 @@ static int fio_netio_queue(struct thread_data *td, struct io_u *io_u)
        struct netio_data *nd = td->io_ops->data;
        int ret;
 
+       fio_ro_check(td, io_u);
+
        if (io_u->ddir == DDIR_WRITE) {
                if (nd->use_splice)
                        ret = fio_netio_splice_out(td, io_u);
@@ -461,7 +463,7 @@ static struct ioengine_ops ioengine_rw = {
        .cleanup        = fio_netio_cleanup,
        .open_file      = fio_netio_open_file,
        .close_file     = generic_close_file,
-       .flags          = FIO_SYNCIO | FIO_DISKLESSIO,
+       .flags          = FIO_SYNCIO | FIO_DISKLESSIO | FIO_UNIDIR,
 };
 
 static struct ioengine_ops ioengine_splice = {