commit | 8a42394ebd5d31d4df2df6cf441c49edb12e2df0 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Sun Sep 28 16:18:43 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:18 2015 -0800 |
tree | 769be98834c2c0e7a57e21c53220bc1698017686 | |
parent | 2ccf91acdec8b977c630238cee65c59b1778311a [diff] |
Fix bug with rw sequence offset and io_limit If you do: dd if=/dev/zero of=/dev/shm/1M bs=1M count=1 fio --bs=4k --rw=write:4k --filename=/dev/shm/1M --name=go --io_limit=2M then fio will exit prematurely after having done 128 4KB ios, so only 512KB are read. This is because after 128 ios, we have reache the end of the file. Handle this case and wrap around properly. Signed-off-by: Jens Axboe <axboe@fb.com>