mirror_zfs/cmd/zpool
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
..
compatibility.d Add compatibility file sets (ZoL 0.6.1, 0.6.4, OpenZFS 2.1) 2021-03-31 09:40:25 -07:00
os Move check_file to os/$platform section 2021-07-26 16:34:11 -07:00
zpool.d Detect iSCSI in the zpool cmd vdev media script 2021-09-02 16:11:53 -07:00
.gitignore Add .gitignore files to exclude build products 2010-01-08 11:35:17 -08:00
Makefile.am Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00
zpool_iter.c Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00
zpool_main.c Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00
zpool_util.c zpool: import: use realloc for realloc, remove strtok 2021-05-26 14:50:59 -07:00
zpool_util.h Rescan enclosure sysfs path on import 2021-10-04 12:32:16 -07:00
zpool_vdev.c Move check_file to os/$platform section 2021-07-26 16:34:11 -07:00