filesetup: don't call create_work_dirs() for ioengine with FIO_DISKLESSIO
authorKyle Zhang <kyle@smartx.com>
Thu, 11 Apr 2019 15:01:55 +0000 (23:01 +0800)
committerKyle Zhang <kyle@smartx.com>
Sun, 21 Apr 2019 02:37:48 +0000 (10:37 +0800)
commit95af8dd57a7a9a564f99492bb1e04bb6d13b95b1
tree29a353541c15309d3a072e4906f9857ac2b80185
parent7f125e7f3879d23e79bc2ef5eed678ddab3b5c70
filesetup: don't call create_work_dirs() for ioengine with FIO_DISKLESSIO

Don't create work dirs if ioengine has flag FIO_DISKLESSIO. So that
filename can contains '/'. It is useful when ioengine is based on
network and filename is used as url.

Also call create_work_dirs() just when setting up a file. So that
ioengine is loaded and ioengine flags are available.

Signed-off-by: Kyle Zhang <kyle@smartx.com>
filesetup.c