* [PATCH] Fix verify_only option not working properly
@ 2014-03-03 23:33 Puthikorn Voravootivat
2014-03-03 23:52 ` Jens Axboe
0 siblings, 1 reply; 2+ messages in thread
From: Puthikorn Voravootivat @ 2014-03-03 23:33 UTC (permalink / raw)
To: Jens Axboe
Cc: FIO List, Gwendal Grignou, Grant Grundler, Puthikorn Voravootivat
In commit c4b6117, we changed the place to call log_io_piece but
the new place won't be reached when using verify_only option so
that when we run with the verify_only option, fio won't verify
anything at all.
This patch fix that by also call the log_io_piece in the do_dry_run
function for the verify_only code path.
Signed-off-by: Puthikorn Voravootivat <puthik@chromium.org>
Reviewed-by: Gwendal Grignou <gwendal@chromium.org>
---
Fix my own patch bug. Didn't catch it that time.
backend.c | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/backend.c b/backend.c
index 72d9d6d..992033c 100644
--- a/backend.c
+++ b/backend.c
@@ -1196,6 +1196,12 @@ static uint64_t do_dry_run(struct thread_data *td)
td->ts.total_io_u[io_u->ddir]++;
}
+ if (td_write(td) && io_u->ddir == DDIR_WRITE &&
+ td->o.do_verify &&
+ td->o.verify != VERIFY_NONE &&
+ !td->o.experimental_verify)
+ log_io_piece(td, io_u);
+
ret = io_u_sync_complete(td, io_u, bytes_done);
(void) ret;
}
--
1.9.0.279.gdc9e3eb
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Fix verify_only option not working properly
2014-03-03 23:33 [PATCH] Fix verify_only option not working properly Puthikorn Voravootivat
@ 2014-03-03 23:52 ` Jens Axboe
0 siblings, 0 replies; 2+ messages in thread
From: Jens Axboe @ 2014-03-03 23:52 UTC (permalink / raw)
To: Puthikorn Voravootivat; +Cc: FIO List, Gwendal Grignou, Grant Grundler
On 2014-03-03 15:33, Puthikorn Voravootivat wrote:
> In commit c4b6117, we changed the place to call log_io_piece but
> the new place won't be reached when using verify_only option so
> that when we run with the verify_only option, fio won't verify
> anything at all.
>
> This patch fix that by also call the log_io_piece in the do_dry_run
> function for the verify_only code path.
Thanks applied, and with that patch, I've tagged 2.1.6 just now.
--
Jens Axboe
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-03-03 23:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-03-03 23:33 [PATCH] Fix verify_only option not working properly Puthikorn Voravootivat
2014-03-03 23:52 ` Jens Axboe
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox