diff options
author | Douglas Gilbert <dgilbert@interlog.com> | 2017-10-09 23:49:50 +0000 |
---|---|---|
committer | Douglas Gilbert <dgilbert@interlog.com> | 2017-10-09 23:49:50 +0000 |
commit | b2e59f46a39f19ffc18be02fad71df68974a8d0b (patch) | |
tree | 83b037b8108830c5f04d93fa50d19bbda5fb6ea1 /doc/sg_modes.8 | |
parent | dc469cf010ce1c840d6a1790cc4179ea0f5912dd (diff) | |
download | sg3_utils-b2e59f46a39f19ffc18be02fad71df68974a8d0b.tar.gz |
convert lots of two valued 'int's to bool; add sg_ll_inquiry_v2() sg_ll_write_buffer_v2() sg_get_sfs_name() and sg_decode_transportid_str()
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@719 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'doc/sg_modes.8')
-rw-r--r-- | doc/sg_modes.8 | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/doc/sg_modes.8 b/doc/sg_modes.8 index 2db42be6..1476a6d2 100644 --- a/doc/sg_modes.8 +++ b/doc/sg_modes.8 @@ -1,4 +1,4 @@ -.TH SG_MODES "8" "January 2015" "sg3_utils\-1.41" SG3_UTILS +.TH SG_MODES "8" "October 2017" "sg3_utils\-1.43" SG3_UTILS .SH NAME sg_modes \- reads mode pages with SCSI MODE SENSE command .SH SYNOPSIS @@ -6,14 +6,14 @@ sg_modes \- reads mode pages with SCSI MODE SENSE command [\fI\-\-all\fR] [\fI\-\-control=PC\fR] [\fI\-\-dbd\fR] [\fI\-\-dbout\fR] [\fI\-\-examine\fR] [\fI\-\-flexible\fR] [\fI\-\-help\fR] [\fI\-\-hex\fR] [\fI\-\-list\fR] [\fI\-\-llbaa\fR] [\fI\-\-maxlen=LEN\fR] -[\fI\-\-page=PG[,SPG]\fR] [\fI\-\-raw\fR] [\fI\-R\fR] [\fI\-\-six\fR] -[\fI\-\-verbose\fR] [\fI\-\-version\fR] [\fIDEVICE\fR] +[\fI\-\-page=PG[,SPG]\fR] [\fI\-\-raw\fR] [\fI\-R\fR] [\fI\-\-readwrite\fR] +[\fI\-\-six\fR] [\fI\-\-verbose\fR] [\fI\-\-version\fR] [\fIDEVICE\fR] .PP .B sg_modes [\fI\-6\fR] [\fI\-a\fR] [\fI\-A\fR] [\fI\-c=PC\fR] [\fI\-d\fR] [\fI\-D\fR] [\fI\-e\fR] [\fI\-f\fR] [\fI\-h\fR] [\fI\-H\fR] [\fI\-l\fR] [\fI\-L\fR] [\fI\-m=LEN\fR] [\fI\-p=PG[,SPG]\fR] [\fI\-r\fR] [\fI\-subp=SPG\fR] -[\fI\-v\fR] [\fI\-V\fR] [\fI\-?\fR] [\fIDEVICE\fR] +[\fI\-v\fR] [\fI\-V\fR] [\fI\-w\fR] [\fI\-?\fR] [\fIDEVICE\fR] .SH DESCRIPTION .\" Add any additional description here .PP @@ -157,6 +157,10 @@ output the selected mode page to stdout a byte per line. Each line contains two hexadecimal digits (e.g. "3e"). Useful as input (after editing) to the sg_wr_mode(8) utility. .TP +\fB\-w\fR, \fB\-\-readwrite\fR +open \fIDEVICE\fR in "read\-write" mode. Default is to open it in read\-only +mode. +.TP \fB\-6\fR, \fB\-\-six\fR by default this utility sends a 10 byte MODE SENSE command to the \fIDEVICE\fR. However some SCSI devices only support 6 byte MODE SENSE @@ -177,8 +181,9 @@ type of the device (e.g. 0 \-> Direct Access Device (disk)) prior to sending a MODE SENSE command. This helps in decoding the block descriptor and mode pages. .PP -This utility opens \fIDEVICE\fR with a read\-only flag (e.g. in Unix with -the O_RDONLY flag). +This utility opens \fIDEVICE\fR in read\-only mode (e.g. in Unix, with +the O_RDONLY flag) by default. It will open \fIDEVICE\fR in read\-write +mode if the \fI\-\-readwrite\fR option is given. .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. SCSI disks @@ -267,6 +272,9 @@ increase verbosity of output. \fB\-V\fR print out version string then exit. .TP +\fB\-w\fR +see \fB\-\-readwrite\fR in the main description. +.TP \fB\-?\fR output usage message then exit. Ignore all other parameters. .SH AUTHOR @@ -274,7 +282,7 @@ Written by Douglas Gilbert .SH "REPORTING BUGS" Report bugs to <dgilbert at interlog dot com>. .SH COPYRIGHT -Copyright \(co 2000\-2015 Douglas Gilbert +Copyright \(co 2000\-2017 Douglas Gilbert .br This software is distributed under the GPL version 2. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |