aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-07-29 15:09:18 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-07-29 15:09:18 +0000
commit640f7a7eff809159d9ac4c3ffc3681a6a5c3bede (patch)
treeb889f3d3a995b9ed8eed68a3bd83c75a484df174 /doc
parentaac31a343f55c0b40b7d46ba453201fff3430acb (diff)
downloadsg3_utils-640f7a7eff809159d9ac4c3ffc3681a6a5c3bede.tar.gz
cleanup warning and C++20 building issues
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@963 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'doc')
-rw-r--r--doc/sg_inq.813
-rw-r--r--doc/sg_vpd.88
2 files changed, 8 insertions, 13 deletions
diff --git a/doc/sg_inq.8 b/doc/sg_inq.8
index a7b4ef9f..0f02d2a3 100644
--- a/doc/sg_inq.8
+++ b/doc/sg_inq.8
@@ -39,8 +39,11 @@ options.
An important "non\-standard" INQUIRY page is the Device Identification
Vital Product Data (VPD) page [0x83]. Since SPC\-3, support for this page
is mandatory. The \fI\-\-id\fR option decodes this page. New VPD page
-information is no longer being added to this utility. To get information
-on new VPD pages see the sg_vpd(8) or sdparm(8) utilities.
+information is no longer being added to this utility. The sg_vpd(8) utility
+is specialized for decoding VPD pages and shares code with this utility for
+that purpose. The sdparm(8) utility which is in a package of that name also
+decodes VPD pages although its major purpose is to access and modify SCSI
+mode pages.
.PP
In Linux, if the \fIDEVICE\fR exists and the SCSI INQUIRY fails (e.g. because
the SG_IO ioctl is not supported) then an ATA IDENTIFY (PACKET) DEVICE is
@@ -239,8 +242,7 @@ print out version string then exit.
set the Enable Vital Product Data (EVPD) bit (defaults to clear(0)). Used in
conjunction with the \fI\-\-page=PG\fR option where \fIPG\fR specifies the
VPD page number to query. If the \fI\-\-page=PG\fR is not given then \fIPG\fR
-defaults to zero which is the "Supported VPD pages" VPD page. A more up to
-date decoding of VPD pages can be found in the sg_vpd(8) utility.
+defaults to zero which is the "Supported VPD pages" VPD page.
.SH NOTES
Some devices with weak SCSI command set implementations lock up when they
receive commands they don't understand (and some lock up if they receive
@@ -335,8 +337,7 @@ get the controller's Identify decoded use the \fI\-\-only\fR option.
.PP
It is possible that even though the \fIDEVICE\fR presents as a NVMe device,
it has a SNTL and accepts SCSI commands. In this case to send a SCSI INQUIRY
-command (and fetch its VPD pages) use 'sg_vpd \-p sinq <dev>' (or to get VPD
-pages: 'sg_vpd \-p <vpd_page> <dev>').
+command (and fetch its VPD pages) use the sg_vpd(8) utility.
.SH EXIT STATUS
The exit status of sg_inq is 0 when it is successful. Otherwise see
the sg3_utils(8) man page.
diff --git a/doc/sg_vpd.8 b/doc/sg_vpd.8
index 842114ea..7f681604 100644
--- a/doc/sg_vpd.8
+++ b/doc/sg_vpd.8
@@ -136,7 +136,7 @@ command is sent with a larger value in the cdb's "allocation length" field.
If this option is given and \fILEN\fR is greater than 0 then only one INQUIRY
command is sent. Since many simple devices implement the INQUIRY command
badly (and do not support VPD pages) then the safest value to use for
-\fILEN\fR is 36. See the sg_inq man page for the more information.
+\fILEN\fR is 36. See the sg_inq(8) man page for the more information.
.TP
\fB\-p\fR, \fB\-\-page\fR=\fIPG\fR
where \fIPG\fR is the VPD page to be decoded or output. The \fIPG\fR argument
@@ -210,12 +210,6 @@ the decoding of some fields (e.g. the Extended INQUIRY page's SPT field)
is expanded when the '\-\-long' option is given using the standard INQUIRY
response information (e.g. the PDT and the PROTECT fields).
.PP
-In the 2.4 series of Linux kernels the \fIDEVICE\fR must be
-a SCSI generic (sg) device. In the 2.6 series block devices (e.g. disks
-and ATAPI DVDs) can also be specified. For example "sg_inq /dev/sda"
-will work in the 2.6 series kernels. From lk 2.6.6 other SCSI "char"
-device names may be used as well (e.g. "/dev/st0m").
-.PP
The \fIDEVICE\fR is opened with a read\-only flag (e.g. in Unix with the
O_RDONLY flag).
.SH EXIT STATUS