ARC: Cache arc_c value during arc_evict()
[zfs.git] / cmd / zed / zed.d / all-debug.sh
blob9794cf26ce76a99504b8c7ed7f567ab813f3d8cd
1 #!/bin/sh
2 # shellcheck disable=SC2154
4 # Log all environment variables to ZED_DEBUG_LOG.
6 # This can be a useful aid when developing/debugging ZEDLETs since it shows the
7 # environment variables defined for each zevent.
9 [ -f "${ZED_ZEDLET_DIR}/zed.rc" ] && . "${ZED_ZEDLET_DIR}/zed.rc"
10 . "${ZED_ZEDLET_DIR}/zed-functions.sh"
12 : "${ZED_DEBUG_LOG:="${TMPDIR:="/tmp"}/zed.debug.log"}"
14 zed_exit_if_ignoring_this_event
16 zed_lock "${ZED_DEBUG_LOG}"
18 env | sort
19 echo
20 } 1>&"${ZED_FLOCK_FD}"
21 zed_unlock "${ZED_DEBUG_LOG}"
23 exit 0