static int fio_netio_setup(struct thread_data *td)
{
struct netio_data *nd;
- struct fio_file *f;
- unsigned int i;
if (!td->io_ops->data) {
nd = malloc(sizeof(*nd));;
memset(nd, 0, sizeof(*nd));
nd->listenfd = -1;
td->io_ops->data = nd;
-
- for_each_file(td, f, i)
- f->real_file_size = -1ULL;
}
return 0;