verify: ensure that verify_interval is always a factor of min/max bs
authorJens Axboe <axboe@fb.com>
Thu, 5 Jan 2017 17:26:08 +0000 (10:26 -0700)
committerJens Axboe <axboe@fb.com>
Thu, 5 Jan 2017 17:26:08 +0000 (10:26 -0700)
commit9258468e828cfe1c31b977635994003fe388398e
treec1955fa01d8c0f4b65cd8e25e6e290a0b9d23d68
parent5bba8b3acee1bf1359470a82cac030942018405a
verify: ensure that verify_interval is always a factor of min/max bs

A previous commit force aligned the buffer length to the
verify_interval, but that breaks if max_bs isn't a multiple
of min_bs. If that isn't the case, we can align the block size
bigger than the IO unit really is. This causes corruption and
failures.

Fixes: a9f70b1f5087 ("Make sure io_u->buflen is aligned to the verify_interval")
Signed-off-by: Jens Axboe <axboe@fb.com>
init.c
io_u.c