]> granicus.if.org Git - zfs/commit
Enclosure LED fixes
authorTony Hutter <hutter2@llnl.gov>
Sat, 11 Feb 2017 00:09:45 +0000 (16:09 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 11 Feb 2017 00:09:45 +0000 (16:09 -0800)
commitb291029e8661dfc2f03118921e854eec4e5bbb75
tree6df732938171565a0dc1a82778e28101a6511f26
parent65a736bc0df16561bac14bee6bf9a6752cf8bc39
Enclosure LED fixes

- Pass $VDEV_ENC_SYSFS_PATH to 'zpool [iostat|status] -c' to include
  enclosure LED sysfs path.

- Set LEDs correctly after import.  This includes clearing any erroniously
  set LEDs prior to the import, and setting the LED for any UNAVAIL drives.

- Include symlink for vdev_attach-led.sh in Makefile.am.

- Print the VDEV path in all-syslog.sh, and fix it so the pool GUID actually
  prints.

Reviewed-by: Don Brady <don.brady@intel.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #5716
Closes #5751
cmd/zed/Makefile.am
cmd/zed/zed.d/all-syslog.sh
cmd/zed/zed.d/pool_import-led.sh [new symlink]
cmd/zed/zed.d/statechange-led.sh
cmd/zed/zed.d/zed-functions.sh
cmd/zpool/zpool_iter.c
cmd/zpool/zpool_util.h
man/man8/zpool.8