Fix issue with random offset being off if io_size != real_file_size
authorRadha Ramachandran <radha@google.com>
Wed, 22 Apr 2009 06:17:42 +0000 (08:17 +0200)
committerJens Axboe <jens.axboe@oracle.com>
Wed, 22 Apr 2009 06:17:42 +0000 (08:17 +0200)
commit899c29f26080585dadab9ba35cd7ed01b26fb19b
treed1cb1d3d8526cd9884eba8d6ad8a927d6344d20e
parenteccffc9938ac8edff0270903d8a5754bb1ae6b53
Fix issue with random offset being off if io_size != real_file_size

get_next_free_block() would generate offset that were larger than the
requested size, either causing failures or just causing the test
to exit prematurely.

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c