commit | 80be24f4671164d597463e4b5c794d4cbd0a4537 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 12 11:01:25 2007 +0100 |
committer | Jens Axboe <jens.axboe@oracle.com> | Mon Mar 12 11:01:25 2007 +0100 |
tree | 6f7bade0f2ac28dc26f95b7e8d7767acd4c50015 | |
parent | a7dfe862c2e3fe72b8db6a6e67302048d3731c6d [diff] [blame] |
If filename not given, use jobname Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/init.c b/init.c index ba33a5e..62080f7 100644 --- a/init.c +++ b/init.c
@@ -819,8 +819,11 @@ if (td->odirect) td->io_ops->flags |= FIO_RAWIO; + if (!td->filename) + td->filename = strdup(jobname); + td->filetype = FIO_TYPE_FILE; - if (td->filename && !lstat(td->filename, &sb)) { + if (!lstat(td->filename, &sb)) { if (S_ISBLK(sb.st_mode)) td->filetype = FIO_TYPE_BD; else if (S_ISCHR(sb.st_mode))