X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=verify.c;h=35d8969624cffb7275f23dd228fab78cecceeebd;hb=65641c1ef3a7e31c606e53f1fd61e65e998ab098;hp=217b686950452944c4f87fae580446f745649b7a;hpb=f8b0bd103ba18def828a0eab5611484486eed566;p=fio.git diff --git a/verify.c b/verify.c index 217b6869..35d89696 100644 --- a/verify.c +++ b/verify.c @@ -411,7 +411,8 @@ static int verify_io_u_meta(struct verify_header *hdr, struct vcont *vc) * 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)) && (td_min_bs(td) == td_max_bs(td))) + if ((td_write(td) || td_rw(td)) && (td_min_bs(td) == td_max_bs(td)) && + !td->o.time_based) if (!td->o.verify_only || td->o.loops == 0) if (vh->numberio != io_u->numberio) ret = EILSEQ; @@ -759,6 +760,13 @@ int verify_io_u(struct thread_data *td, struct io_u **io_u_ptr) if (td->o.verify == VERIFY_NULL || io_u->ddir != DDIR_READ) return 0; + /* + * If the IO engine is faking IO (like null), then just pretend + * we verified everything. + */ + if (td->io_ops->flags & FIO_FAKEIO) + return 0; + if (io_u->flags & IO_U_F_TRIMMED) { ret = verify_trimmed_io_u(td, io_u); goto done;