Skip to content

Commit 6e83474

Browse files
committed
sg_ses: cleanups + output primary enc log id; manpages + spelling
git-svn-id: svn://localhost/trunk@431 6180dd3e-e324-4e3e-922d-17de1ae2f315
1 parent 77ae434 commit 6e83474

24 files changed

+240
-170
lines changed

ChangeLog

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Each utility has its own version number, date of last change and
22
some description at the top of its ".c" file. All utilities in the main
33
directory have their own "man" pages. There is also a sg3_utils man page.
44

5-
Changelog for sg3_utils-1.33 [20111211] [svn: r430]
5+
Changelog for sg3_utils-1.33 [20111216] [svn: r431]
66
- win: change DataBufferOffset type per MSDN; caused
77
problem with 64 bit machines (buffered interface)
88
- sg_inq, sg_vpd: sync with spc4r33

README

+5-5
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ For example the sg_inq utility issues a SCSI INQUIRY command and decodes the
2020
response. The COVERAGE file has a table containing a row for each SCSI
2121
command issued by this package; to the right of each row is the utility
2222
(sometimes more than one) that issue that SCSI command. The COVERAGE file
23-
has a second table for ATA commands issude.
23+
has a second table for ATA commands usage.
2424

2525
Some utilities interface at a slightly higher level, for example: sg_dd,
2626
sgm_dd and sgp_dd. These are closely related to the Unix dd command and
@@ -59,7 +59,7 @@ series.
5959
In sg3_utils version 1.27 support has been added for the Linux bsg driver
6060
which use the sg version 4 interface. There seems no point in renaming
6161
this package sg4_utils. The existing utilities just silently support either.
62-
Cuurently the source build must be able to see the /usr/include/linux/bsg.h
62+
Currently the source build must be able to see the /usr/include/linux/bsg.h
6363
file. Then at run time the /proc/devices pseudo file needs to have an entry
6464
for the bsg driver (appeared around lk 2.6.28). With this in place each
6565
utility at run time checks the device it has been given and if it is a char
@@ -124,7 +124,7 @@ scsi tape driver (st) in lk 2.6.6 .
124124

125125
In the src directory the bulk of the utilities are written in relatively
126126
clean POSIX compliant C code with Linux specific system calls and structures
127-
removed and placed in linux specific files in the lib directory. A small
127+
removed and placed in Linux specific files in the lib directory. A small
128128
number of utilities in the src directory do contain Linux specific logic
129129
and are not ported to other OSes (e.g. sg_dd). One utility, sg_scan, has
130130
two separate implementations, one for Linux (sg_scan.c.linux) and one for
@@ -163,7 +163,7 @@ calls over OS specific calls.
163163
In Linux there are package build files for "rpm" based and for "deb" based
164164
systems. The 'sg3_utils.spec' file in the main directory can be used like
165165
this: 'rpmbuild -ba sg3_utils.spec' in a rpmbuild tree SPECS directory.
166-
To cross build or make a more widely distibutable package then the --target
166+
To cross build or make a more widely distributable package then the --target
167167
option may be useful: 'rpmbuild --target=i386 -ba sg3_utils.spec' .
168168

169169
The 'build_debian.sh' script should build several "deb" packages and place
@@ -255,7 +255,7 @@ checks it against the asc/ascq text strings held in sg_lib_data.c .
255255
The 'doc' subdirectory contains a README file containing the urls of
256256
various related documents.
257257

258-
The 'scripts' subdirectory contains some bourne (bash) shell scripts that
258+
The 'scripts' subdirectory contains some Bourne (bash) shell scripts that
259259
rely on utilities in the main directory. One script uses the sdparm utility.
260260
These scripts are described in the scripts/README file and have usage
261261
messages.

README.freebsd

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ similar functionality; for example 'sg_map' is similar to
66
'camcontrol devlist'.
77

88
The dd variants from the sg3_utils package (e.g. sg_dd) rely on too many
9-
Linux idiosyncracies to be easily ported. A new package called 'ddpt'
9+
Linux idiosyncrasies to be easily ported. A new package called 'ddpt'
1010
contains a utility with similar functionality to sg_dd and ddpt is available
1111
for FreeBSD.
1212

@@ -70,7 +70,7 @@ the tarball and installed with the familiar
7070
running the "./autogen.sh" script prior to that sequence. There
7171
are generic instruction on configure and friend in the INSTALL file.
7272

73-
Some man pages have examples which use linux device names which
73+
Some man pages have examples which use Linux device names which
7474
hopefully will not confuse the FreeBSD users.
7575

7676
Device naming

README.iscsi

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
iSCSI support for sg3-utils is available from external patches.
22

33
To build sg3-utils from sources and activate built-in iSCSI support
4-
you need both sg3-utils and the external userspace iSCSI library hosted at :
4+
you need both sg3-utils and the external user-space iSCSI library hosted at :
55

66
https://github.com/sahlberg/libiscsi
77

README.sg_start

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ you can use sg_start to start (spin-up, 1) and stop (spin-down, 0) devices.
44
I also offers a parameter (-s) to send a synchronize cache command to a
55
device, so it should write back its internal buffers to the medium.
66

7-
Be aware that the Linux SCSI subsystem at this time does not autmatically
7+
Be aware that the Linux SCSI subsystem at this time does not automatically
88
starts stopped devices, so stopping a device which is in use may have fatal
99
results for you.
1010

README.solaris

+3-3
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ The Solaris port of sg3_utils contains those utilities that are
44
_not_ specific to Linux.
55

66
The dd variants from the sg3_utils package (e.g. sg_dd) rely on too many
7-
Linux idiosyncracies to be easily ported. A new package called 'ddpt'
7+
Linux idiosyncrasies to be easily ported. A new package called 'ddpt'
88
contains a utility with similar functionality to sg_dd and is available
99
for Solaris.
1010

@@ -68,7 +68,7 @@ the tarball and installed with the familiar
6868
running the "./autogen.sh" script prior to that sequence. There
6969
are generic instruction on configure and friend in the INSTALL file.
7070

71-
Some man pages have examples which use linux device names which
71+
Some man pages have examples which use Linux device names which
7272
hopefully will not confuse the Solaris users.
7373

7474
Device naming
@@ -90,7 +90,7 @@ disk. So a whole disk may be referred to as either:
9090
And these device names are duplicated in the /dev/dsk and /dev/rdsk
9191
directories. The former is the block device name and the latter
9292
is for "raw" (or char device) access which is what sg3_utils needs.
93-
So in openSolaris something of the form:
93+
So in OpenSolaris something of the form:
9494
sg_inq /dev/rdsk/c5t4d3p0
9595
should work. If it doesn't add a '-vvv' option. If that is attempted
9696
on the /dev/dsk/c5t4d3p0 variant an inappropriate ioctl for device

README.tru64

+1-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ This package uses autotools infrastructure with the now common
6363
from the source found in the tarball. If the "./configure" sequence
6464
fails try using the ./autogen.sh prior to that sequence.
6565

66-
Some man pages have examples which use linux device names which hopefully
66+
Some man pages have examples which use Linux device names which hopefully
6767
will not confuse Tru64 users.
6868

6969

README.win32

+4-4
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ to Linux. One utility for listing available devices, sg_scan, has a
55
Windows-specific version for this port.
66

77
The dd variants from the sg3_utils package (e.g. sg_dd) rely on too many
8-
Linux idiosyncracies to be easily ported. A new package called 'ddpt'
8+
Linux idiosyncrasies to be easily ported. A new package called 'ddpt'
99
contains a utility with similar functionality to sg_dd and is available
1010
for Windows.
1111

12-
Two build environments are caterered for: cygwin (see www.cygwin.com) and
12+
Two build environments are catered for: cygwin (see www.cygwin.com) and
1313
MinGW ("Minimalist GNU for Windows", see www.mingw.org). Both are based in
1414
the gcc compiler (although other C compilers should have little problem with
1515
the source code). Cygwin is a more sophisticated, commercial product that
@@ -75,7 +75,7 @@ file. An overview of sg3_utils can be found at:
7575
http://sg.danny.cz/sg/sg3_utils.html .
7676
A copy of the "sg3_utils.html" file is in the "doc" subdirectory.
7777

78-
Some man pages have examples which use linux device names which hopefully
78+
Some man pages have examples which use Linux device names which hopefully
7979
will not confuse Windows users.
8080

8181
Two pass-through variants
@@ -105,7 +105,7 @@ rather than:
105105
./configure
106106
prior to the 'make' call.
107107

108-
In sg3_utils version 1.31 runtime selection of the direct or indirect
108+
In sg3_utils version 1.31 run-time selection of the direct or indirect
109109
interface was added with the scsi_pt_win32_direct(int state_direct)
110110
function declared in sg_pt.h. The default is indirect unless
111111
'./configure --enable-win32-spt-direct' was used in the build. If

doc/scsi_logging_level.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ scsi_logging_level \- access Linux SCSI logging level information
1212
.SH DESCRIPTION
1313
.\" Add any additional description here
1414
.PP
15-
This bourne shell script accesses the Linux SCSI subsystem logging
15+
This Bourne shell script accesses the Linux SCSI subsystem logging
1616
level. The current values can be shown (e.g. with \fI\-\-get\fR)
1717
or changed (e.g. with \fI\-\-set\fR). Superuser permissions will
1818
typically be required to set the logging level.

doc/scsi_mandat.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_mandat \- check SCSI device support for mandatory commands
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls several SCSI commands on the given
11+
This Bourne shell script calls several SCSI commands on the given
1212
\fIDEVICE\fR. These SCSI commands are considered mandatory (although
1313
that varies a little depending on which standard/draft the \fIDEVICE\fR
1414
complies with). The results of each test and a pass/fail count are

doc/scsi_readcap.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_readcap \- do SCSI READ CAPACITY command on disks
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls the sg_readcap utility on each given
11+
This Bourne shell script calls the sg_readcap utility on each given
1212
\fIDEVICE\fR. This will send a SCSI READ CAPACITY command to each
1313
\fIDEVICE\fR.
1414
.PP

doc/scsi_ready.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_ready \- do SCSI TEST UNIT READY on devices
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls the sg_turs utility on each given
11+
This Bourne shell script calls the sg_turs utility on each given
1212
\fIDEVICE\fR. This will send a SCSI TEST UNIT READY command to each
1313
\fIDEVICE\fR. Disks, tape drives and DVD/BD players amongst others
1414
may respond to this SCSI command.

doc/scsi_satl.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_satl \- check SCSI to ATA Translation (SAT) device support
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls several SCSI commands on the given
11+
This Bourne shell script calls several SCSI commands on the given
1212
\fIDEVICE\fR that is assumed to be an ATA device behind a SCSI
1313
to ATA Translation (SAT) layer (SATL). The results of each test
1414
and a pass/fail count are output.

doc/scsi_start.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_start \- start one or more SCSI disks
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls the sg_start utility on each given
11+
This Bourne shell script calls the sg_start utility on each given
1212
\fIDEVICE\fR. The purpose is to spin up (start) each given \fIDEVICE\fR.
1313
.SH OPTIONS
1414
Arguments to long options are mandatory for short options as well.

doc/scsi_stop.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_stop \- stop (spin down) one or more SCSI disks
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls the sg_start utility on each given
11+
This Bourne shell script calls the sg_start utility on each given
1212
\fIDEVICE\fR. The purpose is to spin down (stop) each given \fIDEVICE\fR.
1313
.SH OPTIONS
1414
Arguments to long options are mandatory for short options as well.

doc/scsi_temperature.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ scsi_temperature \- fetch the temperature of a SCSI device
88
.SH DESCRIPTION
99
.\" Add any additional description here
1010
.PP
11-
This bourne shell script calls the sg_logs utility on each given
11+
This Bourne shell script calls the sg_logs utility on each given
1212
\fIDEVICE\fR in order to find the device's temperature. The Temperature
1313
log page is checked first and if it is not available then the Informational
1414
Exceptions log page is checked.

doc/sg3_utils.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ trailing "h" or "H" as found in (storage) standards. When hex numbers are
366366
given, multipliers cannot be used. For example the decimal value "256" can
367367
be given as "0x100" or "100h".
368368
.SH SCRIPTS, EXAMPLES and UTILS
369-
There are several bourne shell scripts in the 'scripts' subdirectory that
369+
There are several Bourne shell scripts in the 'scripts' subdirectory that
370370
invoke compiled utilities (e.g. sg_readcap). The scripts start with 'scsi_'
371371
rather than 'sg_'. One purpose of these scripts is to call the same
372372
utility (e.g. sg_readcap) on multiple disks. Most of the basic compiled

doc/sg_logs.8

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ LOG SELECT command. At the same time a page code field was introduced to the
3030
to the LOG SELECT command. The log subpage code can range from 0 to 255 (0xff)
3131
inclusive. The subpage code value 255 can be thought of as a wildcard.
3232
.PP
33-
This utility supports two command line syntaxes, the preferred one is shown
33+
This utility supports two command line surtaxes, the preferred one is shown
3434
first in the synopsis and explained in this section. A later section on the
3535
old command line syntax outlines the second group of options.
3636
.SH OPTIONS

doc/sg_senddiag.8

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ the page numbers of supported diagnostic pages).
2626
When the \fI\-\-list\fR option is given without a \fIDEVICE\fR then a list of
2727
diagnostic page names and their numbers, known by this utility, are listed.
2828
.PP
29-
This utility supports two command line syntaxes, the preferred one is
29+
This utility supports two command line syntax\-es, the preferred one is
3030
shown first in the synopsis and explained in this section. A later section
3131
on the old command line syntax outlines the second group of options.
3232
.SH OPTIONS
@@ -235,7 +235,7 @@ print out version string then exit.
235235
\fB\-?\fR
236236
output usage message. Ignore all other parameters.
237237
.SH EXAMPLES
238-
The examples subdirectory in the sg3_utils packages contains two example
238+
The examples sub\-directory in the sg3_utils packages contains two example
239239
scripts that turn on the CJTPAT (jitter pattern) on some SAS disks (one
240240
script for each phy). One possible invocation for phy 1 is:
241241
.PP

0 commit comments

Comments
 (0)