Enable read/write sequential offset to be a non-multiple of the block size
authorJens Axboe <axboe@kernel.dk>
Sat, 17 Mar 2012 11:54:30 +0000 (12:54 +0100)
committerJens Axboe <axboe@kernel.dk>
Sat, 17 Mar 2012 11:54:30 +0000 (12:54 +0100)
commit37cf9e3c608ac9987c1cd120e18e2a8d90ac14db
tree5db0861c22f04680e6c03a415d661d69e1e82f0e
parentc04e4661e4da3b6079f415897e4507cf8e610c54
Enable read/write sequential offset to be a non-multiple of the block size

The way that fio does offset math internally, if a non-multiple
of the blocksize was given as a sequence offset, it would simply
be ignored due to the block offset division rounding it down.
In other words, if you did:

rw=read:512k
bs=1m

it did not read 1m and 0 offset, 1m at 512k offset, etc. Instead
the hole is ignored.

Fix this by leaving the generated sequential offset in bytes
instead of turning it into a 'fio block'.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c