From c32e1a09dc24d570274172efb6d7686c0f0e1291 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Thu, 30 Nov 2017 21:29:32 -0700 Subject: [PATCH] options: warn if we exceed the supported number of split entries Signed-off-by: Jens Axboe --- options.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/options.c b/options.c index 30f79623..3fa646c0 100644 --- a/options.c +++ b/options.c @@ -110,8 +110,10 @@ static int split_parse_ddir(struct thread_options *o, struct split *split, split->val1[i] = val; split->val2[i] = perc; i++; - if (i == max_splits) + if (i == max_splits) { + log_err("fio: hit max of %d split entries\n", i); break; + } } split->nr = i; -- 2.25.1