projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow IO logging even for diskless engines
[fio.git]
/
parse.c
diff --git
a/parse.c
b/parse.c
index 4c6a9ea984ee28475c0f47eeabec549d68e7c55e..7dc5fcc869ff05b21accb95257bb4fa473d188f3 100644
(file)
--- a/
parse.c
+++ b/
parse.c
@@
-277,6
+277,7
@@
static int __handle_option(struct fio_option *o, const char *ptr, void *data,
}
case FIO_OPT_STR_VAL_TIME:
is_time = 1;
}
case FIO_OPT_STR_VAL_TIME:
is_time = 1;
+ case FIO_OPT_INT:
case FIO_OPT_STR_VAL:
case FIO_OPT_STR_VAL_INT: {
fio_opt_str_val_fn *fn = o->cb;
case FIO_OPT_STR_VAL:
case FIO_OPT_STR_VAL_INT: {
fio_opt_str_val_fn *fn = o->cb;
@@
-303,7
+304,8
@@
static int __handle_option(struct fio_option *o, const char *ptr, void *data,
if (fn)
ret = fn(data, &ull);
else {
if (fn)
ret = fn(data, &ull);
else {
- if (o->type == FIO_OPT_STR_VAL_INT) {
+ if (o->type == FIO_OPT_STR_VAL_INT ||
+ o->type == FIO_OPT_INT) {
if (first)
val_store(ilp, ull, o->off1, data);
if (!more && o->off2)
if (first)
val_store(ilp, ull, o->off1, data);
if (!more && o->off2)
@@
-373,7
+375,6
@@
static int __handle_option(struct fio_option *o, const char *ptr, void *data,
break;
}
break;
}
- case FIO_OPT_INT:
case FIO_OPT_BOOL: {
fio_opt_int_fn *fn = o->cb;
case FIO_OPT_BOOL: {
fio_opt_int_fn *fn = o->cb;