[PATCH] Add do_verify option
[fio.git] / fio.c
diff --git a/fio.c b/fio.c
index b8cba547ac931fcdf7ac0b3af79b7b19a7b8af75..02ed91dbcea0b70454fee2b78b68c5041b49107d 100644 (file)
--- a/fio.c
+++ b/fio.c
@@ -901,7 +901,8 @@ static void *thread_main(void *data)
                if (td->error || td->terminate)
                        break;
 
                if (td->error || td->terminate)
                        break;
 
-               if (td->o.verify == VERIFY_NONE ||
+               if (!td->o.do_verify ||
+                   td->o.verify == VERIFY_NONE ||
                    (td->io_ops->flags & FIO_UNIDIR))
                        continue;
 
                    (td->io_ops->flags & FIO_UNIDIR))
                        continue;