From d5c8ea29023fccd33d577e3ca68f0254c1d87d6b Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 8 Jun 2015 18:43:22 -0600 Subject: [PATCH] backend: don't add to runtime for fake writes This fixes showing that fio did writes with --verify_only being set, while in reality it just ended them before submitting to the device. Signed-off-by: Jens Axboe --- backend.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backend.c b/backend.c index 207b509d..975317f2 100644 --- a/backend.c +++ b/backend.c @@ -373,6 +373,9 @@ static inline void update_runtime(struct thread_data *td, unsigned long long *elapsed_us, const enum fio_ddir ddir) { + if (ddir == DDIR_WRITE && td_write(td) && td->o.verify_only) + return; + td->ts.runtime[ddir] -= (elapsed_us[ddir] + 999) / 1000; elapsed_us[ddir] += utime_since_now(&td->start); td->ts.runtime[ddir] += (elapsed_us[ddir] + 999) / 1000; -- 2.25.1