On 03/03/2026 07:19, Hannes Reinecke wrote:
An example is as follows:
# ls -l /sys/class/scsi_mpath_device/0/multipath/
total 0
lrwxrwxrwx    1 root     root             0 Feb 24 12:01 8:0:0:0 - > ../../../../platform/host8/session1/target8:0:0/8:0:0:0 lrwxrwxrwx    1 root     root             0 Feb 24 12:01 9:0:0:0 - > ../../../../platform/host9/session2/target9:0:0/9:0:0:0

Signed-off-by: John Garry <[email protected]>
---
  drivers/scsi/scsi_multipath.c | 45 +++++++++++++++++++++++++++++++++++
  drivers/scsi/scsi_sysfs.c     |  5 ++++
  include/scsi/scsi_multipath.h |  9 +++++++
  3 files changed, 59 insertions(+)

And again; just what I complained about in the previous patch.
Still not sure about the naming; 'multipath' conveys to me
the opposite (ie the multipath device, not the devices which
are part of a multipath device).

Yeah, maybe "paths" would be better.

However, I am just following the pre-existing example in NVMe, which has:
# ls -l /sys/devices/virtual/nvme-subsystem/nvme-subsys1/nvme1n1/multipath
total 0
lrwxrwxrwx    1 root     root             0 Mar  3 10:42 nvme1c1n1 ->
../../../../nvme-fabrics/ctl/nvme1/nvme1c1n1
lrwxrwxrwx    1 root     root             0 Mar  3 10:42 nvme1c2n1 ->
../../../../nvme-fabrics/ctl/nvme2/nvme1c2n1
#

Some of the sysfs code/structures is also shared from libmultipath also.

Thanks!


Reply via email to