2007-04-06 01:09:06 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2007-04-06 01:09:06 +00:00
|
|
|
|
2010-07-31 17:13:14 +00:00
|
|
|
SUBDIR= ${_dtrace} \
|
2018-03-06 23:44:19 +00:00
|
|
|
${_dwatch} \
|
2010-07-31 17:13:14 +00:00
|
|
|
${_lockstat} \
|
2014-09-23 18:22:40 +00:00
|
|
|
${_plockstat} \
|
2012-06-11 11:35:22 +00:00
|
|
|
${_zdb} \
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
${_zfsd} \
|
2012-06-11 11:35:22 +00:00
|
|
|
${_zhack}
|
2007-04-06 01:09:06 +00:00
|
|
|
|
2017-08-02 08:35:51 +00:00
|
|
|
SUBDIR.${MK_TESTS}+= tests
|
2014-04-21 21:39:25 +00:00
|
|
|
|
2007-04-16 21:20:26 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
2007-04-06 01:09:06 +00:00
|
|
|
_zdb= zdb
|
2012-06-11 11:35:22 +00:00
|
|
|
_zhack= zhack
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
. if ${MK_CXX} != "no"
|
|
|
|
_zfsd= zfsd
|
|
|
|
. endif
|
2007-10-01 18:23:24 +00:00
|
|
|
.endif
|
2007-04-06 01:09:06 +00:00
|
|
|
|
2010-08-21 14:02:04 +00:00
|
|
|
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
|
2010-07-31 17:13:14 +00:00
|
|
|
_dtrace= dtrace
|
2018-03-06 23:44:19 +00:00
|
|
|
_dwatch= dwatch
|
2010-07-31 17:13:14 +00:00
|
|
|
_lockstat= lockstat
|
2014-09-23 18:22:40 +00:00
|
|
|
_plockstat= plockstat
|
|
|
|
.endif
|
2010-07-31 17:13:14 +00:00
|
|
|
|
2016-05-24 16:41:37 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "aarch64" || ${MACHINE_CPUARCH} == "arm" || \
|
|
|
|
${MACHINE_CPUARCH} == "riscv"
|
2015-02-10 19:41:30 +00:00
|
|
|
_dtrace= dtrace
|
2018-03-06 23:44:19 +00:00
|
|
|
_dwatch= dwatch
|
2015-02-10 19:41:30 +00:00
|
|
|
_lockstat= lockstat
|
|
|
|
.endif
|
|
|
|
|
2012-03-24 05:29:07 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "mips"
|
|
|
|
_dtrace= dtrace
|
2018-03-06 23:44:19 +00:00
|
|
|
_dwatch= dwatch
|
2012-03-24 05:29:07 +00:00
|
|
|
.endif
|
|
|
|
|
2012-11-07 23:45:09 +00:00
|
|
|
.if ${MACHINE_CPUARCH} == "powerpc"
|
|
|
|
_dtrace= dtrace
|
2018-03-06 23:44:19 +00:00
|
|
|
_dwatch= dwatch
|
2012-11-07 23:45:09 +00:00
|
|
|
_lockstat= lockstat
|
|
|
|
.endif
|
|
|
|
|
2015-05-20 12:26:09 +00:00
|
|
|
SUBDIR_PARALLEL=
|
|
|
|
|
2007-04-06 01:09:06 +00:00
|
|
|
.include <bsd.subdir.mk>
|