mirror_zfs/lib/libzutil/os/linux
Tony Hutter 2a8430a260
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-10-04 12:32:16 -07:00
..
zutil_compat.c Add wrapper stub for zfs_cmd ioctl to libzpool 2019-11-12 10:40:39 -08:00
zutil_device_path_os.c zfs_get_enclosure_sysfs_path(): don't free undefined pointer 2021-05-08 09:25:59 -07:00
zutil_import_os.c Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00