projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
a05bd42
)
sg engine: do type check only when sd has been setup
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 2 Apr 2007 08:51:10 +0000
(10:51 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Mon, 2 Apr 2007 08:51:10 +0000
(10:51 +0200)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/sg.c
patch
|
blob
|
blame
|
history
diff --git
a/engines/sg.c
b/engines/sg.c
index 44e151b65ead24c0d7ffc6040369f74ad79b2fd6..3462688a8d5295980bb6204c56f77581825989ea 100644
(file)
--- a/
engines/sg.c
+++ b/
engines/sg.c
@@
-390,7
+390,7
@@
static int fio_sgio_open(struct thread_data *td, struct fio_file *f)
if (ret)
return ret;
if (ret)
return ret;
- if (!sd->type_checked && fio_sgio_type_check(td, f)) {
+ if (
sd &&
!sd->type_checked && fio_sgio_type_check(td, f)) {
generic_close_file(td, f);
return 1;
}
generic_close_file(td, f);
return 1;
}