zipf/pareto: use min of file size and io size for init
authorJens Axboe <axboe@kernel.dk>
Fri, 4 Jan 2013 12:09:29 +0000 (13:09 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Jan 2013 12:13:37 +0000 (13:13 +0100)
commit21415db9f1689a5c47fda5e710879c4739707442
tree8ccb2e9a3d940dd7ea76d3917e493c8b23131ffd
parent0303a2613762c630083c4bf7418f7e08c1d552a5
zipf/pareto: use min of file size and io size for init

It is valid to use size=foo, where foo is larger than the size
of the file or device. For that case, we don't want offsets
larger than the size of the file. So use the minimum of the
real or given size.

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