public inbox for linux-scsi@vger.kernel.org
 help / color / mirror / Atom feed
From: Kurt Garloff <garloff@suse.de>
To: Linux SCSI list <linux-scsi@vger.kernel.org>
Subject: WWID / SerialNo in sysfs?
Date: Mon, 9 Feb 2004 17:08:56 +0100	[thread overview]
Message-ID: <20040209160856.GS3944@tpkurt.garloff.de> (raw)

[-- Attachment #1: Type: text/plain, Size: 687 bytes --]

Hi,

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.

Regards,
-- 
Kurt Garloff  <garloff@suse.de>                            Cologne, DE 
SUSE LINUX AG, Nuernberg, DE                          SUSE Labs (Head)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

             reply	other threads:[~2004-02-09 16:08 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-02-09 16:08 Kurt Garloff [this message]
2004-02-09 16:20 ` WWID / SerialNo in sysfs? 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
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=20040209160856.GS3944@tpkurt.garloff.de \
    --to=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