X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=cf299ebf9643b3a07896f48ef47efb6c2e6583e9;hb=f5501dd2e466e53cd606e304f1cb6b0a49b481dc;hp=37d2be8dd9403c6a2bede3c61079214abe971cac;hpb=998baa29f571df9d2e4b626bedd317a2fd28c68a;p=fio.git diff --git a/verify.c b/verify.c index 37d2be8d..cf299ebf 100644 --- a/verify.c +++ b/verify.c @@ -14,6 +14,7 @@ #include "lib/rand.h" #include "lib/hweight.h" #include "lib/pattern.h" +#include "oslib/asprintf.h" #include "crc/md5.h" #include "crc/crc64.h" @@ -844,13 +845,11 @@ static int verify_header(struct io_u *io_u, struct thread_data *td, * 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. + * numberio check is skipped. */ if (td_write(td) && (td_min_bs(td) == td_max_bs(td)) && !td->o.time_based) - if (!td->o.verify_only || td->o.loops == 0) + if (!td->o.verify_only) if (hdr->numberio != io_u->numberio) { log_err("verify: bad header numberio %"PRIu16 ", wanted %"PRIu16,