fio.h: also check trim operations in fio_ro_check
authorVincent Fu <vincent.fu@wdc.com>
Fri, 15 Jun 2018 21:00:25 +0000 (15:00 -0600)
committerVincent Fu <vincent.fu@wdc.com>
Mon, 18 Jun 2018 17:10:26 +0000 (11:10 -0600)
commit196ccc44e70333cc87f9d417967bd06288602dac
tree8c643b91742d90b2af91ca2e8fae4a522bb00f2d
parentaf84cd66149507424814cf9c0b4950f4cf66e3b7
fio.h: also check trim operations in fio_ro_check

IO engines call fio_ro_check to ensure that the data direction
set in the thread data structure permits writes before proceeding
with a write io_u. This patch makes fio_ro_check ensure that the
data direction also permits trims before proceeding with a trim
io_u.
fio.h