public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Patrick Mansfield <patmans@us.ibm.com>
To: Kurt Garloff <garloff@suse.de>,
	James Bottomley <James.Bottomley@steeleye.com>,
	Linux SCSI list <linux-scsi@vger.kernel.org>
Subject: Re: WWID / SerialNo in sysfs?
Date: Mon, 9 Feb 2004 16:48:02 -0800	[thread overview]
Message-ID: <20040209164802.A6756@beaverton.ibm.com> (raw)
In-Reply-To: <20040210001928.GE4538@tpkurt.garloff.de>; from garloff@suse.de on Tue, Feb 10, 2004 at 01:19:28AM +0100

On Tue, Feb 10, 2004 at 01:19:28AM +0100, Kurt Garloff wrote:
> Hi Patrick,
> 
> On Mon, Feb 09, 2004 at 09:04:21AM -0800, Patrick Mansfield wrote:
> > On Mon, Feb 09, 2004 at 05:29:06PM +0100, Kurt Garloff wrote:

> Well, accessing devices by persistent names, you'll normally want 
> to offer the three:
> (a) naming by path
> (b) naming by device identifier: Serial/WWID
> (c) naming by contents (uuid)

Is (c) the mount -U uuid?

> All of them could be useful, think about backups, multipathing, ...
> 
> scsidev provided (a) and (b).
> 
> But for the name by path (a), scsidev used the driver name to have 
> some protection against scsi host renumbering (or PCI bus changes ...)

Yes, and (a) is harder with the host number being always incremented.

> Thus my patch to export the names.

Does that only narrow the scope of the problem? If you have two host
adapters of the same name, the name is not enough to identify a particular
adapter, and we have to fall back to something else. Using the full sysfs
path with a wildcard for the host number would cover some cases (for
example, if the PCI bus id were constant).

> > Also has these items that could be done in scsidev:
> > 
> > - a white/black list text file, so we don't need to rebuild a kernel or
> >   recompile the user binary to add or remove devices from the lists
> 
> I don't understand what you're telling me here.

That we should have a white and black list, since there are devices that
do not properly support page 0x80 or page 0x83, and that it should not be
compiled into the command.

If you're system has all known good devices (high end server, and no low
cost USB mass storage devices will be attached to it), you might want to
use a black list; if you're system is generic, you might want a white
list.

> > - page 0x80 support
> 
> It's there.

OK, sorry I missed it.

-- Patrick Mansfield

  reply	other threads:[~2004-02-10  0:48 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-09 16:08 WWID / SerialNo in sysfs? Kurt Garloff
2004-02-09 16:20 ` James Bottomley
2004-02-09 16:29   ` Kurt Garloff
2004-02-09 16:37     ` James Bottomley
2004-02-09 17:04     ` Patrick Mansfield
2004-02-10  0:19       ` Kurt Garloff
2004-02-10  0:48         ` Patrick Mansfield [this message]
2004-02-10  1:09           ` Kurt Garloff

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=20040209164802.A6756@beaverton.ibm.com \
    --to=patmans@us.ibm.com \
    --cc=James.Bottomley@steeleye.com \
    --cc=garloff@suse.de \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox