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). Users may
find the lsscsi utility more convenient as it doesn't need root
permissions.
Options (7)
| Option | Description | Source |
|---|
--dev_dir, -d DIR | where DIR is the directory to search for resultant device special files in (or symlinks to same). | help + man |
--given_is, -g 0..1 | specifies the DEVICE is either a device special file (when the argument is 0), or a sysfs 'dev' file (when the argument is 1). | help + man |
--help, -h | output the usage message then exit. | help + man |
--result, -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 | help + man |
--symlink, -s | when a device special file is being sought (i.e. when '--result=0' (the default) or '--result=2') then also look for symlinks to that device special file in the same directory. | help + man |
--verbose, -v | increase the level of verbosity, (i.e. debug output). | help + man |
--version, -V | print the version string and then 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.