X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=init.c;h=18538de1537d285623007dc975acf953dc1fce17;hp=acdc659879b42656f593ab6dbfc3ad83f36bc041;hb=afd118db00aeaf5314d62edb99b4d3605d08e9c6;hpb=0cfe20893afc994b3e105ea91a528f96af560199 diff --git a/init.c b/init.c index acdc6598..18538de1 100644 --- a/init.c +++ b/init.c @@ -619,7 +619,7 @@ static int fixup_options(struct thread_data *td) /* * Reads can do overwrites, we always need to pre-create the file */ - if (td_read(td) || td_rw(td)) + if (td_read(td)) o->overwrite = 1; if (!o->min_bs[DDIR_READ]) @@ -764,7 +764,11 @@ static int fixup_options(struct thread_data *td) } if (o->pre_read) { - o->invalidate_cache = 0; + if (o->invalidate_cache) { + log_info("fio: ignore invalidate option for %s\n", + o->name); + o->invalidate_cache = 0; + } if (td_ioengine_flagged(td, FIO_PIPEIO)) { log_info("fio: cannot pre-read files with an IO engine" " that isn't seekable. Pre-read disabled.\n");