sg_write_verify --version (return code: 0)
sg_write_verify: version: 1.08 20151220
sg_write_verify --help (return code: 0)
Usage: sg_write_verify [--16] [--bytchk=BC] [--dpo] [--group=GN] [--help]
[--ilen=IL] [--in=IF] --lba=LBA [--num=NUM]
[--repeat] [--timeout=TO] [--verbose] [--version]
[--wrprotect=WPR] DEVICE
where:
--16|-S do WRITE AND VERIFY(16) (default: 10)
--bytchk=BC|-b BC set BYTCHK field (default: 0)
--dpo|-d set DPO bit (default: 0)
--group=GN|-g GN GN is group number (default: 0)
--help|-h print out usage message
--ilen=IL| -I IL input (file) length in bytes, becomes data-out
buffer length (def: deduced from IF size)
--in=IF|-i IF IF is a file containing the data to be written
--lba=LBA|-l LBA LBA of the first block to write and verify;
no default, must be given
--num=NUM|-n NUM logical blocks to write and verify (def: 1)
--repeat|-R while IF still has data to read, send another
command, bumping LBA with up to NUM blocks again
--timeout=TO|-t TO command timeout in seconds (def: 60)
--verbose|-v increase verbosity
--version|-V print version string then exit
--wrprotect|-w WPR WPR is the WRPROTECT field value (def: 0)
Performs a SCSI WRITE AND VERIFY (10 or 16) command on DEVICE, startings
at LBA for NUM logical blocks. More commands performed only if '--repeat'
option given. Data to be written is fetched from the IF file.