Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 <[email protected]> Reviewed-by: Arshad Hussain <[email protected]> Signed-off-by: Tony Hutter <[email protected]> Closes #12660
- Loading branch information