Files
mirror_zfs/module/zfs
Tony Hutter 1bbd877049 Turn on/off enclosure slot fault LED even when disk isn't present
Previously when a drive faulted, the statechange-led.sh script would lookup
the drive's LED sysfs entry in /sys/block/sd*/device/enclosure_device, and
turn it on.  During testing we noticed that if you pulled out a drive, or if
the drive was so badly broken that it no longer appeared to Linux, that the
/sys/block/sd* path would be removed, and the script could not lookup the
LED entry.

To fix this, this patch looks up the disks's more persistent
"/sys/class/enclosure/X:X:X:X/Slot N" LED sysfs path at pool import.  It then
passes that path to the statechange-led script to use, rather than having the
script look it up on the fly.  This allows the script to turn on/off the slot
LEDs even when the drive is missing.

Closes #5309 
Closes #2375
2016-10-24 10:45:59 -07:00
..
2016-10-17 12:03:52 -07:00
2014-08-01 14:28:05 -07:00
2015-01-16 14:41:26 -08:00
2016-01-08 15:08:19 -08:00
2015-01-16 14:41:26 -08:00
2016-10-21 08:23:27 -07:00
2016-10-20 11:24:01 -07:00
2016-06-28 13:47:02 -07:00
2016-10-08 14:57:56 -07:00
2013-12-18 16:46:35 -08:00
2015-01-16 14:41:26 -08:00
2015-01-16 14:41:26 -08:00
2015-12-22 10:21:33 -08:00
2016-04-21 09:49:25 -07:00
2016-06-21 09:58:37 -07:00
2010-08-31 13:41:58 -07:00
2016-08-11 11:23:49 -07:00
2016-10-14 11:00:47 -07:00
2016-01-08 15:08:19 -08:00
2013-10-31 14:58:04 -07:00
2010-08-31 13:41:58 -07:00
2015-09-04 16:08:14 -07:00
2016-07-25 13:21:49 -07:00
2016-09-21 18:09:00 -07:00
2016-07-25 13:21:49 -07:00
2016-09-21 18:09:00 -07:00
2016-10-20 11:24:01 -07:00
2016-10-18 10:44:44 -07:00
2016-05-31 16:04:26 -07:00