From: Jens Axboe Date: Mon, 21 Jul 2014 09:31:49 +0000 (+0200) Subject: verify: disable numberio check for multiple block sizes X-Git-Tag: fio-2.1.12~22 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=8bca6016b63a89e09817dbef7d61e2f950e23f63;ds=sidebyside verify: disable numberio check for multiple block sizes Yet another corner case that doesn't work... Signed-off-by: Jens Axboe --- diff --git a/verify.c b/verify.c index e59a4b29..7c99e15e 100644 --- a/verify.c +++ b/verify.c @@ -405,13 +405,13 @@ static int verify_io_u_meta(struct verify_header *hdr, struct vcont *vc) /* * For read-only workloads, the program cannot be certain of the - * last numberio written to a block. Checking of numberio will be done - * only for workloads that write data. - * For verify_only, numberio will be checked in the last iteration when - * the correct state of numberio, that would have been written to each - * block in a previous run of fio, has been reached. + * last numberio written to a block. Checking of numberio will be + * done only for workloads that write data. For verify_only, + * numberio will be checked in the last iteration when the correct + * state of numberio, that would have been written to each block + * in a previous run of fio, has been reached. */ - if (td_write(td) || td_rw(td)) + if ((td_write(td) || td_rw(td)) && (td_min_bs(td) == td_max_bs(td))) if (!td->o.verify_only || td->o.loops == 0) if (vh->numberio != io_u->numberio) ret = EILSEQ;