From 8bca6016b63a89e09817dbef7d61e2f950e23f63 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 21 Jul 2014 11:31:49 +0200 Subject: [PATCH] verify: disable numberio check for multiple block sizes Yet another corner case that doesn't work... Signed-off-by: Jens Axboe --- verify.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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; -- 2.25.1