This allows us to individually verify options, instead of having
a big function that attempts to fix things up.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
+ if (ret)
+ return ret;
+
+ if (o->verify)
+ ret = o->verify(o, data);
+
const char *def; /* default setting */
const struct value_pair posval[PARSE_MAX_VP];/* possible values */
const char *parent; /* parent option */
const char *def; /* default setting */
const struct value_pair posval[PARSE_MAX_VP];/* possible values */
const char *parent; /* parent option */
+ int (*verify)(struct fio_option *, void *);
};
typedef int (str_cb_fn)(void *, char *);
};
typedef int (str_cb_fn)(void *, char *);