From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Tue, 14 Oct 2003 22:40:54 +0000 Subject: Re: adding callouts to udev for scsi identifiers/serial numbers Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Oct 08, 2003 at 03:06:38PM -0700, Patrick Mansfield wrote: > > I have a scsi_id program intended for use with udev to retrieve SCSI > serial number/id's using INQUIRY page 0x80 or page 0x83. scsi_id dumps a > unique ID to stdout and exit's with zero status; if no id, it exit's with > non-zero status. Any pointer to where this program is located at? > In order to call out and cache one time, I was thinking of adding > namedev.config syntax like: > > SET=somevar1, BUS="scsi", PROGRAM="/usr/sbin/scsi_id" > > USE=somevar1, BUS="scsi", ID="200609487340b71da", NAME="disk-1" > USE=somevar1, BUS="scsi", ID="somenumber", NAME="disk-2" > > Any comments or suggestions on the above? Caching is good. And yes, something like the above is needed. Hm, but how can we pass command line arguments to the program to be run? thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel