Unify options with gfio
[fio.git] / parse.c
diff --git a/parse.c b/parse.c
index f00a66b72ae7f38371694816e33b82b7533e43f3..9f56a6a76a0a7c753d426261e6209ac41681cbc3 100644 (file)
--- a/parse.c
+++ b/parse.c
@@ -1170,6 +1170,11 @@ 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);
+               o->category = FIO_OPT_C_GENERAL;
+               o->group = FIO_OPT_G_INVALID;
+       }
        if (o->type == FIO_OPT_STR || o->type == FIO_OPT_STR_STORE ||
            o->type == FIO_OPT_STR_MULTI)
                return;