No need to fill random bytes for VERIFY_NULL
authorJens Axboe <jens.axboe@oracle.com>
Mon, 26 Mar 2007 08:32:30 +0000 (10:32 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Mon, 26 Mar 2007 08:32:30 +0000 (10:32 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
verify.c

index f1ac43bf1b9018e48664d16724ee906f5ca052ed..99b21e8fd922e5f0d3124df5d9e6be7b7438d484 100644 (file)
--- a/verify.c
+++ b/verify.c
@@ -129,6 +129,9 @@ void populate_verify_io_u(struct thread_data *td, struct io_u *io_u)
        unsigned char *p = (unsigned char *) io_u->buf;
        struct verify_header hdr;
 
+       if (td->o.verify == VERIFY_NULL)
+               return;
+
        hdr.fio_magic = FIO_HDR_MAGIC;
        hdr.len = io_u->buflen;
        p += sizeof(hdr);