filesetup: make trim jobs respect --readonly during file open
authorVincent Fu <vincent.fu@wdc.com>
Fri, 15 Jun 2018 21:05:28 +0000 (15:05 -0600)
committerVincent Fu <vincent.fu@wdc.com>
Mon, 18 Jun 2018 17:10:26 +0000 (11:10 -0600)
commit11ff4c37e3fc4fa4eb03c55942b89f92eb01263f
tree07f83b13718e0a6c2554a2a9d92e19a35b4c4314
parent196ccc44e70333cc87f9d417967bd06288602dac
filesetup: make trim jobs respect --readonly during file open

Open files for trim workloads with the O_RDWR access mode only when
the --readonly option is absent.
filesetup.c