windowsaio: fix file offset bug
authorBruce Cran <BCran@fusionio.com>
Wed, 1 Feb 2012 20:46:55 +0000 (21:46 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 1 Feb 2012 20:46:55 +0000 (21:46 +0100)
commit1e42cc3dc15b40b6f329a8f6fbe8c01af051556a
treecfd663b4c417f8028ac4cd6c4b0330efdaf4b787
parent85af57948a9c0d5c2ece9c680a41c1670888a09e
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>
engines/windowsaio.c