From: Patrick Mansfield <patmans@us.ibm.com>
To: Douglas Gilbert <dougg@torque.net>,
Andries.Brouwer@cwi.nl, James.Bottomley@steeleye.com,
linux-scsi@vger.kernel.org,
linux-usb-devel@lists.sourceforge.net,
mdharm-scsi@one-eyed-alien.net
Subject: Re: [PATCH] scsi-misc-2.5 remove scsi_scan.c EVPD code
Date: Mon, 5 May 2003 15:51:27 -0700 [thread overview]
Message-ID: <20030505155127.A11734@beaverton.ibm.com> (raw)
In-Reply-To: <20030505174602.GA3433@beaverton.ibm.com>; from andmike@us.ibm.com on Mon, May 05, 2003 at 10:46:02AM -0700
On Mon, May 05, 2003 at 10:46:02AM -0700, Mike Anderson wrote:
> Patrick Mansfield [patmans@us.ibm.com] wrote:
> > Right now, we could have an sgid that runs whenever an sg is found (sg
> > hotplug generated via device_register), and stores a sysfs path and the id
> > returned into a flat file.
>
> I believe devlabel's scsi_unique_id.c file does some of this, though I
> have not looked at it closely.
>
> -andmike
Yes, it looks very close, and has the underlying infrastructure (uses the
SCSI_IOCTL_SEND_COMMAND, not sg, so can be used for all upper level linux
scsi devices). It looks like we would need functionallity that is in the
devlabel script itself (to output just a single ID), maybe just integrate
that into scsi_unique_id. (I did not look closely at devlabel, it has more
lines than the scsi_unique_id.c source.)
It looks like scsi_unique_id should also dump the code set, so it can pick
one code set (the same one) over anoother (if both were ever used by a
single LU).
It fails for character devices, but that is easily fixed by deletion of
the check (SCSI_IOCTL_SEND_COMMAND works for any scsi device: st, sd, sr
or sg). I deleted the check and it ran ok on a "processor" scsi device,
though the device does not support page 80 or page 83.
scsi_unique_id should also have some sort of error checking/reporting, so
we can tell if a device is not functioning (versus does not support page
80 or 83).
I don't know how this would be integrated into the scsi device model tree,
given the current flux (class or bus for upper level devices, as well as
for the scsi_device itself).
-- Patrick Mansfield
next prev parent reply other threads:[~2003-05-05 22:44 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-25 0:47 [PATCH] scsi-misc-2.5 remove scsi_scan.c EVPD code Andries.Brouwer
2003-05-05 7:58 ` Douglas Gilbert
2003-05-05 14:17 ` James Bottomley
2003-05-05 15:52 ` Mike Anderson
2003-05-05 16:14 ` James Bottomley
2003-05-05 16:26 ` Patrick Mansfield
2003-05-05 16:57 ` Mike Anderson
2003-05-05 17:01 ` James Bottomley
2003-05-05 16:38 ` Patrick Mansfield
2003-05-05 16:59 ` James Bottomley
2003-05-05 17:46 ` Mike Anderson
2003-05-05 22:51 ` Patrick Mansfield [this message]
2003-05-06 1:39 ` Douglas Gilbert
2003-05-06 4:11 ` Patrick Mansfield
2003-05-06 5:58 ` Douglas Gilbert
2003-05-06 21:11 ` Patrick Mansfield
-- strict thread matches above, loose matches on Subject: below --
2003-04-25 0:22 Patrick Mansfield
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=20030505155127.A11734@beaverton.ibm.com \
--to=patmans@us.ibm.com \
--cc=Andries.Brouwer@cwi.nl \
--cc=James.Bottomley@steeleye.com \
--cc=dougg@torque.net \
--cc=linux-scsi@vger.kernel.org \
--cc=linux-usb-devel@lists.sourceforge.net \
--cc=mdharm-scsi@one-eyed-alien.net \
/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