From: Jens Axboe Date: Thu, 6 Mar 2008 10:47:53 +0000 (+0100) Subject: Update to verify state setting X-Git-Tag: fio-1.20-rc2~5 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=cc3fc85511c47de463497f40b29c32a1bd67f81d;p=fio.git Update to verify state setting Only set when doing read. Signed-off-by: Jens Axboe --- diff --git a/fio.c b/fio.c index 6a72ce77..d28469e7 100644 --- a/fio.c +++ b/fio.c @@ -464,7 +464,7 @@ static void do_io(struct thread_data *td) * Add verification end_io handler, if asked to verify * a previously written file. */ - if (td->o.verify != VERIFY_NONE) { + if (td->o.verify != VERIFY_NONE && io_u->ddir == DDIR_READ) { io_u->end_io = verify_io_u; td_set_runstate(td, TD_VERIFYING); } else