sg_write_long --version (return code: 0)
sg_write_long: version: 1.12 20160121
sg_write_long --help (return code: 0)
Usage: sg_write_long [--16] [--cor_dis] [--help] [--in=IF] [--lba=LBA]
[--pblock] [--verbose] [--version] [--wr_uncor]
[--xfer_len=BTL] DEVICE
where:
--16|-S do WRITE LONG(16) (default: 10)
--cor_dis|-c set correction disabled bit
--help|-h print out usage message
--in=IF|-i IF input from file called IF (default: use
0xff bytes as fill)
--lba=LBA|-l LBA logical block address (default: 0)
--pblock|-p physical block (default: logical block)
--verbose|-v increase verbosity
--version|-V print version string then exit
--wr_uncor|-w set an uncorrectable error (no data transferred)
--xfer_len=BTL|-x BTL byte transfer length (< 10000) (default:
520 bytes)
Performs a SCSI WRITE LONG (10 or 16) command. Writes a single block
including associated ECC data. That data may be obtained from the
SCSI READ LONG command. See the sg_read_long utility.