Move handling of possible values into the option parser
authorJens Axboe <jens.axboe@oracle.com>
Fri, 23 Feb 2007 09:29:16 +0000 (10:29 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Fri, 23 Feb 2007 09:29:16 +0000 (10:29 +0100)
commitb1ec1da670aab645e32303ea5ffaa1e5ca336936
tree2e6df9a7ad4bd134d00ad990ed835cbcd988b5c2
parent413dd459a7710ba421061e840dd9ac3161c70f20
Move handling of possible values into the option parser

Eliminates the need for a callback for any FIO_OPT_STR type
option, unless it needs to do something there other than just
setting the variable.

The possible options are not in an array of value pairs, so we
can easily match an string option with an integer output value.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
fio.h
init.c
parse.c
parse.h