test: test job for randtrimwrite
authorVincent Fu <vincent.fu@samsung.com>
Fri, 30 Sep 2022 19:48:56 +0000 (12:48 -0700)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 3 Oct 2022 21:36:57 +0000 (17:36 -0400)
commitc37183f8a161df252b7b05e9be9c4e0665106146
treee429d00a0124e75739703070b30667970a831e63
parentf9f1e137bbf6afec54102ff7720c1c0c01940199
test: test job for randtrimwrite

This test exposes a problem with randtrimwrite when norandommap is
enabled.

Currently we check to see if the last write and last trim ended at the
same position. If so, we decide that the next operation should be a
trim. This is ok in most cases but if norandommap is enabled, it could
happen by chance that we just finished a trim + write on an offset and
randomly chose that same offset again. This would fool fio into thinking
that it already finished a trim + write pair when it actually issued
only a trim operation.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
t/jobs/t0023.fio [new file with mode: 0644]
t/run-fio-tests.py