mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-26 19:19:32 +03:00
d02ca37979
This first phase brings over the ZFS SLM module, zfs_mod.c, to handle auto operations in response to disk events. Disk event monitoring is provided from libudev and generates the expected payload schema for zfs_mod. This work leverages the recently added devid and phys_path strings in the vdev label. Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Don Brady <don.brady@intel.com> Signed-off-by: Tony Hutter <hutter2@llnl.gov> Closes #4673
83 lines
1.7 KiB
Makefile
83 lines
1.7 KiB
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
DEFAULT_INCLUDES += \
|
|
-I$(top_srcdir)/include \
|
|
-I$(top_srcdir)/lib/libspl/include
|
|
|
|
EXTRA_DIST = zed.d/README
|
|
|
|
sbin_PROGRAMS = zed
|
|
|
|
ZED_SRC = \
|
|
zed.c \
|
|
zed.h \
|
|
zed_conf.c \
|
|
zed_conf.h \
|
|
zed_disk_event.c \
|
|
zed_disk_event.h \
|
|
zed_event.c \
|
|
zed_event.h \
|
|
zed_exec.c \
|
|
zed_exec.h \
|
|
zed_file.c \
|
|
zed_file.h \
|
|
zed_log.c \
|
|
zed_log.h \
|
|
zed_strings.c \
|
|
zed_strings.h
|
|
|
|
FMA_SRC = \
|
|
agents/zfs_agents.h \
|
|
agents/zfs_diagnosis.c \
|
|
agents/zfs_mod.c \
|
|
agents/zfs_retire.c
|
|
|
|
zed_SOURCES = $(ZED_SRC) $(FMA_SRC)
|
|
|
|
zed_LDADD = \
|
|
$(top_builddir)/lib/libavl/libavl.la \
|
|
$(top_builddir)/lib/libnvpair/libnvpair.la \
|
|
$(top_builddir)/lib/libspl/libspl.la \
|
|
$(top_builddir)/lib/libzpool/libzpool.la \
|
|
$(top_builddir)/lib/libzfs/libzfs.la \
|
|
$(top_builddir)/lib/libzfs_core/libzfs_core.la
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
dist_zedconf_DATA = \
|
|
zed.d/zed-functions.sh \
|
|
zed.d/zed.rc
|
|
|
|
zedexecdir = $(libexecdir)/zfs/zed.d
|
|
|
|
dist_zedexec_SCRIPTS = \
|
|
zed.d/all-debug.sh \
|
|
zed.d/all-syslog.sh \
|
|
zed.d/checksum-notify.sh \
|
|
zed.d/checksum-spare.sh \
|
|
zed.d/data-notify.sh \
|
|
zed.d/generic-notify.sh \
|
|
zed.d/io-notify.sh \
|
|
zed.d/io-spare.sh \
|
|
zed.d/resilver_finish-notify.sh \
|
|
zed.d/scrub_finish-notify.sh
|
|
|
|
zedconfdefaults = \
|
|
all-syslog.sh \
|
|
checksum-notify.sh \
|
|
checksum-spare.sh \
|
|
data-notify.sh \
|
|
io-notify.sh \
|
|
io-spare.sh \
|
|
resilver_finish-notify.sh \
|
|
scrub_finish-notify.sh
|
|
|
|
install-data-hook:
|
|
$(MKDIR_P) "$(DESTDIR)$(zedconfdir)"
|
|
for f in $(zedconfdefaults); do \
|
|
test -f "$(DESTDIR)$(zedconfdir)/$${f}" -o \
|
|
-L "$(DESTDIR)$(zedconfdir)/$${f}" || \
|
|
ln -s "$(zedexecdir)/$${f}" "$(DESTDIR)$(zedconfdir)"; \
|
|
done
|
|
chmod 0600 "$(DESTDIR)$(zedconfdir)/zed.rc"
|