summaryrefslogtreecommitdiff
path: root/parse.c
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2014-12-09 12:58:15 -0700
committerJens Axboe <axboe@fb.com>2014-12-09 12:58:15 -0700
commita8523a6ae6ce7beafcfa75c4f0b9226e2ab17139 (patch)
tree8eef0e4bca053afa336883946b215f0711348ed8 /parse.c
parentf8b8f7da1f64353ebc1dfa47de3b7ff1e8cca303 (diff)
downloadfio-a8523a6ae6ce7beafcfa75c4f0b9226e2ab17139.tar.gz
fio-a8523a6ae6ce7beafcfa75c4f0b9226e2ab17139.tar.bz2
options: add support for checking if an option has been set
We often just do a non-zero check, but an option can be set and be set to zero, so we can't currently detect that. For complicated options, we add a second variable to mark if it has been set or not. This allows us to directly check if a given option was set by the user or not. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/parse.c b/parse.c
index 141f4b28..ae87b1ed 100644
--- a/parse.c
+++ b/parse.c
@@ -1279,8 +1279,6 @@ void option_init(struct fio_option *o)
if (o->type == FIO_OPT_STR || o->type == FIO_OPT_STR_STORE ||
o->type == FIO_OPT_STR_MULTI)
return;
- if (o->cb && (o->off1 || o->off2 || o->off3 || o->off4))
- log_err("Option %s: both cb and offset given\n", o->name);
}
/*