X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=7fbfa86654d632b4839139352a6075434822839a;hp=5054c54b4b71bbc470ae81eb91c9e6cdf8454229;hb=b9f3ee6cfd6242f058643ccf8266fd75a9625482;hpb=9f6d708041c703b6a4168176653faf1869a22d46 diff --git a/init.c b/init.c index 5054c54b..7fbfa866 100644 --- a/init.c +++ b/init.c @@ -743,6 +743,18 @@ static int fixup_options(struct thread_data *td) ret = warnings_fatal; } + /* + * Warn if verification is requested but no verification of any + * kind can be started due to time constraints + */ + if (td_write(td) && o->do_verify && o->timeout && + o->time_based && !td_read(td) && !o->verify_backlog) { + log_info("fio: verification read phase will never " + "start because write phase uses all of " + "runtime\n"); + ret = warnings_fatal; + } + if (!fio_option_is_set(o, refill_buffers)) o->refill_buffers = 1;