#include <sys/poll.h>
#include "../fio.h"
-#include "../os.h"
struct netio_data {
int listenfd;
log_err("fio: network connections must be read OR write\n");
return 1;
}
+ if (td_random(td)) {
+ log_err("fio: network IO can't be random\n");
+ return 1;
+ }
strcpy(buf, td->o.filename);
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;