From: Hannes Reinecke <hare@suse.de>
To: Swen Schillig <swen@vnet.ibm.com>
Cc: James Bottomley <James.Bottomley@steeleye.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: Mon, 25 Jun 2007 16:03:56 +0200 [thread overview]
Message-ID: <467FCB4C.6060907@suse.de> (raw)
In-Reply-To: <200706251239.09755.swen@vnet.ibm.com>
Swen Schillig wrote:
> On Friday 22 June 2007 16:11, James Bottomley wrote:
>> On Thu, 2007-06-21 at 21:40 -0700, Mike Anderson wrote:
>>> James Bottomley <James.Bottomley@SteelEye.com> wrote:
>>>> A proposal to display the correct form of the LUN would be useful if you
>>>> wish to make it? ... The problem is really that SAM specifies a
>>>> possible 4 level structure with 4 possible address methods per level.
>>>>
>>>> The well known LUNs should be simple; there are only three: Report Lun,
>>>> Access Controls and Target Log Pages. The rest we really need input on.
>>>> For instance, I could see the vendors wishing us to combine a
>>>> multi-level flat addressing space into a single logical unit number,
>>>> whereas I could see them wanting us to supply some sort of hierarchy for
>>>> the peripheral and logical unit methods of addressing.
>>>>
>>>> Since you're already using 2 level flat addressing, how do you want to
>>>> see that represented?
>>> James, why would we would not want to display the lun per SAM4 4.6.2 as
>>> suggested by Stefan in a previous comment.
>> Because in a two LUN system, what was LUN 1 would then become LUN
>> 0x1000000000000 which looks a bit unpalatable.
>>
>> James
>>
>>
>> -
>
> Despite the issue whether we should display and/or use (sysfs !?)
> full blown 64bit values, so with leading zeros, you still have the option to display,
> for the single level addressing, the LUN as a 2 byte value as described in SAM4 4.6.2.
> So for your example this would be 0x0001 or 0x1, which is exactly what you'd like to see, right ?
> Only for 2+ level environment the 64bit representation comes into the play.
>
> And, because you were asking how we'd like that to be represented, I personally prefer
> a full blown 64bit hex value with leading zeros.
> It makes the comparison to internal structures/models easier and gets us a bit closer
> to the documented (SAM4) standard.
> ...and I think we all can deal with a few extra digits being displayed.
>
Well ...
why don't we stick with the original implementation like zfcp had it?
We can simpley expand the midlayer to add an attribute 'lun'
to each scsi_device. This would be the LUN as returned by eg
REPORT LUNS.
No translation, nothing. Would be easy to implement and would allow
any administrator to map the h:c:i:l value to the 'real' lun.
Cheers,
Hannes
--
Dr. Hannes Reinecke zSeries & Storage
hare@suse.de +49 911 74053 688
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg
GF: Markus Rex, HRB 16746 (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
next prev parent reply other threads:[~2007-06-25 14:04 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 [this message]
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
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=467FCB4C.6060907@suse.de \
--to=hare@suse.de \
--cc=James.Bottomley@steeleye.com \
--cc=andmike@us.ibm.com \
--cc=christof.schmitt@de.ibm.com \
--cc=linux-scsi@vger.kernel.org \
--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