Fix bug with random IO and network connections
authorJens Axboe <jens.axboe@oracle.com>
Tue, 22 May 2007 07:21:37 +0000 (09:21 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 22 May 2007 07:21:37 +0000 (09:21 +0200)
It isn't a supported configuration.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
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);