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'
Options (10)
| Option | Description | Source |
|---|
--count, -c CO | the number CO is placed in the "count" field in the ATA SET FEATURES command. | help + man |
--ck_cond, -C | sets the CK_COND bit in the ATA PASS-THROUGH SCSI cdb. | help + man |
--extended, -e | allow for extended LBA numbers (i.e. larger than 32 bits). | help + man |
--feature, -f FEA|-f | the value FEA is placed in the "feature" field in the ATA SET FEATURES command. | help + man |
--help, -h | outputs the usage message summarizing command line options then exits. | help + man |
--lba, -L LBA | the number LBA is placed in the "lba" field of the ATA SET FEATURES command. | help + man |
--len, -l 16|12 | this is the length of the SCSI cdb used for the ATA PASS-THROUGH commands. | help + man |
--verbose, -v | increases the level or verbosity. | help + man |
--readonly, -r | causes the DEVICE to be opened with the read-only flag (O_RDONLY in Unix). | help + man |
--version, -V | print version string and exit | help + man |
Exit status (1) from the manual page
Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.