sg_reassign --version (return code: 0)
version: 1.17 20151207
sg_reassign --help (return code: 0)
Usage: sg_reassign [--address=A,A...] [--dummy] [--eight=0|1] [--grown]
[--help] [--hex] [--longlist=0|1] [--primary] [--verbose]
[--version] DEVICE
where:
--address=A,A...|-a A,A... comma separated logical block addresses
one or more, assumed to be decimal
--address=-|-a - read stdin for logical block addresses
--dummy|-d prepare but do not execute REASSIGN BLOCKS command
--eight=0|1
-e 0|1 force eight byte (64 bit) lbas when 1,
four byte (32 bit) lbas when 0 (def)
--grown|-g fetch grown defect list length, don't reassign
--help|-h print out usage message
--hex|-H print response in hex (for '-g' or '-p')
--longlist=0|1
-l 0|1 use 4 byte list length when 1, safe to ignore
(def: 0 (2 byte list length))
--primary|-p fetch primary defect list length, don't reassign
--verbose|-v increase verbosity
--version|-V print version string and exit
Perform a SCSI REASSIGN BLOCKS command (or READ DEFECT LIST)