public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: James Bottomley <James.Bottomley@SteelEye.com>
To: Stefan Richter <stefanr@s5r6.in-berlin.de>
Cc: ltuikov@yahoo.com, Hannes Reinecke <hare@suse.de>,
	Swen Schillig <swen@vnet.ibm.com>,
	Mike Anderson <andmike@us.ibm.com>,
	Christof Schmitt <christof.schmitt@de.ibm.com>,
	linux-scsi@vger.kernel.org
Subject: Re: [PATCH] zfcp: Report FCP LUN to SCSI midlayer
Date: Tue, 26 Jun 2007 09:20:14 -0500	[thread overview]
Message-ID: <1182867615.3562.3.camel@localhost.localdomain> (raw)
In-Reply-To: <4680EDFE.4050808@s5r6.in-berlin.de>

On Tue, 2007-06-26 at 12:44 +0200, Stefan Richter wrote:
> Luben Tuikov wrote:
> > --- Stefan Richter <stefanr@s5r6.in-berlin.de> wrote:
> >> Do all these transports use the same *name* for the attribute holding
> >> the target port identifier's?
> > 
> > Sure, it is "tpid".
> 
> In mainline's transport classes?  Or/and in your stack?  OK, I'm lazy, I
> should look into the source.

It's currently port_name and port_id in the FC transport.

> >> In other words, is userspace able to find
> >> the target port identifier without knowing which transport is at work?
> > 
> > How can that be?  The target port identifier is by definition
> > a transport property?
> 
> Target Port Identifier is a property of targets.
> 
> Only /how its value looks like/ depends on transport protocols.  Doesn't it?

Which is why it's obtained by the transport class

> So let's put the can always in the same shelf, regardless of the flavor
> of the soup in the can.

And why it's placed in the target directory.

> (That's really why I joined the discussion.  We already have all
> userspace requirements covered in sbp2, regarding which properties to
> expose how.  Except that we do it in sbp2's own place rather than a
> place common to all transport layer implementations.)
> 
> > "Userspace" which you have in mind will be more interested in the
> > device name and other ID properties as returned by the INQUIRY
> > facilities.  Some are transport specific some are not.
> > 
> > Either way userspace can follow a pointer from the sysfs device
> > entry to the transport, just as sg-utils and lsscsi does now for
> > the SAS Stack (my version of it at least).
> 
> As a side note:  What I said was because I'm a lot SBP-2/3 biased and
> didn't deal with other transports myself yet.  In SBP-2/3 we are only
> interested in LUs, we are interested in the concatenation of TPI and LUN
> for worldwide unique persistent identification of LUs, we get both from
> IEEE 1212 facilities, and SPC support is not so extensive.
> 
> >> Regarding the TPID:  The /how/ should be left to the transport layer
> >> implementation; but the /where/ should be uniform in all transports.
> > 
> > This maybe hard to do since the structure of the domain is different
> > for different protocols.
> > 
> > Of course this can be hacked by using symlinks...
> 
> If there are going to be sysfs representations of targets, i.e. target
> devices, can't we express the target--LU relationships as parent device
> relationships?  Could also be grand-(grand-)parent device relationships.
> 
> If neither is possible with some transports, then we indeed have to
> resort to explicit attributes, e.g. symlinks.

OK, you've lost me ... this is our current sysfs representation of a
disk:

/sys/devices/pci0000:00/0000:00:1f.1/host0/target0:0:0/0:0:0:0

target0:0:0 is what I think of as the target ... is that different from
what you're asking for?

James



  reply	other threads:[~2007-06-26 14:20 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-06-19  8:25 [PATCH] zfcp: Report FCP LUN to SCSI midlayer Swen Schillig
2007-06-19  8:28 ` Hannes Reinecke
2007-06-19 12:19 ` Stefan Richter
2007-06-19 17:12 ` Christoph Hellwig
2007-06-20  2:46   ` James Bottomley
2007-06-21 15:03     ` Christof Schmitt
2007-06-21 16:46       ` Stefan Richter
2007-06-21 16:54         ` Stefan Richter
2007-06-22  1:41         ` James Bottomley
2007-06-22 19:01           ` Stefan Richter
2007-06-21 20:58       ` James Bottomley
2007-06-22  4:40         ` Mike Anderson
2007-06-22 11:34           ` Christof Schmitt
2007-06-22 14:11           ` James Bottomley
2007-06-22 16:16             ` Doug Maxey
2007-06-25 20:43               ` Luben Tuikov
2007-06-25 22:53                 ` Stefan Richter
2007-06-25 10:39             ` Swen Schillig
2007-06-25 14:03               ` Hannes Reinecke
2007-06-25 18:57                 ` Stefan Richter
2007-06-25 21:27                   ` Luben Tuikov
2007-06-25 21:55                     ` Stefan Richter
2007-06-26  0:35                       ` Luben Tuikov
2007-06-26 21:29                     ` Matthew Wilcox
2007-06-25 21:48                   ` James Bottomley
2007-06-25 22:27                     ` Stefan Richter
2007-06-26  1:04                       ` Luben Tuikov
2007-06-26 10:44                         ` Stefan Richter
2007-06-26 14:20                           ` James Bottomley [this message]
2007-06-26 15:47                             ` Stefan Richter
2007-06-26 17:01                               ` James Bottomley
2007-06-27  0:27                                 ` Stefan Richter
2007-06-27  0:45                                 ` [PATCH] SCSI: delete outdated comment in API reference Stefan Richter
2007-06-26  0:49                     ` [PATCH] zfcp: Report FCP LUN to SCSI midlayer Luben Tuikov
2007-06-26  9:38                       ` Stefan Richter
2007-06-27 10:27                 ` Swen Schillig
2007-06-28  4:21                   ` Luben Tuikov
2007-06-28 15:40                     ` Stefan Richter
2007-06-30 19:07                       ` Luben Tuikov
2007-06-30 21:26                         ` Stefan Richter
2007-07-01  6:27                           ` Luben Tuikov
2007-07-01 11:07                             ` Stefan Richter
2007-06-25 20:32             ` Luben Tuikov

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=1182867615.3562.3.camel@localhost.localdomain \
    --to=james.bottomley@steeleye.com \
    --cc=andmike@us.ibm.com \
    --cc=christof.schmitt@de.ibm.com \
    --cc=hare@suse.de \
    --cc=linux-scsi@vger.kernel.org \
    --cc=ltuikov@yahoo.com \
    --cc=stefanr@s5r6.in-berlin.de \
    --cc=swen@vnet.ibm.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox