Ensure that job name is set before being used
authorJens Axboe <axboe@fb.com>
Tue, 24 Jun 2014 15:19:30 +0000 (09:19 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 24 Jun 2014 15:19:30 +0000 (09:19 -0600)
commitef3d8e53c01456f22a61c162e4e5a3997af14a5d
treea92568acff179d09ad8048c8fab27c406a133a69
parent723297c93255e3e57fa516599660e0bbd5e96a52
Ensure that job name is set before being used

Andreas reports:

When passing the --readonly option, with the following write job (and
probably with any write job), I get an error message with a NULL job
name. Job description used:

[write]
thread
bs=64k
direct=1
ioengine=sync
size=128m
filename=test.tmp
rw=write
do_verify=0

Reported-by: Andreas Grünbacher <andreas.gruenbacher@gmail.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c