From 79713149b1d30ad4dab560621c86b24a1dcaf348 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Wed, 6 Feb 2008 14:40:14 +0100 Subject: [PATCH] Verify doesn't really work on mixed read/write workloads, so warn Unless the file is pre-populated, this cannot work. So warn the user of such a bad construct, since the warning he/she receives from fio only tells you about a verification error (which, technically, is what is happening). Signed-off-by: Jens Axboe --- init.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.c b/init.c index 134d5f24..64023458 100644 --- a/init.c +++ b/init.c @@ -295,6 +295,10 @@ static int fixup_options(struct thread_data *td) if (o->fill_device && !o->size) o->size = ULONG_LONG_MAX; + + if (td_rw(td) && td->o.verify != VERIFY_NONE) + log_info("fio: mixed read/write workload with verify. May not " + "work as expected, unless you pre-populated the file\n"); return 0; } -- 2.25.1