}
}
- td->nr_open_files = accepts;
return 0;
}
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;
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;
}
.prep = fio_netio_prep,
.queue = fio_netio_queue,
.setup = fio_netio_setup,
+ .init = fio_netio_init,
.flags = FIO_SYNCIO | FIO_DISKLESSIO | FIO_SELFOPEN,
};