chiark / gitweb /
udevd: SAS: use SAS addr + PHY id in by-path whenever possible.
authorMaurizio Lombardi <mlombard@redhat.com>
Mon, 22 Sep 2014 09:48:57 +0000 (11:48 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 4 Dec 2014 12:15:58 +0000 (13:15 +0100)
commit66bba0e701b95dc42ed53e8f0799a7e2b944c147
tree3ccfef7ef508ce9a79bbef48bf2fd80af1a9cc06
parent00e8d83a5a6fce20443b53bc42066bc756d5caeb
udevd: SAS: use SAS addr + PHY id in by-path whenever possible.

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

Signed-off-by: Maurizio Lombardi <mlombard@redhat.com>
src/udev/udev-builtin-path_id.c