Date: Sun, 21 May 2000 16:57:52 -0700 (PDT) From: Kenneth Merry <ken@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libcam Makefile src/sbin/camcontrol camcontrol.8 camcontrol.c src/sys/cam/scsi scsi_da.c scsi_da.h Message-ID: <200005212357.QAA40100@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
ken 2000/05/21 16:57:52 PDT
Modified files:
lib/libcam Makefile
sbin/camcontrol camcontrol.8 camcontrol.c
sys/cam/scsi scsi_da.c scsi_da.h
Log:
Implement a new camcontrol function, 'camcontrol format'.
libcam/Makefile: Add scsi_da.c to libcam for the new
scsi_format_unit() function.
camcontrol.8: Update the man page for the new format
functionality, and take out the examples section
describing how to do it with 'camcontrol cmd'.
camcontrol.c: New format functionality. Note that unlike the
rest of the camcontrol subcommands, this one is
interactive by default. Because of the potential
destructiveness of the format command, I thought
it necessary to get confirmation from the user
before spamming a disk. You can disable the
interactive behavior, and the status meter with
command line arguments.
scsi_da.c: Add the new scsi_format_unit() cdb building
function and use #ifdef _KERNEL to make this file
compile in both the kernel and userland. The
format unit function is currently only defined in
the non-kernel case, because nothing in the kernel
is using it. If that changes, it should be
un-ifdefed and compiled in both cases.
scsi_da.h: New function declaration, CDB structure and format
data structures.
Thanks to Nick Hibma for providing some valuable input on these changes.
Revision Changes Path
1.7 +2 -2 src/lib/libcam/Makefile
1.21 +75 -31 src/sbin/camcontrol/camcontrol.8
1.23 +320 -2 src/sbin/camcontrol/camcontrol.c
1.49 +52 -1 src/sys/cam/scsi/scsi_da.c
1.5 +64 -1 src/sys/cam/scsi/scsi_da.h
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200005212357.QAA40100>
