Skip to content

Commit

Permalink
sync to upstream sdparm svn rev 370
Browse files Browse the repository at this point in the history
See ChangeLog file for pre-release sdparm-1.13 [20230312]
  • Loading branch information
doug-gilbert committed Mar 12, 2023
1 parent 4ec15fd commit 05f7fd5
Show file tree
Hide file tree
Showing 21 changed files with 3,347 additions and 2,380 deletions.
6 changes: 4 additions & 2 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ The version number is hardcoded into sdparm.c (in a C string);
the rpm spec file: sdparm.spec ; the debian/changelog file;
and the configure.ac file (in the AC_INIT item).

ChangeLog for pre-release sdparm-1.13 [20230221] [svn: r367]
ChangeLog for pre-release sdparm-1.13 [20230312] [svn: r370]
- add --json[=JO] and --js-file=JFN options
- control extension mpage: add pwromact, hrdrmact, ssumact
and fmtmact fields
Expand All @@ -12,11 +12,13 @@ ChangeLog for pre-release sdparm-1.13 [20230221] [svn: r367]
- zoned block device characteristics vpd: add Zone
alignment method and Zone starting LBA granularity
fields [zbc2r11,zbc2r12]
- add CAPPID bit in device-specific paramter field
- add --inner-hex option to take overloading from --hex
- device identification VPD page: change IEEE OUI to AOI
- act on LAST bit in App tag mpage descriptors to stop
output of further descriptors, override this
truncation with --flexible option
- point svn:externals to sg3_utils revision 1004
- point svn:externals to sg3_utils revision 1011
- autoconf: upgrade version 2.70 to 2.71; automake upgrade
to version 1.16.5
- remove the imtermediate files generated by ./autogen.sh
Expand Down
10 changes: 7 additions & 3 deletions README
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,12 @@ Build infrastructure
--------------------
This package uses the automake and autoconf tools. The generating files
(scripts) are configure.ac, Makefile.am, src/Makefile.am and autogen.sh .
The autogen.sh script only needs to be executed if one of the other generating
files in the above list is changed.
From revision 367 onwards (pre-release of version 1.13) the autogen.sh
script (or the bootstrap script which calls autogen.sh) is needed to
build the configure script (invocation: ./autogen.sh ).

Prior to revision 367 the autogen.sh script only needs to be invoked if one
of the other generating files in the above list is changed.

There is a rpm "spec" file in the main directory: sdparm.spec . There are
Debian build files in the "debian" directory and a script called
Expand Down Expand Up @@ -267,4 +271,4 @@ SCSI5:0,112,0 claimed=0 pdt=10h LSI PSEUDO DEVICE 2.34


Douglas Gilbert
16th April 2021
21th February 2023
2 changes: 1 addition & 1 deletion debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sdparm (1.13-0.1) unstable; urgency=low

* see ChangeLog

-- Douglas Gilbert <[email protected]> Mon, 20 Feb 2023 20:00:00 -0500
-- Douglas Gilbert <[email protected]> Sun, 12 Mar 2023 14:00:00 -0400

sdparm (1.12-0.1) unstable; urgency=low

Expand Down
72 changes: 55 additions & 17 deletions doc/sdparm.8
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
.TH SDPARM "8" "February 2023" "sdparm\-1.13" SDPARM
.TH SDPARM "8" "March 2023" "sdparm\-1.13" SDPARM
.SH NAME
sdparm \- access SCSI modes pages; read VPD pages; send simple SCSI commands
.SH SYNOPSIS
.B sdparm
[\fI\-\-all\fR] [\fI\-\-dbd\fR] [\fI\-\-examine\fR] [\fI\-\-flexible\fR]
[\fI\-\-get=STR\fR] [\fI\-\-hex\fR] [\fI\-\-long\fR] [\fI\-\-num\-desc\fR]
[\fI\-\-out\-mask=OM\fR] [\fI\-\-page=PG[,SPG]\fR] [\fI\-\-quiet\fR]
[\fI\-\-readonly\fR] [\fI\-\-six\fR] [\fI\-\-transport=TN\fR]
[\fI\-\-vendor=VN\fR] [\fI\-\-verbose\fR] \fIDEVICE\fR [\fIDEVICE\fR...]
[\fI\-\-get=STR\fR] [\fI\-\-hex\fR] [\fI\-\-inner\-hex\fR]
[\fI\-\-json[=JO]\fR] [\fI\-\-js\-file=JFN\fR] [\fI\-\-long\fR]
[\fI\-\-num\-desc\fR] [\fI\-\-out\-mask=OM\fR] [\fI\-\-page=PG[,SPG]\fR]
[\fI\-\-quiet\fR] [\fI\-\-readonly\fR] [\fI\-\-six\fR]
[\fI\-\-transport=TN\fR] [\fI\-\-vendor=VN\fR] [\fI\-\-verbose\fR]
\fIDEVICE\fR [\fIDEVICE\fR...]
.PP
.B sdparm
[\fI\-\-clear=STR\fR] [\fI\-\-defaults\fR] [\fI\-\-dummy\fR]
Expand All @@ -22,19 +24,21 @@ sdparm \- access SCSI modes pages; read VPD pages; send simple SCSI commands
.PP
.B sdparm
\fI\-\-inquiry\fR [\fI\-\-all\fR] [\fI\-\-examine\fR] [\fI\-\-flexible\fR]
[\fI\-\-hex\fR] [\fI\-\-num\-desc\fR] [\fI\-\-page=PG[,SPG]\fR]
[\fI\-\-quiet\fR] [\fI\-\-readonly\fR] [\fI\-\-transport=TN\fR]
[\fI\-\-verbose\fR] \fIDEVICE\fR [\fIDEVICE\fR...]
[\fI\-\-hex\fR] [\fI\-\-json[=JO]\fR] [\fI\-\-js\-file=JFN\fR]
[\fI\-\-num\-desc\fR] [\fI\-\-page=PG[,SPG]\fR] [\fI\-\-quiet\fR]
[\fI\-\-readonly\fR] [\fI\-\-transport=TN\fR] [\fI\-\-verbose\fR]
\fIDEVICE\fR [\fIDEVICE\fR...]
.PP
.B sdparm
\fI\-\-enumerate\fR [\fI\-\-all\fR] [\fI\-\-inquiry\fR] [\fI\-\-long\fR]
[\fI\-\-page=PG[,SPG]\fR] [\fI\-\-transport=TN\fR] [\fI\-\-vendor=VN\fR]
.PP
.B sdparm
\fI\-\-inhex=FN\fR [\fI\-\-all\fR] [\fI\-\-flexible\fR] [\fI\-\-hex\fR]
[\fI\-\-inquiry\fR] [\fI\-\-long\fR] [\fI\-\-pdt=DT\fR] [\fI\-\-raw\fR]
[\fI\-\-six\fR] [\fI\-\-transport=TN\fR] [\fI\-\-vendor=VN\fR]
[\fI\-\-verbose\fR]
[\fI\-\-inner\-hex\fR] [\fI\-\-inquiry\fR] [\fI\-\-json[=JO]\fR]
[\fI\-\-js\-file=JFN\fR] [\fI\-\-long\fR] [\fI\-\-out\-mask=OM\fR]
[\fI\-\-pdt=DT\fR] [\fI\-\-raw\fR] [\fI\-\-six\fR] [\fI\-\-transport=TN\fR]
[\fI\-\-vendor=VN\fR] [\fI\-\-verbose\fR]
.PP
.B sdparm
\fI\-\-wscan\fR [\fI\-\-verbose\fR]
Expand Down Expand Up @@ -231,7 +235,20 @@ bytes; with '\-HHH' outputs the same response in a format suitable
for 'hdparm \-\-Istdin' to decode.
.br
Mode page output with the '\-HHH' option is suitable for a later invocation
of sdparm with the \fI\-\-inhex=FN\fR option.
of sdparm with the \fI\-\-inhex=FN\fR option. The first entry in the hex
output is the mode parameter header and associated block descriptors. Then
for each mode page there are up to four outputs, one for each of the current,
changeable, default and saveable page controls. A subset of the available
page controls can be output by using the \fI\-\-out\-mask=OM\fR option.
.br
It is recommended that the '\-HHHHH' option (i.e. '--hex' five times) is
used since this adds a comment line above each block of hex. The comment
start with '#' and briefly describes the following hex block. This will make
it easier to debug if something goes wrong. Any line starting with '#'
is ignored in a subsequent invocation of the \fI\-\-inhex=FN\fR option.
.TP
\fB\-x\fR, \fB\-\-inner\-hex\fR
xxxxxxxxxxxxx tdb
.TP
\fB\-I\fR, \fB\-\-inhex\fR=\fIFN\fR
\fIFN\fR is expected to be a file name (or '\-' for stdin) which contains
Expand Down Expand Up @@ -265,6 +282,15 @@ output.
\fI\-\-page=sinq\fR or \fI\-\-page=\-1\fR given with this option will
output the standard INQUIRY response instead of a VPD page.
.TP
\fB\-j[JO]\fR, \fB\-\-json[=JO]\fR
See the accompanying sdparm_json(8) manpage. Note that the \fIJO\fR argument
is itself optional. The optional argument to the short form is shown here
to stress that in this case there is no space between the "j" and its
optional argument.
.TP
\fB\-J\fR, \fB\-\-js\-file\fR=\fIJFN\fR
See the accompanying sdparm_json(8) manpage.
.TP
\fB\-l\fR, \fB\-\-long\fR
output extra information. In the case of mode page fields a description (with
units if applicable) is output to the right. If used twice, then for some
Expand All @@ -280,12 +306,23 @@ response is output.
for a mode page that can have descriptors, the number of descriptors for the
given page on the \fIDEVICE\fR is output. Otherwise 0 is output.
.TP
\fB\-o\fR, \fB\-\-out\-mask\fR=\fIOM\fR
\fB\-o\fR, \fB\-\-out\-mask\fR=\fIOM[,IM]\fR
\fIOM\fR is a bit mask for mode page selections that will be printed/output.
The 0x1 value is for the 'current' values, 0x2 is for the 'changeable'
values, 0x4 is for the 'default' values and 0x8 is for the 'saveable' values.
The default value is 0xf (i.e. the OR of all four values set). The option is
useful for limiting the amount of output with the '\-HHH'.
.br
If a value is given after a comma, it is known as \fIIM\fR which can be
interpreted as the 'Inhex Mask'. When output from a previous invocation with
hex output (e.g. with '\-HHH' or more) is being parsed with the
\fI\-\-inhex=FN\fR option \fIIM\fR may be needed. If multiple entries of each
page are found, without \fIIM\fR they are assumed to be the current,
changeable, default and saveable page controls, in that order. If \fIIM\fR
is given then the pages found in \fIFN\fR are allocated to the page control
with 1 in the corresponding bit mask position in \fIIM\fR. For example, if
\fIIM\fR is 0 then no pages are selected; if \fIIM\fR is 5 then the first
page is the current and the second page is the default page control.
.TP
\fB\-p\fR, \fB\-\-page\fR=\fIPG[,SPG]\fR
supply the page number (\fIPG\fR) and optionally the sub page
Expand Down Expand Up @@ -361,9 +398,10 @@ variants are used. RBC and old SCSI devices may need this option. This
utility outputs a suggestion to use this option if the SCSI status indicates
that the 10 byte cdb variant is not supported.
.br
The SPC\-4 standard (and SPC\-5 drafts) include a note stating that
implementers migrate away from the SCSI MODE SELECT(6) and MODE SENSE(6)
commands in favour of the 10 byte variants (e.g. MODE SEMSE(10)).
The SPC\-4 and SPC\-5 standards state that implementers should migrate away
from the SCSI MODE SELECT(6) and MODE SENSE(6) commands in favour of the 10
byte variants (e.g. MODE SEMSE(10)). In draft SPC\-6 revision 7 the SCSI
MODE SELECT(6) and MODE SENSE(6) commands have been removed.
.TP
\fB\-t\fR, \fB\-\-transport\fR=\fITN\fR
Specifies the transport protocol where \fITN\fR is either a number in the
Expand Down Expand Up @@ -1006,6 +1044,6 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
There is a web page discussing this package at
https://sg.danny.cz/sg/sdparm.html .
.SH "SEE ALSO"
.B hdparm(hdparm),
.B sdparm_json(8), hdparm(hdparm),
.B sg_modes, sg_wr_mode, sginfo, sg_inq, sg_vpd(all in sg3_utils),
.B smartmontools(smartmontools.sourceforge.net), mt, eject(eject),
Loading

0 comments on commit 05f7fd5

Please sign in to comment.