Only apply verify interval to meta verifier, which uses it
authorJens Axboe <jaxboe@fusionio.com>
Thu, 17 Jun 2010 18:51:54 +0000 (20:51 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Thu, 17 Jun 2010 18:51:54 +0000 (20:51 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
init.c

diff --git a/init.c b/init.c
index 966a06564b12eee632a32cf9c6c8f4e7d89a01a5..b97c802b27c2e727423c9c3d30e8592ceb8317ff 100644 (file)
--- a/init.c
+++ b/init.c
@@ -360,9 +360,11 @@ static int fixup_options(struct thread_data *td)
 
        if (o->verify != VERIFY_NONE) {
                o->refill_buffers = 1;
 
        if (o->verify != VERIFY_NONE) {
                o->refill_buffers = 1;
-               if (o->max_bs[DDIR_WRITE] != o->min_bs[DDIR_WRITE] &&
-                   !o->verify_interval)
-                       o->verify_interval = o->min_bs[DDIR_WRITE];
+               if (o->verify == VERIFY_META) {
+                       if (o->max_bs[DDIR_WRITE] != o->min_bs[DDIR_WRITE] &&
+                           !o->verify_interval)
+                               o->verify_interval = o->min_bs[DDIR_WRITE];
+               }
        }
 
        if (o->pre_read) {
        }
 
        if (o->pre_read) {