diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2014-02-18 05:40:02 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2014-02-18 05:40:02 +0000 |
commit | 64583176e57abbf45609d7432375771fbc769131 (patch) | |
tree | 448a4c52f89e77bc66a000ca583ed64e206dc4d8 /doc/sg_inq.8 | |
parent | 9adb91bca282072323320f64e737d42c53c5b4e7 (diff) | |
download | sg3_utils-64583176e57abbf45609d7432375771fbc769131.tar.gz |
sg_inq: allow --page=-1 to force std INQUIRY decoding
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@555 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'doc/sg_inq.8')
-rw-r--r-- | doc/sg_inq.8 | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/doc/sg_inq.8 b/doc/sg_inq.8 index 4c759523..c5ad6a1a 100644 --- a/doc/sg_inq.8 +++ b/doc/sg_inq.8 @@ -135,10 +135,12 @@ prints the device identification VPD page [0x83]. \fB\-I\fR, \fB\-\-inhex\fR=\fIFN\fR \fIFN\fR is expected to be a file name (or '\-' for stdin) which contains ASCII hexadecimal respresenting an INQUIRY (including VPD page) response. -This utility will then decode that response. The hexadecimal should be -arranged as 1 or 2 digits representing a byte each of which is whitespace -or comma separated. Anything from and including a hash mark to the end -of line is ignored. +This utility will then decode that response. It is preferable to also +supply the \fI\-\-page=PG\fR option, if not this utulity will attempt +to guess which VPD page (or standard INQUIRY) the response is associated +with. The hexadecimal should be arranged as 1 or 2 digits representing a +byte each of which is whitespace or comma separated. Anything from and +including a hash mark to the end of line is ignored. .TP \fB\-l\fR, \fB\-\-len\fR=\fILEN\fR the number \fILEN\fR is the "allocation length" field in the INQUIRY cdb. @@ -163,6 +165,10 @@ page. To enumerate the available abbreviations for VPD pages use '\-hh' or a bad abbreviation (e.g, '\-\-page=xxx'). When the \fI\-\-cmddt\fR option is given (once) then \fIPG\fR is interpreted as an opcode number (so VPD page abbreviations make little sense). +.br +If \fIPG\fR is a negative number, then a standard INQUIRY is performed. This +can be used to override some guessing logic associated with the +\fI\-\-inhex=FN\fR option. .TP \fB\-r\fR, \fB\-\-raw\fR output the response in binary to stdout. Error messages and warnings, if |