Add trim_finish notify script for ZED

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
This commit is contained in:
Kevin P. Fleming
2020-06-24 19:57:13 -04:00
committed by GitHub
parent 9192f27c1d
commit f21de6883f
2 changed files with 39 additions and 1 deletions
+2 -1
View File
@@ -24,7 +24,8 @@ dist_zedexec_SCRIPTS = \
vdev_clear-led.sh \
vdev_attach-led.sh \
pool_import-led.sh \
resilver_finish-start-scrub.sh
resilver_finish-start-scrub.sh \
trim_finish-notify.sh
nodist_zedexec_SCRIPTS = history_event-zfs-list-cacher.sh