From 627aa1a8477290140a342a7bf344a84bc5bed762 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 7 Feb 2013 13:06:18 +0100 Subject: [PATCH] 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 --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; /* -- 2.25.1