diff options
author | Prawn <[email protected]> | 2020-12-18 18:34:10 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2020-12-18 09:34:10 -0800 |
commit | 77f09e29322817d69cc58a5442fe94ca104b91cd (patch) | |
tree | 531c2e8624b9fa0237d22ca6f06ea926a0b05b49 /cmd | |
parent | 1c2358c12a673759845f70c57dade601cc12ed99 (diff) |
ZED/zfs-list-cacher.sh: don't exit on ignored event type
Check for the history_event type instead.
The zfs-list-cacher.sh script currently respects the event types
excluded from syslog(!) in ZED_SYSLOG_SUBCLASS_EXCLUDE.
This makes little sense in this single-purpose script and
silently breaks when history_events are excluded from syslog,
which is the default since 13d65987a9d9958de77422f5d9d25b47e486537d.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: InsanePrawn <[email protected]>
Closes #11164
Closes #11347
Diffstat (limited to 'cmd')
-rwxr-xr-x | cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in b/cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in index 053b4414a..bf5a121f6 100755 --- a/cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in +++ b/cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in @@ -13,7 +13,7 @@ FSLIST="${FSLIST_DIR}/${ZEVENT_POOL}" [ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc" . "${ZED_ZEDLET_DIR}/zed-functions.sh" -zed_exit_if_ignoring_this_event +[ "$ZEVENT_SUBCLASS" != "history_event" ] && exit 0 zed_check_cmd "${ZFS}" sort diff grep # If we are acting on a snapshot, we have nothing to do |