From: Anuj Gupta <anuj20.g@xxxxxxxxxxx> Currently, fio exits incase an invalid value is passed as fio option, but continues even if an invalid value is passed for I/O engine specific options. Exit in that scenario. Signed-off-by: Anuj Gupta <anuj20.g@xxxxxxxxxxx> --- init.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/init.c b/init.c index f7d702f8..da800776 100644 --- a/init.c +++ b/init.c @@ -2810,6 +2810,15 @@ int parse_cmd_line(int argc, char *argv[], int client_type) break; ret = fio_cmd_ioengine_option_parse(td, opt, val); + + if (ret) { + if (td) { + put_job(td); + td = NULL; + } + do_exit++; + exit_val = 1; + } break; } case 'w': -- 2.17.1