From: Shawn Lewis Date: Fri, 27 Jul 2007 06:02:45 +0000 (+0200) Subject: [PATCH] Only verify_io_u on reads X-Git-Tag: fio-1.17~46 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=1dcc049824b840df1ee0ef5d019fffa4037e1bb0 [PATCH] Only verify_io_u on reads Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index 794244a9..243b6632 100644 --- 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) {