]> git.proxmox.com Git - mirror_zfs.git/commit
Add enclosure_symlinks option to vdev_id
authorTony Hutter <hutter2@llnl.gov>
Sat, 15 Dec 2018 01:27:49 +0000 (17:27 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 15 Dec 2018 01:27:49 +0000 (17:27 -0800)
commitc66401fae036b22ecb3fa9af3337e1f9ecffb5e7
treec52b231a099ae57908e550b2d85ef32c0433167e
parent7c46894081300410612a34f7c05377848b277dab
Add enclosure_symlinks option to vdev_id

Add an 'enclosure_symlinks' option to vdev_id.conf.  This creates
consistently named symlinks to the enclosure devices (/dev/sg*) based
off the configuration in vdev_id.conf.  The enclosure symlinks show
up in /dev/by-enclosure/<prefix>-<channel><num>.  The links make it
make it easy to run sg_ses on a particular enclosure device.  The
enclosure links are created in addition to the normal
/dev/disk/by-vdev links.

'enclosure_symlinks' is only valid in sas_direct configurations.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Simon Guest <simon.guest@tesujimath.org>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #8194
cmd/vdev_id/vdev_id
etc/zfs/vdev_id.conf.sas_direct.example
man/man5/vdev_id.conf.5
udev/rules.d/69-vdev.rules.in