public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Douglas Gilbert <dougg@torque.net>
To: Nick Bellinger <nickb@attheoffice.org>
Cc: Oliver Xymoron <oxymoron@waste.org>,
	Patrick Mochel <mochel@osdl.org>,
	sullivan <sullivan@austin.ibm.com>,
	Linus Torvalds <torvalds@transmeta.com>,
	Kurt Garloff <garloff@suse.de>,
	Linux kernel list <linux-kernel@vger.kernel.org>,
	Linux SCSI list <linux-scsi@vger.kernel.org>
Subject: Re: [PATCH] /proc/scsi/map
Date: Sat, 22 Jun 2002 15:41:53 -0400	[thread overview]
Message-ID: <3D14D301.F2C8DBBE@torque.net> (raw)
In-Reply-To: 1024720721.6874.104.camel@subjeKt

Nick Bellinger wrote:
> 
> On Fri, 2002-06-21 at 15:33, Oliver Xymoron wrote:
> > On Thu, 20 Jun 2002, Patrick Mochel wrote:
> >
> > > > But it was entierly behind me how to fit this
> > > > in to the sheme other sd@4,0:h,raw
> > > > OS-es are using. And finally how would one fit this in to the
> > > > partitioning shemes? For the system aprtitions are simply
> > > > block devices hanging off the corresponding block device.
> > >
> > > Partitions are purely logical entities on a physical disk. They have no
> > > presence in the physical device tree.
> >
> > As I raised elsewhere in this thread, the distinction between physical and
> > logical is troubling. Consider iSCSI, (aka SCSI-over-IP). It's analogous
> > to SCSI-over-Fibre Channel, except that rather than using an embedded FC
> > stack, it's using the kernel's IP stack. But it's every bit as much a SCSI
> > disk/tape/whatever as a local device. Ergo, it ought to show up in the
> > device tree so that it can be discovered in the same way. But where?
> >
> > This is only one step (the SCSI midlayer) removed from the logical devices
> > created by partitioning, LVM, NBD, MD, loopback, ramdisk and the like,
> > that again, ought to be discoverable in the same way as all other block
> > devices. Perhaps we need root/{virtual,logical}?
> >
> 
> The interaction between iSCSI & driverfs does pose an interesting
> problem:
> 
> On one hand I tend to lead toward the view of a physical device.
> The reason being that there will never be a distinction as far as the
> kernel is concerned (other than driverfs of course) that a SCSI upper
> level driver (hopefully soon to be a personality driver) using a iSCSI
> Initiator low-level driver is not really a physical host.
> 
> On the other hand there is the obvious fact that an iSCSI initiator
> driver is not attached to a bus, and assuming /root/iSCSI.target/disk1
> etc, is out of the question.  There is a real need for a solution to
> handle virtual devices (as stated your previous message) that are not
> assoicated with any physical connectors.
> 
> Not being too fimilar with driverfs,  what are the options with regard
> to virtual devices as things currently stand without tainting the
> elegant tree that is provides?

iSCSI introduces some other issues. The SCSI subsystem has
a 4 byte target (port) identifier at the moment. However Annex A
of the SAM-2 draft ( http://www.t10.org ) indicates that it should
be 258 bytes for iSCSI (and 11 bytes for ieee1394). For iSCSI the
target port identifier is a WWUI plus a 2 byte target portal group 
tag. A WWUI looks like:
  com.disk-vendor.diskarrays.sn.45678

Also the SCSI subsystem has tended to hide the the initiator's
own identifier (this is usually id 7 on the SCSI parallel bus).
For iSCSI it may be worthwhile to make the initiator port 
identifier visible in driverfs.

There is also the case where you want a box to appear to
the network as an iSCSI target. In this case once a iSCSI
login is complete you might want to represent the initiator
in the driverfs tree. For iSCSI, the initiator port identifier 
is a WWUI plus a 6 byte "inititator session id" for a total
of 262 bytes.

So the "target id" we put in driverfs could have one of
these suggested formats:
   <number>              - 0 to 1 for ATA
   <number>              - 0 to 15 for SCSI parallel interface
   <number>              - 24 bit number for fibre channel
   <EUI 64+discovery_id> - ieee1394
   <???>                 - usb (mass storage + scanner)
   <WWUI> ":" <num>      - iSCSI   [something better than ":"?]


We should also be moving towards 8 byte luns which in one
descriptor format are a 4 level hierarchy (2 bytes at each
level).

Doug Gilbert

  reply	other threads:[~2002-06-22 19:44 UTC|newest]

Thread overview: 65+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-06-20  0:44 [PATCH] /proc/scsi/map Kurt Garloff
2002-06-20  5:03 ` Linus Torvalds
2002-06-20  7:09   ` Martin Schwenke
2002-06-20 15:13     ` Linus Torvalds
2002-06-20 15:36       ` Dave Jones
2002-06-20 17:01         ` Linus Torvalds
2002-06-20 16:55       ` Andries Brouwer
2002-06-20 17:52         ` Patrick Mansfield
2002-06-20 18:36           ` Linus Torvalds
2002-06-20 18:52             ` James Bottomley
2002-06-20 19:15               ` Linus Torvalds
2002-06-20 16:28                 ` Benjamin Herrenschmidt
2002-06-21  0:46                   ` Linus Torvalds
2002-06-20 16:49                     ` Benjamin Herrenschmidt
2002-06-20 20:06                 ` Oliver Xymoron
2002-06-22 18:27             ` Pavel Machek
2002-06-20 18:11         ` Linus Torvalds
2002-06-20 22:59           ` Martin Schwenke
2002-06-20 23:13             ` Linus Torvalds
2002-06-22 18:25               ` Pavel Machek
2002-06-26 16:03           ` Ihno Krumreich
2002-07-01 17:33             ` Patrick Mochel
2002-06-20 19:55         ` Greg KH
2002-06-20 19:18       ` Patrick Mochel
2002-06-21  6:28       ` Mike Touloumtzis
2002-06-20 11:25   ` Kurt Garloff
2002-06-20 15:34     ` Linus Torvalds
2002-06-20 16:30       ` Martin Dalecki
2002-06-20 16:58         ` James Bottomley
2002-06-20 18:27           ` Linus Torvalds
2002-06-20 20:55             ` Martin Dalecki
2002-06-20 21:04               ` Linus Torvalds
2002-06-20 21:36                 ` Martin Dalecki
2002-06-20 20:12         ` Patrick Mochel
2002-06-20 22:29           ` Martin Dalecki
2002-06-22 18:42             ` Pavel Machek
2002-06-21 14:29           ` sullivan
2002-06-21 16:17             ` Patrick Mochel
2002-06-21 21:33           ` Oliver Xymoron
2002-06-22  4:38             ` Nick Bellinger
2002-06-22 19:41               ` Douglas Gilbert [this message]
2002-06-22 19:11                 ` Nick Bellinger
2002-06-25 18:13                 ` Patrick Mochel
2002-06-25 16:05             ` Patrick Mochel
2002-06-25 16:57               ` Oliver Xymoron
2002-06-25 18:58                 ` Patrick Mochel
2002-07-03  1:01                   ` Pavel Machek
2002-06-20 18:32       ` Kurt Garloff
2002-06-20 18:53         ` Linus Torvalds
2002-06-21  9:07         ` Kurt Garloff
  -- strict thread matches above, loose matches on Subject: below --
2002-06-20 23:59 Grover, Andrew
2002-06-22  6:29 Adam J. Richter
2002-06-25 16:17 ` Patrick Mochel
2002-06-22 17:24 David Brownell
2002-06-22 17:48 ` Roman Zippel
2002-06-22 20:11   ` Douglas Gilbert
2002-06-22 20:57     ` Roman Zippel
2002-06-22 18:18 ` Nick Bellinger
2002-06-24  1:50   ` David Brownell
2002-06-25 16:46   ` Patrick Mochel
2002-06-25 16:33 ` Patrick Mochel
2002-06-25 17:49   ` David Brownell
2002-06-26 23:39     ` Nick Bellinger
2002-07-01 17:45       ` Patrick Mochel
2002-07-03  0:59     ` Pavel Machek

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=3D14D301.F2C8DBBE@torque.net \
    --to=dougg@torque.net \
    --cc=garloff@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=mochel@osdl.org \
    --cc=nickb@attheoffice.org \
    --cc=oxymoron@waste.org \
    --cc=sullivan@austin.ibm.com \
    --cc=torvalds@transmeta.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