X-Git-Url: https://git.kernel.dk/?a=blobdiff_plain;f=log.c;h=8f92e93f065d7b57234bbdbccf8bab875f785fe9;hb=8ad45fc1f41d29f9fc28a67c2fc11d48f5c17c7f;hp=790d3a1e32c9d4c046bb17be0f10f44a74f5fef3;hpb=748b23a36509240af1debf5f7f3ca8ef153548ea;p=fio.git diff --git a/log.c b/log.c index 790d3a1e..8f92e93f 100644 --- 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; + + /* + * 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]); }