From: Jens Axboe Date: Thu, 7 Feb 2013 12:06:18 +0000 (+0100) Subject: Fix zones for numjobs=x, where x > 1 X-Git-Tag: fio-2.0.14~24 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=627aa1a8477290140a342a7bf344a84bc5bed762 Fix zones for numjobs=x, where x > 1 In the options fixup, we auto-set open_files to 1 if it hasn't been set. So any duplicated jobs will clear the zone. Fixup the check to properly check for > 1 open files. Signed-off-by: Jens Axboe --- diff --git a/init.c b/init.c index 60ba2993..e8f3a9bb 100644 --- a/init.c +++ b/init.c @@ -408,7 +408,7 @@ static int fixup_options(struct thread_data *td) /* * only really works with 1 file */ - if (o->zone_size && o->open_files == 1) + if (o->zone_size && o->open_files > 1) o->zone_size = 0; /*