Re: [PATCH] Only verify_io_u on reads

From: Jens Axboe <jens.axboe_at_oracle.com>
Date: Fri, 27 Jul 2007 08:05:10 +0200

On Thu, Jul 26 2007, Shawn Lewis wrote:
> diff --git a/verify.c b/verify.c
> index 8f31686..5da2c33 100644
> --- a/verify.c
> +++ b/verify.c
> @@ -91,7 +91,7 @@ int verify_io_u(struct thread_data *td,
> unsigned int hdr_inc, hdr_num = 0;
> int ret;
>
> - if (td->o.verify == VERIFY_NULL)
> + if (td->o.verify == VERIFY_NULL || io_u->ddir != DDIR_READ)
> return 0;
>
> hdr_inc = io_u->buflen;

thanks, looks good! applied.

-- 
Jens Axboe
Received on Fri Jul 27 2007 - 08:05:10 CEST

This archive was generated by hypermail 2.2.0 : Fri Jul 27 2007 - 08:30:01 CEST