2.6.28-rc2 - strange (redundant) sysfs paths for SCSI

From: Andrey Borzenkov
Date: Wed Oct 29 2008 - 14:05:55 EST


Running with PATA driver:

/sys/devices/pci0000:00/0000:00:04.0/host0/scsi_host/host0
/sys/devices/pci0000:00/0000:00:04.0/host0/target0:0:0/0:0:0:0

well, in both cases at least one component is redundant? Also
the intermediate nodes (scsi_host and target0:0:0) do not seem
to contain any useful information at all?

I noticed this because kernel installer in Mandriva started to
complaint about host* and target* device nodes under /sys/bus/scsi/devices:

lrwxrwxrwx 1 root root 0 2008-10-29 19:58 0:0:0:0 -> ../../../devices/pci0000:00/0000:00:04.0/host0/target0:0:0/0:0:0:0/
lrwxrwxrwx 1 root root 0 2008-10-29 19:58 1:0:0:0 -> ../../../devices/pci0000:00/0000:00:04.0/host1/target1:0:0/1:0:0:0/
lrwxrwxrwx 1 root root 0 2008-10-29 19:58 host0 -> ../../../devices/pci0000:00/0000:00:04.0/host0/
lrwxrwxrwx 1 root root 0 2008-10-29 19:58 host1 -> ../../../devices/pci0000:00/0000:00:04.0/host1/
lrwxrwxrwx 1 root root 0 2008-10-29 19:58 target0:0:0 -> ../../../devices/pci0000:00/0000:00:04.0/host0/target0:0:0/
lrwxrwxrwx 1 root root 0 2008-10-29 19:58 target1:0:0 -> ../../../devices/pci0000:00/0000:00:04.0/host1/target1:0:0/

It is really not quite clear what use they have.

TIA

-andrey

Attachment: signature.asc
Description: This is a digitally signed message part.