mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2025-10-24 00:44:59 +03:00
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 |
||
|---|---|---|
| .. | ||
| agents | ||
| zed.d | ||
| .gitignore | ||
| Makefile.am | ||
| zed_conf.c | ||
| zed_conf.h | ||
| zed_disk_event.c | ||
| zed_disk_event.h | ||
| zed_event.c | ||
| zed_event.h | ||
| zed_exec.c | ||
| zed_exec.h | ||
| zed_file.c | ||
| zed_file.h | ||
| zed_log.c | ||
| zed_log.h | ||
| zed_strings.c | ||
| zed_strings.h | ||
| zed.c | ||
| zed.h | ||