enum fio_opt_type {
FIO_OPT_STR = 0,
FIO_OPT_STR_VAL,
- FIO_OPT_STR_VAL_INT,
FIO_OPT_STR_VAL_TIME,
FIO_OPT_STR_STORE,
FIO_OPT_RANGE,
const char *help; /* help text for sub option */
};
+#define OPT_LEN_MAX 1024
#define PARSE_MAX_VP 16
/*
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 *);
extern void strip_blank_front(char **);
extern void strip_blank_end(char *);
-extern int str_to_decimal(const char *, long long *, int);
+extern int str_to_decimal(const char *, long long *, int, void *);
/*
* Handlers for the options