From: James Bottomley <James.Bottomley@steeleye.com>
To: Kurt Garloff <garloff@suse.de>
Cc: Linux SCSI list <linux-scsi@vger.kernel.org>
Subject: Re: WWID / SerialNo in sysfs?
Date: 09 Feb 2004 11:20:26 -0500 [thread overview]
Message-ID: <1076343628.1804.19.camel@mulgrave> (raw)
In-Reply-To: <20040209160856.GS3944@tpkurt.garloff.de>
On Mon, 2004-02-09 at 11:08, Kurt Garloff wrote:
> I would like to add a few lines to the SCSI scanning code to retrieve
> WWID and/or serial number from pages INQUIRY pages 0x83 and 0x80.
>
> I'm aware that this can be done from userspace. I've done it before
> (scsidev). However, you need some code to relate device nodes
> (sg, sd) to device IDs (C:B:T:U), thus it's non-trivial to do.
>
> Thus, IMHO, it would be good to retrieve WWID and/or serial no
> and export it via sysfs to make persistent device naming in userspace
> easier. The USB subsystem already does it.
We tried that before. The code is just too fragile and ridden with
policy to be workable (it was finally taken out because it annoyed too
many usb devices).
The SCSI part of udev already has most of this implemented at the user
level, so you should just be able to reuse that code.
James
next prev parent reply other threads:[~2004-02-09 16:20 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 [this message]
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
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=1076343628.1804.19.camel@mulgrave \
--to=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