On 2/25/26 16:36, John Garry wrote:
Provide a link in sysfs from a scsi_mpath_device to member scsi_device's.

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).

But anyway.

Reviewed-by: Hannes Reinecke <[email protected]>

Cheers,

Hannes
--
Dr. Hannes Reinecke                  Kernel Storage Architect
[email protected]                               +49 911 74053 688
SUSE Software Solutions GmbH, Frankenstr. 146, 90461 Nürnberg
HRB 36809 (AG Nürnberg), GF: I. Totev, A. McDonald, W. Knoblich

Reply via email to