zfs/lib
Tony Hutter 91fe213823 Rescan enclosure sysfs path on import
When you create a pool, zfs writes vd->vdev_enc_sysfs_path with the
enclosure sysfs path to the fault LEDs, like:

    vdev_enc_sysfs_path = /sys/class/enclosure/0:0:1:0/SLOT8

However, this enclosure path doesn't get updated on successive imports
even if enclosure path to the disk changes.  This patch fixes the issue.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #11950
Closes #12095
2021-11-12 16:31:55 -08:00
..
libavl cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libefi cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libicp cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libnvpair cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libshare cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libspl Use fallthrough macro 2021-11-12 15:24:36 -08:00
libtpool cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libunicode cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libuutil cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libzfs Added error for writing to /dev/ on Linux 2021-11-12 16:31:55 -08:00
libzfs_core cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libzfsbootenv Use fallthrough macro 2021-11-12 15:24:36 -08:00
libzpool file reference counts can get corrupted 2021-09-22 15:19:08 -07:00
libzstd cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00
libzutil Rescan enclosure sysfs path on import 2021-11-12 16:31:55 -08:00
Makefile.am cppcheck: integrete cppcheck 2021-06-23 13:22:15 -07:00