projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fio 1.21-rc2
[fio.git]
/
log.c
diff --git
a/log.c
b/log.c
index 790d3a1e32c9d4c046bb17be0f10f44a74f5fef3..8f92e93f065d7b57234bbdbccf8bab875f785fe9 100644
(file)
--- a/
log.c
+++ b/
log.c
@@
-40,6
+40,13
@@
void log_file(struct thread_data *td, struct fio_file *f,
if (!td->o.write_iolog_file)
return;
if (!td->o.write_iolog_file)
return;
+
+ /*
+ * this happens on the pre-open/close done before the job starts
+ */
+ if (!td->iolog_f)
+ return;
+
fprintf(td->iolog_f, "%s %s\n", f->file_name, act[what]);
}
fprintf(td->iolog_f, "%s %s\n", f->file_name, act[what]);
}