randtrimwrite: write at same offset as trim
We need to do a little bit more to make sure that the writes land on the
offsets that were trimmed.
We only have a single random seed for offsets. So we need to just use
the offset from trim commands when issuing writes.
When we have variable block sizes we need to make sure that the trim and
write commands are the same size.
When randommap is enabled we have to let it adjust the block size for
trim commands to make sure that the trim command does not touch any
blocks that have already been touched.
For sizes of write commands just use the size of the trim command.
Fixes:
c16dc793a3c45780f67ce65244b6e91323dee014 "Add randtrimwrite data
direction"
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>