Fix bug with random IO and network connections
[fio.git] / engines / net.c
index 2b48b0abb56c41ab69e1ec50928664e91d478e21..1a403bdb95688319ef53c0324cd57b368a1741e4 100644 (file)
@@ -231,6 +231,10 @@ static int fio_netio_init(struct thread_data *td)
                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);