All of lore.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Martin Peschke3 <MPESCHKE@de.ibm.com>
Cc: linux-scsi@vger.kernel.org, Nate.Dailey@stratus.com
Subject: Re: lsscsi-0.15 released
Date: Fri, 22 Jul 2005 17:12:44 +1000	[thread overview]
Message-ID: <42E09C6C.5060107@torque.net> (raw)
In-Reply-To: <OF9CA7648D.65634493-ONC1257044.00476607-C1257044.00496C37@de.ibm.com>

Martin Peschke3 wrote:
> Doug,
> 
> Providing udev names is great. Makes it more user-frendly.

Martin,
It can still be tricked: for example putting disk device nodes
in a /dev/disks/ directory. Also the udevinfo approach could
be tricked by using mknod .

> Btw., what do you think about this idea:
> If lsscsi was enhanced to provide certain transport specific attributes, as
> well,
> then a user could easily look up the Linux device name of a logical unit
> that he otherwise knows by its transport specific addressing, like WWPN and
> so on in case of Fibre Channel. That's desirable, because
> SAN management is done based on these transport specific addresses.

Yes, I did kick around this idea. After discussing some
of the complexities, I thought it was better to do an
incremental release.

One problem is that lsscsi lists the attributes of logical
units (i.e. linux SCSI "devices") and hosts (i.e. SCSI initiator
ports). However most of the transport information available
is bound to SCSI target device ports (and the target device holds
one or more logical units). The logical unit may well have
transport information but in a bridged environment it is the
target's transport that sysfs is reporting.

One question is whether to extend lsscsi to cover transports
that carry SCSI command sets (e.g. SPI, FC, ATAPI, IEE1394, IB,
IP and SAS (to name a few)) or to suggest someone write a
lstransport utility. Obviously transports can carry payloads
other than SCSI command sets.

> I guess, this would require to convince James that it makes sense to
> spend effort on teaching either the midlayer or transport class to keep
> track
> of FCP_LUNs, or 64 bit LUNs respectively :)

There is probably enough transport information there
already in sysfs (but some "back" symlinks would be
handy). Increasing the degree of difficulty is the lack
of uniformity between transport sysfs representations.
The proposed SAS sysfs representation will increase
this entropy. I am beginning to see why the (maligned)
SDI ioctl interface for SAS HBAs has a <h:c:t:l> tuple
to SAS address map. It is the <h:c:t:l> tuple (or subsets
of it) that holds lsscsi together.

Doug Gilbert




  reply	other threads:[~2005-07-22  7:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-20 13:13 lsscsi-0.15 released Martin Peschke3
2005-07-22  7:12 ` Douglas Gilbert [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-07-20  8:33 Douglas Gilbert

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=42E09C6C.5060107@torque.net \
    --to=dougg@torque.net \
    --cc=MPESCHKE@de.ibm.com \
    --cc=Nate.Dailey@stratus.com \
    --cc=linux-scsi@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.