mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 18:11:00 +03:00
f21de6883f
Allow users to configure notifications when TRIM operations are completed on pools. Unlike resilver_finish and scrub_finish, the trim_finish event is generated for each vdev in the pool which was trimmed, so the script will generate a notification for each one. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Kevin P. Fleming <kevin@km6g.us> Closes #10491
60 lines
1.4 KiB
Makefile
60 lines
1.4 KiB
Makefile
include $(top_srcdir)/config/Rules.am
|
|
|
|
EXTRA_DIST = \
|
|
README \
|
|
history_event-zfs-list-cacher.sh.in
|
|
|
|
zedconfdir = $(sysconfdir)/zfs/zed.d
|
|
|
|
dist_zedconf_DATA = \
|
|
zed-functions.sh \
|
|
zed.rc
|
|
|
|
zedexecdir = $(zfsexecdir)/zed.d
|
|
|
|
dist_zedexec_SCRIPTS = \
|
|
all-debug.sh \
|
|
all-syslog.sh \
|
|
data-notify.sh \
|
|
generic-notify.sh \
|
|
resilver_finish-notify.sh \
|
|
scrub_finish-notify.sh \
|
|
statechange-led.sh \
|
|
statechange-notify.sh \
|
|
vdev_clear-led.sh \
|
|
vdev_attach-led.sh \
|
|
pool_import-led.sh \
|
|
resilver_finish-start-scrub.sh \
|
|
trim_finish-notify.sh
|
|
|
|
nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh
|
|
|
|
$(nodist_zedexec_SCRIPTS): %: %.in
|
|
-$(SED) -e 's,@bindir\@,$(bindir),g' \
|
|
-e 's,@runstatedir\@,$(runstatedir),g' \
|
|
-e 's,@sbindir\@,$(sbindir),g' \
|
|
-e 's,@sysconfdir\@,$(sysconfdir),g' \
|
|
$< >'$@'
|
|
|
|
zedconfdefaults = \
|
|
all-syslog.sh \
|
|
data-notify.sh \
|
|
history_event-zfs-list-cacher.sh \
|
|
resilver_finish-notify.sh \
|
|
scrub_finish-notify.sh \
|
|
statechange-led.sh \
|
|
statechange-notify.sh \
|
|
vdev_clear-led.sh \
|
|
vdev_attach-led.sh \
|
|
pool_import-led.sh \
|
|
resilver_finish-start-scrub.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"
|