commit | fcb11708806c026566f2af58833ea919419a066d | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Wed Apr 25 14:11:18 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Wed Apr 25 14:11:18 2007 +0200 |
tree | 31cf32f740d651d24057af6b65ea0cf6aa300e62 | |
parent | b680c54e8736ef11387f20ebf3da2fa3141bac99 [diff] [blame] |
Fix read_iolog Caveat - it only works with 1 file, unfortunately. Will need a format change to get that right. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/log.c b/log.c index 45be5fb..de3b759 100644 --- a/log.c +++ b/log.c
@@ -19,6 +19,11 @@ io_u->buflen = ipo->len; io_u->ddir = ipo->ddir; io_u->file = ipo->file; + /* + * work around, this needs a format change to work for > 1 file + */ + if (!io_u->file) + io_u->file = &td->files[0]; free(ipo); return 0; }