udevd: SAS: use SAS addr + PHY id in by-path whenever possible

System Internals / systemd - Maurizio Lombardi [redhat.com] - 4 December 2014 06:15 UTC

This patch changes the naming scheme for sas disks. The original names used disk's sas address and lun, the new scheme uses sas address of the nearest expander (if available) and a phy id of the used connection. If no expander is used, the phy id of hba phy is used. Note that names that refer to RAID or other abstract devices are unchanged.

Name in raid configuration: hba_pci_address-sas-raid_sas_address-lunY-partZ

Name in expander bare disk configuration: hba_pci_address-sas-expander_sas_address-phyX-lunY-partZ

Name format without expanders: hba_pci_address-sas-phyX-lunY-partZ

66bba0e udevd: SAS: use SAS addr + PHY id in by-path whenever possible.
src/udev/udev-builtin-path_id.c | 96 ++++++++++++++++++++++++++++++++++++++-
1 file changed, 95 insertions(+), 1 deletion(-)

Upstream: github.com


  • Share