*/
#include <stdio.h>
#include <stdlib.h>
+#include <libgen.h>
#include <assert.h>
#include "list.h"
#include "fio.h"
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]);
}