From: Jens Axboe Date: Thu, 22 May 2008 07:17:33 +0000 (+0200) Subject: If verify is enabled, automatically enable refill_buffers X-Git-Tag: fio-1.21-rc1~13 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=41ccd84597867a36289392e59634d9fd7dc4c397 If verify is enabled, automatically enable refill_buffers Signed-off-by: Jens Axboe --- diff --git a/HOWTO b/HOWTO index 36e42aaf..e4fccb55 100644 --- a/HOWTO +++ b/HOWTO @@ -339,7 +339,8 @@ zero_buffers If this option is given, fio will init the IO buffers to refill_buffers If this option is given, fio will refill the IO buffers on every submit. The default is to only fill it at init time and reuse that data. Only makes sense if zero_buffers - isn't specified, naturally. + isn't specified, naturally. If data verification is enabled, + refill_buffers is also automatically enabled. nrfiles=int Number of files to use for this job. Defaults to 1. diff --git a/init.c b/init.c index 63aaa76f..2a3fcee7 100644 --- a/init.c +++ b/init.c @@ -314,6 +314,9 @@ static int fixup_options(struct thread_data *td) log_info("fio: mixed read/write workload with verify. May not " "work as expected, unless you pre-populated the file\n"); + if (td->o.verify != VERIFY_NONE) + td->o.refill_buffers = 1; + return 0; }