zfs/lib
Tony Hutter 586b5d366e 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-02 16:31:05 -07:00
..
libavl cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libefi cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libicp cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libnvpair Update ABI files via new libabigail version 2021-09-14 15:40:12 -07:00
libshare freebsd/libshare: nfs: make nfs_is_shared() thread-safe 2021-04-19 15:22:58 -07:00
libspl Use fallthrough macro 2021-11-02 09:50:30 -07:00
libtpool cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libunicode cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libuutil Update ABI files via new libabigail version 2021-09-14 15:40:12 -07:00
libzfs Use fallthrough macro 2021-11-02 09:50:30 -07:00
libzfs_core Update ABI files via new libabigail version 2021-09-14 15:40:12 -07:00
libzfsbootenv Use fallthrough macro 2021-11-02 09:50:30 -07:00
libzpool file reference counts can get corrupted 2021-09-14 12:37:38 -07:00
libzstd cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
libzutil Rescan enclosure sysfs path on import 2021-11-02 16:31:05 -07:00
Makefile.am cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00