[systemd-devel] [PATCH] udevd: SAS: use SAS addr + PHY id in by-path whenever possible.
Harald Hoyer
harald.hoyer at gmail.com
Thu Dec 4 04:15:45 PST 2014
On 22.09.2014 11:48, Maurizio Lombardi wrote:
> 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 at redhat.com>
After convincing Kay Sievers, I am going to push this patch, as it fixes
obviously non-predictable symlinks.
To fix already released systemd versions, I would suggest to patch them in a
way, that it outputs both symlinks and add a release note, that the old
symlinks are deprecated.
In the long run, we really should outsource all specialized storage udev helper
code, as Kay mentioned in the various replies to this thread.
More information about the systemd-devel
mailing list