From 1dcc049824b840df1ee0ef5d019fffa4037e1bb0 Mon Sep 17 00:00:00 2001 From: Shawn Lewis Date: Fri, 27 Jul 2007 08:02:45 +0200 Subject: [PATCH] [PATCH] Only verify_io_u on reads Signed-off-by: Jens Axboe --- verify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { -- 2.25.1