Treat option outside of job section as fatal and quit
authorJens Axboe <jens.axboe@oracle.com>
Thu, 19 Jul 2007 12:53:01 +0000 (14:53 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Thu, 19 Jul 2007 12:53:01 +0000 (14:53 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c

diff --git a/init.c b/init.c
index 93322fdcc266bf065153f576b7e8204b7da3035d..6cbed8c86ea1d9593719bdd4ffdae37ba72c6456 100644 (file)
--- a/init.c
+++ b/init.c
@@ -583,8 +583,8 @@ static int parse_jobs_ini(char *file, int stonewall_flag)
                if (is_empty_or_comment(p))
                        continue;
                if (sscanf(p, "[%255s]", name) != 1) {
-                       log_err("fio: option <%s> outside of job section\n", p);
-                       continue;
+                       log_err("fio: option <%s> outside of [] job section\n", p);
+                       break;
                }
 
                global = !strncmp(name, "global", 6);