mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-14 22:32:30 +01:00
53cce2e744
Implement and document the new depop command. This command manages drive elements for drives that support it. Storage elements are typically heads. Element status can be discovered. Elements may be removed or restored. And the status of any current depop operation can be assessed. depop -d elm will remove element elm and truncate available capacity. depop -l will list the current drive elements and their current status. depop -r elm will try to restore all retired elements and rebuild capacity. Changing storage elements may reinitialize the drive. This operation will lose data and may take hours to complete. Use the drive provided timeout for operations by default. Reviewed by: gbe (manpages) Sponsored by: Netflix Differential Revision: https://reviews.freebsd.org/D29018
24 lines
517 B
Makefile
24 lines
517 B
Makefile
# $FreeBSD$
|
|
|
|
.include <src.opts.mk>
|
|
|
|
PACKAGE=runtime
|
|
PROG= camcontrol
|
|
SRCS= camcontrol.c util.c
|
|
SRCS+= attrib.c depop.c epc.c fwdownload.c modeedit.c persist.c progress.c timestamp.c zone.c
|
|
.if ${MK_NVME} != "no"
|
|
.PATH: ${SRCTOP}/sbin/nvmecontrol
|
|
CFLAGS+= -I${SRCTOP}/sbin/nvmecontrol -DWITH_NVME
|
|
SRCS+= identify_ext.c nc_util.c
|
|
.PATH: ${SRCTOP}/sys/dev/nvme
|
|
SRCS+= nvme_util.c
|
|
.endif
|
|
# This is verboten
|
|
.if ${MACHINE_CPUARCH} == "arm"
|
|
WARNS?= 3
|
|
.endif
|
|
LIBADD= cam sbuf util
|
|
MAN= camcontrol.8
|
|
|
|
.include <bsd.prog.mk>
|