2 Apr 2012 14:56
[PATCH] path_id: Re-introduce SAS phy enumeration of devices
Nils Carlson <nils.carlson <at> ericsson.com>
2012-04-02 12:56:54 GMT
2012-04-02 12:56:54 GMT
When path_id was converted to C code the enumeration of SAS
devices by phy disappeared. This patch reintroduces enumeration
of the form
pci-0000:05:00.0-sas-phy0:1-0x500000e114de2b42:0-lun0
where phy0:1 is the reintroduced substring where 0 corresponds
to the lowest phy identifier on the port to which the device
is connected and 1 is the number of phys on the port.
Please test this patch thoroughly as it has only been tested
with an older version of udev.
Signed-off-by: Nils Carlson <nils.carlson <at> ericsson.com>
---
src/udev-builtin-path_id.c | 80 +++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 79 insertions(+), 1 deletion(-)
diff --git a/src/udev-builtin-path_id.c b/src/udev-builtin-path_id.c
index a8559d2..c575fd4 100644
--- a/src/udev-builtin-path_id.c
+++ b/src/udev-builtin-path_id.c
<at> <at> -121,13 +121,67 <at> <at> out:
return parent;
}
+static int get_sas_port_phy_id(struct udev *udev, const char *phy_name)
+{
+ struct udev_device *phydev;
+ const char *phy_id_str;
(Continue reading)
RSS Feed