if (!o->minval && !o->maxval)
return;
- printf("%20s: min=%d, max=%d\n", "range", o->minval, o->maxval);
+ printf("%20s: min=%d", "range", o->minval);
+ if (o->maxval)
+ printf(", max=%d", o->maxval);
+ printf("\n");
}
static void show_option_values(struct fio_option *o)
case FIO_OPT_STR_VAL_TIME:
is_time = 1;
case FIO_OPT_INT:
- case FIO_OPT_STR_VAL:
- case FIO_OPT_STR_VAL_INT: {
+ case FIO_OPT_STR_VAL: {
fio_opt_str_val_fn *fn = o->cb;
if (is_time)
if (fn)
ret = fn(data, &ull);
else {
- if (o->type == FIO_OPT_STR_VAL_INT ||
- o->type == FIO_OPT_INT) {
+ if (o->type == FIO_OPT_INT) {
if (first)
val_store(ilp, ull, o->off1, data);
if (!more && o->off2)
ret = 1;
}
+ if (ret)
+ return ret;
+
+ if (o->verify)
+ ret = o->verify(o, data);
+
return ret;
}
const char *typehelp[] = {
"string (opt=bla)",
"string with possible k/m/g postfix (opt=4k)",
- "string with range and postfix (opt=1k-4k)",
"string with time postfix (opt=10s)",
"string (opt=bla)",
"string with dual range (opt=1k-4k,4k-8k)",