file: fix numjobs > 1 and implied jobname as filename
authorJens Axboe <axboe@fb.com>
Fri, 26 Aug 2016 03:00:55 +0000 (21:00 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 26 Aug 2016 03:00:55 +0000 (21:00 -0600)
commit04d6530f6ecd50520e99732b0b6bb90f71ff131a
tree6383371da4b2281cf264f6d16ab3496da5cd608d
parent4c13124fd80dad1e771dfca0022b37a3f1bb9a43
file: fix numjobs > 1 and implied jobname as filename

If we have a jobfile that looks like:

[global]
numjobs=4

[/dev/somedevice]

Then we fail jobs 2 and on, since we don't properly add those
files. Fix this by checking if we're generating a filename
based on the jobname.

Fixes: bcbfeefa7bce ("fio: add multi directory support")
Signed-off-by: Jens Axboe <axboe@fb.com>
file.h
filesetup.c
init.c