summaryrefslogtreecommitdiffstats
path: root/sbin
diff options
context:
space:
mode:
authorken <ken@FreeBSD.org>1998-10-03 19:15:53 +0000
committerken <ken@FreeBSD.org>1998-10-03 19:15:53 +0000
commit89a9a866fee33fc0298b68918586d7dba3f2b203 (patch)
treea879a79360cfbd9e7108cab0196dc201eb9f6360 /sbin
parentb21275d877dcaa6c1b6f22b9ba1739f3bc22cad3 (diff)
downloadFreeBSD-src-89a9a866fee33fc0298b68918586d7dba3f2b203.zip
FreeBSD-src-89a9a866fee33fc0298b68918586d7dba3f2b203.tar.gz
Add the -c flag in to the usage summaries in the man page and the usage()
function in camcontrol. Also, fix the modepage example in the examples section of the man page. It didn't quite come out right with the '.Dl' macro.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/camcontrol/camcontrol.87
-rw-r--r--sbin/camcontrol/camcontrol.c4
2 files changed, 7 insertions, 4 deletions
diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8
index 9337e72..7b3aa69 100644
--- a/sbin/camcontrol/camcontrol.8
+++ b/sbin/camcontrol/camcontrol.8
@@ -25,7 +25,7 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
-.\" $Id: camcontrol.8,v 1.4 1998/09/21 20:44:39 ken Exp $
+.\" $Id: camcontrol.8,v 1.5 1998/10/02 21:00:38 ken Exp $
.\"
.Dd September 14, 1998
.Dt CAMCONTROL 8
@@ -92,6 +92,7 @@ debug
.Op Fl I
.Op Fl T
.Op Fl S
+.Op Fl c
.Aq all|off|bus Ns Op :target Ns Op :lun
.Sh DESCRIPTION
.Nm camcontrol
@@ -370,7 +371,9 @@ not including the (reserved) 4 byte header. Print out sense information if
the command fails. Be very careful with this command, improper use may
cause data corruption.
.Pp
-.Dl camcontrol modepage -n da -u 3 -m 1 -e -P 3
+.Bd -literal -offset foobar
+camcontrol modepage -n da -u 3 -m 1 -e -P 3
+.Ed
.Pp
Edit mode page 1 (the Read-Write Error Recover page) for da3, and save the
settings on the drive. Mode page 1 contains a disk drive's auto read and
diff --git a/sbin/camcontrol/camcontrol.c b/sbin/camcontrol/camcontrol.c
index c4b5dc9..83a8300 100644
--- a/sbin/camcontrol/camcontrol.c
+++ b/sbin/camcontrol/camcontrol.c
@@ -25,7 +25,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: camcontrol.c,v 1.1 1998/09/15 06:43:02 gibbs Exp $
+ * $Id: camcontrol.c,v 1.2 1998/10/02 21:00:38 ken Exp $
*/
#include <sys/ioctl.h>
@@ -1791,7 +1791,7 @@ usage(void)
" camcontrol modepage [generic args] <-m page> [-P pagectl][-e][-d]\n"
" camcontrol cmd [generic args] <-c cmd [args]> \n"
" [-i len fmt|-o len fmt [args]]\n"
-" camcontrol debug [-I][-T][-S] <all|bus[:target[:lun]]|off>\n"
+" camcontrol debug [-I][-T][-S][-c] <all|bus[:target[:lun]]|off>\n"
"Specify one of the following options:\n"
"devlist list all CAM devices\n"
"periphlist list all CAM peripheral drivers attached to a device\n"
OpenPOWER on IntegriCloud