Move t/jobs/ to .fio format
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index 9f56a6a76a0a7c753d426261e6209ac41681cbc3..83227e92b9a2f31944523ecc5b045be9de5d1204 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -959,9 +959,8 @@ int parse_option(char *opt, const char *input,
                return 1;
        }
 
-       if (!handle_option(*o, post, data)) {
+       if (!handle_option(*o, post, data))
                return 0;
-       }
 
        log_err("fio: failed parsing %s\n", input);
        return 1;
@@ -1171,7 +1170,7 @@ void option_init(struct fio_option *o)
        if (!o->cb && (!o->off1 && !o->roff1))
                log_err("Option %s: neither cb nor offset given\n", o->name);
        if (!o->category) {
-               log_info("Options %s: no category defined. Setting to misc\n", o->name);
+               log_info("Option %s: no category defined. Setting to misc\n", o->name);
                o->category = FIO_OPT_C_GENERAL;
                o->group = FIO_OPT_G_INVALID;
        }
@@ -1194,8 +1193,11 @@ void options_init(struct fio_option *options)
 
        dprint(FD_PARSE, "init options\n");
 
-       for (o = &options[0]; o->name; o++)
+       for (o = &options[0]; o->name; o++) {
                option_init(o);
+               if (o->inverse)
+                       o->inv_opt = find_option(options, o->inverse);
+       }
 }
 
 void options_free(struct fio_option *options, void *data)