projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a7dfe86
)
If filename not given, use jobname
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Mar 2007 10:01:25 +0000
(11:01 +0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 12 Mar 2007 10:01:25 +0000
(11:01 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
init.c
patch
|
blob
|
blame
|
history
diff --git
a/init.c
b/init.c
index ba33a5e3264303f198087730ae9f6b0a9bb12566..62080f74949f09a9abbdb1ce2fa40ee2b9a7731d 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-819,8
+819,11
@@
static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
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))