diff options
author | ken <ken@FreeBSD.org> | 2000-05-21 23:57:52 +0000 |
---|---|---|
committer | ken <ken@FreeBSD.org> | 2000-05-21 23:57:52 +0000 |
commit | d6e8bd4cd52ff86959d2fddb73f0a8b62bebdd12 (patch) | |
tree | 5ef752b6e1d2d8af9e045236bacd3e5f4b36b8f4 /lib/libcam | |
parent | 8ad299376012b9d2b2109a369d1b3838f03dae62 (diff) | |
download | FreeBSD-src-d6e8bd4cd52ff86959d2fddb73f0a8b62bebdd12.zip FreeBSD-src-d6e8bd4cd52ff86959d2fddb73f0a8b62bebdd12.tar.gz |
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.
Diffstat (limited to 'lib/libcam')
-rw-r--r-- | lib/libcam/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcam/Makefile b/lib/libcam/Makefile index 86563b9..a662510 100644 --- a/lib/libcam/Makefile +++ b/lib/libcam/Makefile @@ -3,7 +3,7 @@ MAINTAINER=ken@FreeBSD.ORG LIB= cam -SRCS= camlib.c scsi_cmdparse.c scsi_all.c scsi_sa.c cam.c +SRCS= camlib.c scsi_cmdparse.c scsi_all.c scsi_da.c scsi_sa.c cam.c INCS= camlib.h MAN3= cam.3 cam_cdbparse.3 |