Skip to content

Commit

Permalink
ZED/zfs-list-cacher.sh: don't exit on ignored event type
Browse files Browse the repository at this point in the history
The zfs-list-cacher.sh script currently respects the event types
excluded from syslog(!) in ZED_SYSLOG_SUBCLASS_EXCLUDE.
This makes little sense on this single-purpose script and
silently breaks when history_event are excluded from syslog,
which is the default since 7d52b4e.

Closes openzfs#11164

Signed-off-by: InsanePrawn <insane.prawny@gmail.com>
  • Loading branch information
InsanePrawn committed Dec 16, 2020
1 parent d2ae7fd commit 9d017a9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion cmd/zed/zed.d/history_event-zfs-list-cacher.sh.in
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ 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
zed_check_cmd "${ZFS}" sort diff grep

# If we are acting on a snapshot, we have nothing to do
Expand Down

0 comments on commit 9d017a9

Please sign in to comment.