options: add support for checking if an option has been set
authorJens Axboe <axboe@fb.com>
Tue, 9 Dec 2014 19:58:15 +0000 (12:58 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 9 Dec 2014 19:58:15 +0000 (12:58 -0700)
commita8523a6ae6ce7beafcfa75c4f0b9226e2ab17139
tree8eef0e4bca053afa336883946b215f0711348ed8
parentf8b8f7da1f64353ebc1dfa47de3b7ff1e8cca303
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>
cconv.c
options.c
options.h
parse.c
thread_options.h