One step closer to group reporting
[fio.git] / engines / net.c
index 60a68778b18458d9c49a758833911e779f2b7f99..2381f7390ea3d0d9934599409ce6ddbadb4ab5b1 100644 (file)
@@ -210,7 +210,7 @@ static int fio_netio_setup_listen(struct thread_data *td, unsigned short port)
        return fio_netio_accept_connections(td, fd, &addr);
 }
 
-static int fio_netio_setup(struct thread_data *td)
+static int fio_netio_init(struct thread_data *td)
 {
        char host[64], buf[128];
        unsigned short port;
@@ -260,6 +260,12 @@ static int fio_netio_setup(struct thread_data *td)
                f->real_file_size = f->file_size;
        }
 
+       td->nr_open_files = td->nr_files;
+       return 0;
+}
+
+static int fio_netio_setup(struct thread_data fio_unused *td)
+{
        return 0;
 }
 
@@ -269,7 +275,8 @@ static struct ioengine_ops ioengine = {
        .prep           = fio_netio_prep,
        .queue          = fio_netio_queue,
        .setup          = fio_netio_setup,
-       .flags          = FIO_SYNCIO | FIO_NETIO,
+       .init           = fio_netio_init,
+       .flags          = FIO_SYNCIO | FIO_DISKLESSIO | FIO_SELFOPEN,
 };
 
 static void fio_init fio_netio_register(void)