Enfore that lockfile= must precede filename=
authorJens Axboe <axboe@fb.com>
Tue, 11 Feb 2014 16:12:06 +0000 (09:12 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 11 Feb 2014 16:12:06 +0000 (09:12 -0700)
commitf2a2803a4982a1516eb75d9f98de68cf21d1ae7d
treec486cb24fe44b766e7621cffdf23939ed44b5247
parent002fe73409d1e3d5e7dfe2885f75885bfaf506bc
Enfore that lockfile= must precede filename=

The way fio parses options, we need to have the file locking
defined before we start adding files. Normally we can handle
this with option priorities, but that doesn't work across
job section boundaries. So catch this case and error out,
otherwise fio will segfault when it attempts to unlock files
at the end of a job.

Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c
options.c