From 94d09127cb4ff69ad4536a0744ac100ef7773fba Mon Sep 17 00:00:00 2001 From: "Kenneth D. Merry" Date: Sat, 3 Oct 1998 19:15:53 +0000 Subject: [PATCH] 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. --- sbin/camcontrol/camcontrol.8 | 7 +++++-- sbin/camcontrol/camcontrol.c | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/sbin/camcontrol/camcontrol.8 b/sbin/camcontrol/camcontrol.8 index 9337e725e37..7b3aa699e74 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 c4b5dc9398c..83a830090bb 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 @@ -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] \n" +" camcontrol debug [-I][-T][-S][-c] \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"