init: abort write and trim jobs when --readonly option is present
authorVincent Fu <vincent.fu@wdc.com>
Fri, 15 Jun 2018 21:17:38 +0000 (15:17 -0600)
committerVincent Fu <vincent.fu@wdc.com>
Mon, 18 Jun 2018 19:37:05 +0000 (13:37 -0600)
commitc0e9a23844dd78a0dd07ab72f59114089e639e74
treee1810724fb1d3448ce7bd700160bfa177a172ccf
parent1cce3c66140206967462f85646a50b0065da87e9
init: abort write and trim jobs when --readonly option is present

Check for conflicts between --readonly and the job's data direction
in fixup_options(). rw_verify() in options.c only detects this
conflict if --readonly precedes --readwrite on the command line.
init.c