sg_sat_set_features --version (return code: 0)
version: 1.12 20160126
sg_sat_set_features --help (return code: 0)
Usage: sg_sat_set_features [--count=CO] [--ck_cond] [--extended] [--feature=FEA]
[--help] [--lba=LBA] [--len=16|12] [--readonly]
[--verbose] [--version] DEVICE
where:
--count=CO | -c CO count field contents (def: 0)
--ck_cond | -C set ck_cond field in pass-through (def: 0)
--extended | -e enable extended lba values
--feature=FEA|-f FEA feature field contents
(def: 0 (which is reserved))
--help | -h output this usage message
--lba=LBA | -L LBA LBA field contents (def: 0)
meaning depends on sub-command (feature)
--len=16|12 | -l 16|12 cdb length: 16 or 12 bytes (def: 16)
--verbose | -v increase verbosity
--readonly | -r open DEVICE read-only (def: read-write)
recommended if DEVICE is ATA disk
--version | -V print version string and exit
Sends an ATA SET FEATURES command via a SAT pass through.
Primary feature code is placed in '--feature=FEA' with '--count=CO' and
'--lba=LBA' being auxiliaries for some features. The arguments CO, FEA
and LBA are decimal unless prefixed by '0x' or have a trailing 'h'.
Example enabling write cache: 'sg_sat_set_feature --feature=2 /dev/sdc'