Re: [RFC] exposing the sdev_target in sysfs

Olaf Hering
2004-09-04T07:24:28Z

On Fri, Sep 03, James Bottomley wrote:

> The aim of this patch is to give us somewhere to hang the per target
> timer that emulex needs.
>
> However, it will break the current sysfs layout. devices will now
> appear something like this:
>
> lrwxrwxrwx 1 root root 0 Sep 3 18:31
> /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
>
> (note the extra target0:0:5 in there).
>
> which may break some of the user land tools (although you're all using
> the scsi class interface to access your devices, aren't you? in which
> case you won't notice any problems).

I do something like this to get to the controller.
cd /sys/block/sda/device
cd `pwd -P`
cd ../..
But if target* will be a stable interface, its easy to change.

--
USB is for mice, FireWire is for men!

sUse lINUX ag, nÜRNBERG
-
To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html