sg_map26 --version (return code: 0)
sg_map26: version: 1.11 20160121
sg_map26 --help (return code: 0)
Usage: sg_map26 [--dev_dir=DIR] [--given_is=0...1] [--help] [--result=0...3]
[--symlink] [--verbose] [--version] DEVICE
where:
--dev_dir=DIR | -d DIR search in DIR for resulting special
(def: directory of DEVICE or '/dev')
--given_is=0...1 | -g 0...1 variety of given DEVICE
0->block or char special (or symlink to)
1->sysfs device, 'dev' or parent
--help | -h print out usage message
--result=0...3 | -r 0...3 variety of file(s) to find
0->mapped block or char special(def)
1->mapped sysfs path
2->matching block or char special
3->matching sysfs path
--symlink | -s symlinks to special included in result
--verbose | -v increase verbosity of output
--version | -V print version string and exit
Maps SCSI device node to corresponding generic node (and vv)