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.
This commit is contained in:
Kenneth D. Merry 1998-10-03 19:15:53 +00:00
parent a2a87ebc0b
commit 94d09127cb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=39932
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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"