commit | 97af62cec418cd722fb43c6010d6430534e12353 | [log] [tgz] |
---|---|---|
author | Jens Axboe <jens.axboe@oracle.com> | Tue May 22 11:12:13 2007 +0200 |
committer | Jens Axboe <jens.axboe@oracle.com> | Tue May 22 11:12:13 2007 +0200 |
tree | cd9146c7c9d2c7b55767e6593979bc2aa0327c69 | |
parent | 16d55aae770b8b1a966d4b4a814918ce49a76ba3 [diff] [blame] |
IO verification needs to open and grab a reference to a file Otherwise it can disappear in midair. Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
diff --git a/io_u.c b/io_u.c index c824d7e..6290ebb 100644 --- a/io_u.c +++ b/io_u.c
@@ -593,6 +593,8 @@ } } while (1); + assert(io_u->file->flags & FIO_FILE_OPEN); + if (td->zone_bytes >= td->o.zone_size) { td->zone_bytes = 0; f->last_pos += td->o.zone_skip;