zipf/pareto: use size= if given, not always device size
authorJens Axboe <axboe@kernel.dk>
Fri, 4 Jan 2013 07:26:10 +0000 (08:26 +0100)
committerJens Axboe <axboe@kernel.dk>
Fri, 4 Jan 2013 07:26:10 +0000 (08:26 +0100)
commit898cf6c7c1c5bceb57a15e339beb343bec5478e7
treefa19b56bedcff387bd3dfb7080631007d83969dd
parentb0ff22d7b23118b6c7dc56f2256ce6dde634422a
zipf/pareto: use size= if given, not always device size

We used the full device/file size for the zipf or pareto init,
this breaks if size= is specifically given. This causes fio
to generate offsets outside the specified size= range, and fio
will then just exit.

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