commit | 393ca7e973d8e23c8c90890915b08f7dac3e77c0 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Thu May 15 09:17:42 2008 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Thu May 15 09:17:42 2008 +0200 |
tree | d3d3505ff3d79a4132c396b9a446c21e2c9bfb1b | |
parent | 391ba6ac169ad7deaf3bb3840046581f45d755e1 [diff] |
Fix crash with iolog Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/log.c b/log.c index 790d3a1..8f92e93 100644 --- a/log.c +++ b/log.c
@@ -40,6 +40,13 @@ 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]); }