[ofa-general] ***SPAM*** SRP Initiator port -> SRP Target port mismatch?

Roland Dreier rdreier at cisco.com
Fri Oct 12 15:17:02 PDT 2007


 > find /sys/class/infiniband_srp/srp-mthca*/device/host*/target*/*/block -ls
 > 31820    0 lrwxrwxrwx   1 root     root            0 Oct 12 17:19
 > /sys/class/infiniband_srp/srp-mthca0-1/device/host24/target24:0:0/24:0:0:4/b
 > lock -> ../../../../../../../block/sdb
 >  31869    0 lrwxrwxrwx   1 root     root            0 Oct 12 17:19
 > /sys/class/infiniband_srp/srp-mthca0-1/device/host24/target24:0:0/24:0:0:6/b
 > lock -> ../../../../../../../block/sdc
 >  31820    0 lrwxrwxrwx   1 root     root            0 Oct 12 17:19
 > /sys/class/infiniband_srp/srp-mthca0-2/device/host24/target24:0:0/24:0:0:4/b
 > lock -> ../../../../../../../block/sdb
 >  31869    0 lrwxrwxrwx   1 root     root            0 Oct 12 17:19
 > /sys/class/infiniband_srp/srp-mthca0-2/device/host24/target24:0:0/24:0:0:6/b
 > lock -> ../../../../../../../block/sdc

I think the /device/ part of the path is a link to the underlying
device, so since srp-mthca0-1 and srp-mthca0-2 both have the same HCA,
you will see targets appear twice when you list them way.

 - R.



More information about the general mailing list