zfs/cmd/zpool
Tony Hutter 59112ca27d zed: misc vdev_enc_sysfs_path fixes
There have been rare cases where the VDEV_ENC_SYSFS_PATH value that zed
gets passed is stale.  To mitigate this, dynamically check the sysfs
path at the time of zed event processing, and use the dynamic value if
possible.  Note that there will be other times when we can not
dynamically detect the sysfs path (like if a disk disappears) and have
to rely on the old value for things like turning on the fault LED.  That
is to say, we can't just blindly use the dynamic path in every case.

Also:
	- Add enclosure sysfs entry when running 'zpool add'
	- Fix 'slot' and 'enc' zpool.d scripts for nvme

Reviewed-by: Don Brady <dev.fs.zfs@gmail.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #15462
2024-01-29 15:11:56 -08:00
..
compatibility.d ZTS: Test for all known zpool feature sets 2023-11-16 14:23:03 -08:00
os Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool.d zed: misc vdev_enc_sysfs_path fixes 2024-01-29 15:11:56 -08:00
Makefile.am Add compatibility symlinks for FreeBSD 12.{3,4} and 13.{0,1,2} 2023-05-26 15:37:15 -07:00
zpool_iter.c Add zfs_prepare_disk script for disk firmware install 2023-11-06 16:45:07 -08:00
zpool_main.c zpool wait: print timestamp before the header 2024-01-29 14:53:29 -08:00
zpool_util.c Replace dead opensolaris.org license link 2022-07-11 14:16:13 -07:00
zpool_util.h Add zfs_prepare_disk script for disk firmware install 2023-11-06 16:45:07 -08:00
zpool_vdev.c zed: misc vdev_enc_sysfs_path fixes 2024-01-29 15:11:56 -08:00