d6e8bd4cd5
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.
41 lines
973 B
Makefile
41 lines
973 B
Makefile
# $FreeBSD$
|
|
|
|
MAINTAINER=ken@FreeBSD.ORG
|
|
|
|
LIB= cam
|
|
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
|
|
|
|
|
|
MLINKS+=cam.3 cam_open_device.3 \
|
|
cam.3 cam_open_spec_device.3 \
|
|
cam.3 cam_open_btl.3 \
|
|
cam.3 cam_open_pass.3 \
|
|
cam.3 cam_close_device.3 \
|
|
cam.3 cam_close_spec_device.3 \
|
|
cam.3 cam_getccb.3 \
|
|
cam.3 cam_send_ccb.3 \
|
|
cam.3 cam_freeccb.3 \
|
|
cam.3 cam_path_string.3 \
|
|
cam.3 cam_device_dup.3 \
|
|
cam.3 cam_device_copy.3 \
|
|
cam.3 cam_get_device.3 \
|
|
cam_cdbparse.3 csio_build.3 \
|
|
cam_cdbparse.3 csio_build_visit.3 \
|
|
cam_cdbparse.3 csio_decode.3 \
|
|
cam_cdbparse.3 csio_decode_visit.3 \
|
|
cam_cdbparse.3 buff_decode.3 \
|
|
cam_cdbparse.3 buff_decode_visit.3 \
|
|
cam_cdbparse.3 csio_encode.3 \
|
|
cam_cdbparse.3 csio_encode_visit.3 \
|
|
cam_cdbparse.3 buff_encode_visit.3
|
|
|
|
.PATH: ${.CURDIR}/../../sys/cam/scsi ${.CURDIR}/../../sys/cam
|
|
|
|
SDIR= ${.CURDIR}/../../sys
|
|
CFLAGS+=-I${.CURDIR} -I${SDIR}
|
|
|
|
.include <bsd.lib.mk>
|