Make sure io_u->buflen is aligned to the verify_interval
authorJosef Bacik <jbacik@fusionio.com>
Tue, 9 Jul 2013 00:32:50 +0000 (20:32 -0400)
committerJens Axboe <axboe@kernel.dk>
Wed, 10 Jul 2013 00:45:18 +0000 (18:45 -0600)
commita9f70b1f50879346fb065497951352ad4e1e0f11
tree2e3169c6fda058cb601d3a7060d4ceeed406028d
parentd09dddd5c45d5056bd101ae0c4e9acacce2ee56b
Make sure io_u->buflen is aligned to the verify_interval

If you specify verify and bs_unaligned you can make fio blow up in interesting
ways.  This is because the verify code assumes that the buflens will be bs
aligned and therefore aligned to the verify_interval.  However this isn't the
case for bs_unaligned.  So to fix this make sure we are always aligned to
verify_interval.  This keeps us from reading off the end of our io buf, or worse
writing past the end of it and makes this fio job pass properly instead of
blowing up.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
io_u.c