Fix problem with --showcmd and callbacks that verify
authorJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2013 15:59:56 +0000 (09:59 -0600)
committerJens Axboe <axboe@kernel.dk>
Fri, 6 Sep 2013 15:59:56 +0000 (09:59 -0600)
commitf9633d729f0d2067c3f79b5e82e7129de1e650cd
tree6768aea66d85f668cf4743d01fb68f0265285e5b
parenta3c86fc452d1c5e6ec78c6c2617540c34b7d9035
Fix problem with --showcmd and callbacks that verify

David reports:

I'm using "fio --showcmd file.job" to convert a script to plain
commandline arguments and this fails if the directory specified in job
file does not exist. While this has to be an error if the job is being
executed, it should not be in context of --showcmd.

To reproduce:
$ cat job.fio
[global]
directory=/x

$ fio --showcmd job.fio
fio: /x is not a directory
fio: failed parsing directory=/x
fio: job global dropped

Expected output:
fio --directory=/x

Signed-off-by: Jens Axboe <axboe@kernel.dk>
fio.h
init.c
options.c