sg_wr_mode --version (return code: 0)
sg_wr_mode: version: 1.16 20160208
sg_wr_mode --help (return code: 0)
Usage: sg_wr_mode [--contents=H,H...] [--dbd] [--force] [--help]
[--len=10|6] [--mask=M,M...] [--page=PG_H[,SPG_H]]
[--save] [--verbose] [--version] DEVICE
where:
--contents=H,H... | -c H,H... comma separated string of hex numbers
that is mode page contents to write
--contents=- | -c - read stdin for mode page contents to write
--dbd | -d disable block descriptors (DBD bit in cdb)
--force | -f force the contents to be written
--help | -h print out usage message
--len=10|6 | -l 10|6 use 10 byte (def) or 6 byte variants of
SCSI MODE SENSE/SELECT commands
--mask=M,M... | -m M,M... comma separated string of hex
numbers that mask contents to write
--page=PG_H | -p PG_H page_code to be written (in hex)
--page=PG_H,SPG_H | -p PG_H,SPG_H page and subpage code to be
written (in hex)
--save | -s set 'save page' (SP) bit; default don't so
only 'current' values changed
--verbose | -v increase verbosity
--version | -V print version string and exit
writes given mode page with SCSI MODE SELECT (10 or 6) command