projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
429ca07
)
[PATCH] Fixup file type recognition
author
Jens Axboe
<jens.axboe@oracle.com>
Sat, 17 Feb 2007 00:51:13 +0000
(
01:51
+0100)
committer
Jens Axboe
<jens.axboe@oracle.com>
Sat, 17 Feb 2007 00:51:13 +0000
(
01:51
+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 f4a37401ec0b507eef3cc04252db1669be66457d..9e41d55af957a66d6a0900462d5d4ca5a8c7f038 100644
(file)
--- a/
init.c
+++ b/
init.c
@@
-679,7
+679,7
@@
static int add_job(struct thread_data *td, const char *jobname, int job_add_num)
td->io_ops->flags |= FIO_RAWIO;
td->filetype = FIO_TYPE_FILE;
- if (
!stat(job
name, &sb)) {
+ if (
td->filename && !lstat(td->file
name, &sb)) {
if (S_ISBLK(sb.st_mode))
td->filetype = FIO_TYPE_BD;
else if (S_ISCHR(sb.st_mode))