freebsd-dev/cmd
Tony Hutter 1886cdfcfb
vdev_id: Fix enclosure_symlinks feature
The vdev_id.conf "enclosure_symlinks" option persistently creates
and maps /dev/by-enclosure symlinks to dynamic /dev/sg* devices.

This patch fixes two issues:

1. The enclosure_symlinks feature was accidentally broken in:

   vdev_id: Support daisy-chained JBODs in multipath mode

2. Even when working, the feature numbered the enclosure
   sequentially rather than by HBA port number.  That meant that
   if a port was down or didn't appear in sysfs, then the
   enclosure_sumlinks numbers would be numbered wrong.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Arshad Hussain <arshad.hussain@aeoncomputing.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #12660
2021-10-20 15:48:04 -07:00
..
arc_summary Added another missed case to arc_summary3 2021-06-01 15:20:50 -06:00
arcstat arcstat: Fix integer division with python3 2021-10-08 09:32:27 -06:00
dbufstat dbufstat: Fix warnings with Python 3.8 2020-12-23 15:10:35 -08:00
fsck_zfs Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00
mount_zfs Use fallthrough macro 2021-09-14 10:17:54 -06:00
raidz_test raidz_test: use only async-signal-safe functions in signal handler 2021-05-20 16:37:38 -07:00
vdev_id vdev_id: Fix enclosure_symlinks feature 2021-10-20 15:48:04 -07:00
zdb zdb: fix overflow of time estimation 2021-10-15 15:55:34 -07:00
zed Notify on UNAVAIL statechange 2021-10-15 15:57:23 -07:00
zfs Use fallthrough macro 2021-09-14 10:17:54 -06:00
zfs_ids_to_path zfs_ids_to_path: print correct wrong values 2021-04-11 11:58:16 -07:00
zgenhostid Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
zhack Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
zinject cppcheck: integrete cppcheck 2021-01-26 16:12:26 -08:00
zpool zpool should call zfs_nicestrtonum() with non-NULL handle 2021-10-20 10:34:34 -07:00
zpool_influxdb Use fallthrough macro 2021-09-14 10:17:54 -06:00
zstream zstream: force-install zstreamdump link 2021-05-29 20:37:05 -07:00
ztest Prune /*NOTREACHED*/ 2021-07-26 12:07:26 -07:00
zvol_id Use substantially more robust program exit status logic in zvol_id 2021-07-02 13:10:36 -07:00
zvol_wait Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00
Makefile.am Turn shellcheck into a normal make target. Fix new files it caught 2021-06-01 11:38:49 -07:00