From: James Bottomley <James.Bottomley@SteelEye.com>
To: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Hannes Reinecke <hare@suse.de>, Swen Schillig <swen@vnet.ibm.com>,
linux-scsi@vger.kernel.org, linux-s390@vger.kernel.org,
schmichr@de.ibm.com
Subject: Re: [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack
Date: Mon, 18 Jun 2007 09:25:24 -0500 [thread overview]
Message-ID: <1182176724.3464.30.camel@mulgrave.il.steeleye.com> (raw)
In-Reply-To: <20070618135614.GD3580@osiris.boeblingen.de.ibm.com>
On Mon, 2007-06-18 at 15:56 +0200, Heiko Carstens wrote:
> One of my current disks has an FCP LUN of 0x401040ba00000000... That's just
That's correct and coped with ... SCSI LUNs are BE ... this is still
only a four byte lun ... it actually says Flat Space addressing, 2 level
LUN: 16-168
> the limit that scsilun_to_int() (four bytes that is) still works with.
> Just wondering if there are patches around that make the SCSI stack work
> with eight byte LUNs?
We've been around this several times, but no-one's ever seen a LUN that
goes beyond 2 levels (and our current scheme correctly copes with all 2
level LUNs)... to go beyond 2 level, it's a simple case of converting
the LUN to u64 and updating the accessors, but we still haven't found a
reason to do it yet.
> Otherwise this looks like replacing a broken approach with a different but
> at least incomplete approach. The above LUN would be translated to a SCSI
> stack internal LUN of 1085947920. Hmm...
The only broken bit about our approach is the fact that we print the
translated value (as you show) which doesn't correspond to the actual
hierarchy. We could quietly update to use the correct number, but we'd
probably have to change our device ID. For only single level LUs, it's
easy, we still use
H:C:I:L
for flat space, I could see something like
H:C:I:L4-L3-L2-L1
Or we could just combine them into a single enumerated LUN.
For peripheral Encoding, perhaps something like:
H:C:I:B4,L4-B3,L3-B2,L2-B1,L1
Logical Unit addressing is starting to look really horrible: something
like:
H:C:I:T4,B4,L4-T3,B3,L3...
And obviously, there's no translation for the extended address method.
James
prev parent reply other threads:[~2007-06-18 14:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-05-29 13:29 [PATCH 3/3] zfcp: Don't report device as LUN 0 to SCSI stack Swen Schillig
2007-06-17 20:50 ` James Bottomley
2007-06-18 8:47 ` Hannes Reinecke
2007-06-18 13:04 ` Swen Schillig
2007-06-18 13:56 ` Heiko Carstens
2007-06-18 14:25 ` James Bottomley [this message]
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=1182176724.3464.30.camel@mulgrave.il.steeleye.com \
--to=james.bottomley@steeleye.com \
--cc=hare@suse.de \
--cc=heiko.carstens@de.ibm.com \
--cc=linux-s390@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=schmichr@de.ibm.com \
--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