--- James Bottomley <James.Bottomley@xxxxxxxxxxxx> wrote: > Then the phy can have a simple link to the port it's a > member of. This is already the case in the SAS stack. Here is an example of wide and narrow ports. The wide port in this example connects to a domain with three cascaded expanders; the narrow port to a SAS disk. $tree -d /sys/devices/pci0000\:01/0000\:01\:04.0/host11/sas/ha /sys/devices/pci0000:01/0000:01:04.0/host11/sas/ha |-- phys | |-- 0 | | `-- port -> ../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/ports/0 | |-- 1 | |-- 2 | |-- 3 | |-- 4 | | `-- port -> ../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/ports/1 | |-- 5 | | `-- port -> ../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/ports/1 | |-- 6 | | `-- port -> ../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/ports/1 | `-- 7 | `-- port -> ../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/ports/1 `-- ports |-- 0 | |-- domain | | `-- 500000e000031c12 | | `-- LUNS | | `-- 0000000000000000 | `-- phys | `-- 0 -> ../../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/phys/0 `-- 1 |-- domain | `-- 50001c1716010600 | |-- 50001c1071609c00 | | |-- 50001c1071609c02 | | |-- 5000c50000102a65 | | | `-- LUNS | | | `-- 0000000000000000 | | `-- 5005076a000001e0 | | |-- 5000c50000513385 | | | `-- LUNS | | | `-- 0000000000000000 | | |-- 5005076a000001ed | | | `-- LUNS | | | `-- 0000000000000000 | | `-- 5c50000000409c11 | | `-- LUNS | | `-- 0000000000000000 | |-- 50001c1716010603 | |-- 50001c171601060d | | `-- LUNS | | `-- 0000000000000000 | `-- 5000c50000513329 | `-- LUNS | `-- 0000000000000000 `-- phys |-- 4 -> ../../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/phys/4 |-- 5 -> ../../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/phys/5 |-- 6 -> ../../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/phys/6 `-- 7 -> ../../../../../../../../../devices/pci0000:01/0000:01:04.0/host11/sas/ha/phys/7 - : send the line "unsubscribe linux-scsi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html