fio: allow trim operations for verify/trim workloads
authorVincent Fu <vincentfu@gmail.com>
Mon, 31 Mar 2025 14:01:28 +0000 (10:01 -0400)
committerVincent Fu <vincent.fu@samsung.com>
Mon, 7 Apr 2025 14:54:38 +0000 (10:54 -0400)
commit0458bfd4496b9575944d3af4335c34cb5688cec3
tree53e789b7353c1a5f1737bba18f7a485af4a118e6
parentc283fe11bda9efde7f063e6fe693802724ddc8c0
fio: allow trim operations for verify/trim workloads

Fio has the ability to verify trim operations by running a verify
workload and setting the trim_percentage, trim_backlog, and
trim_verify_zero options. Some of the written blocks will then be
trimmed and then read back to see if they are zeroed out.

This patch changes fio_ro_check to allow trim operations when fio is
running a verify/trim workload.

Fixes: 196ccc44 ("fio.h: also check trim operations in fio_ro_check")
Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
fio.h
init.c