> 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. _______________________________________________ general mailing list [email protected] http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general
