aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorDon Brady <[email protected]>2016-08-31 15:46:58 -0600
committerBrian Behlendorf <[email protected]>2016-09-01 11:39:45 -0700
commitd02ca379795a37b8541da5a1b37528f7130de1e6 (patch)
tree67167cfd23f15abeccefe553400bf37dd1032399 /scripts
parent0b284702b75aa712a7d1353b93e19d5b2c783f27 (diff)
Bring over illumos ZFS FMA logic -- phase 1
This first phase brings over the ZFS SLM module, zfs_mod.c, to handle auto operations in response to disk events. Disk event monitoring is provided from libudev and generates the expected payload schema for zfs_mod. This work leverages the recently added devid and phys_path strings in the vdev label. Signed-off-by: Brian Behlendorf <[email protected]> Signed-off-by: Don Brady <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #4673
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/zconfig.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/zconfig.sh b/scripts/zconfig.sh
index c2b97c2c5..45b66447f 100755
--- a/scripts/zconfig.sh
+++ b/scripts/zconfig.sh
@@ -579,10 +579,10 @@ test_9() {
${ZFS} create -V 300M ${FULL_NAME} || fail 3
udev_trigger
- # Dump the events, there should be at least 5 lines.
+ # Dump the events, there should be a pool create event
${ZPOOL} events >${TMP_EVENTS} || fail 4
- EVENTS=`wc -l ${TMP_EVENTS} | cut -f1 -d' '`
- [ $EVENTS -lt 5 ] && fail 5
+ MATCHES=`grep -c sysevent\.fs\.zfs\.pool_create ${TMP_EVENTS}`
+ [ $MATCHES -eq 1 ] || fail 5
# Clear the events and ensure there are none.
${ZPOOL} events -c >/dev/null || fail 6