[PATCH] Only verify_io_u on reads
authorShawn Lewis <shawnlewis@google.com>
Fri, 27 Jul 2007 06:02:45 +0000 (08:02 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 27 Jul 2007 06:02:45 +0000 (08:02 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
verify.c

index 794244a9b495240974f26f1e4f972f38ec1cc8c2..243b6632636579c9294631498027e97c9ee94022 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -83,7 +83,7 @@ int verify_io_u(struct thread_data *td, struct io_u *io_u)
        struct verify_header *hdr = (struct verify_header *) io_u->buf;
        int ret;
 
-       if (td->o.verify == VERIFY_NULL)
+       if (td->o.verify == VERIFY_NULL || io_u->ddir != DDIR_READ)
                return 0;
 
        if (hdr->fio_magic != FIO_HDR_MAGIC) {