Add scsi_target abstraction and place it in sysfs
For some of the transport class attributes, we need to hang them off the
SCSI target rather than the LUN (represented by scsi_device). To do this
efficiently, we need to make the target visible in the sysfs hierarchy.
The net effect of this change is to make an extra target component appear
in all the SCSI sysfs paths:
jejb@raven> ls -l /sys/class/scsi_device/0\:0\:5\:0/device
lrwxrwxrwx 1 root root 0 Sep 7 12:10 /sys/class/scsi_device/0:0:5:0/device -> ../../../devices/parisc8/parisc8:0/pci0000:00/0000:00:13.0/host0/target0:0:5/0:0:5:0/
Signed-off-by:
James Bottomley <James.Bottomley@SteelEye.com>
Showing
Please register or sign in to comment