Wire up exp/test-expression-parser
[fio.git] / verify.c
index 217b686950452944c4f87fae580446f745649b7a..35d8969624cffb7275f23dd228fab78cecceeebd 100644 (file)
--- 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;