commit | 1e42cc3dc15b40b6f329a8f6fbe8c01af051556a | [log] [tgz] |
---|---|---|
author | Bruce Cran <BCran@fusionio.com> | Wed Feb 01 21:46:55 2012 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Wed Feb 01 21:46:55 2012 +0100 |
tree | cfd663b4c417f8028ac4cd6c4b0330efdaf4b787 | |
parent | 85af57948a9c0d5c2ece9c680a41c1670888a09e [diff] |
windowsaio: fix file offset bug I was monitoring file IO while running fio today and noticed that the file offset when using windowsaio was always 0. Because the OVERLAPPED structure contains a union, by initializing Pointer to NULL the code was also overwriting the Offset field. I've attached a patch that fixes it. Signed-off-by: Jens Axboe <axboe@kernel.dk>