Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
int numjobs, i;
struct fio_file *f;
const char *engine;
int numjobs, i;
struct fio_file *f;
const char *engine;
/*
* the def_thread is just for options, it's not a real job
/*
* the def_thread is just for options, it's not a real job
if (td->odirect)
td->io_ops->flags |= FIO_RAWIO;
if (td->odirect)
td->io_ops->flags |= FIO_RAWIO;
+ fn_given = (int) td->filename;
if (!td->filename)
td->filename = strdup(jobname);
if (!td->filename)
td->filename = strdup(jobname);
else
td->nr_uniq_files = td->open_files;
else
td->nr_uniq_files = td->open_files;
- if (td->filetype == FIO_TYPE_FILE || td->filename) {
+ if (td->filetype == FIO_TYPE_FILE) {
char tmp[PATH_MAX];
int len = 0;
char tmp[PATH_MAX];
int len = 0;
memset(f, 0, sizeof(*f));
f->fd = -1;
memset(f, 0, sizeof(*f));
f->fd = -1;
sprintf(tmp + len, "%s", td->filename);
else
sprintf(tmp + len, "%s", td->filename);
else
- sprintf(tmp + len, "%s.%d.%d", jobname, td->thread_number, i);
+ sprintf(tmp + len, "%s.%d.%d", td->filename, td->thread_number, i);
f->file_name = strdup(tmp);
}
} else {
f->file_name = strdup(tmp);
}
} else {