From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick Mansfield Date: Tue, 24 Feb 2004 18:31:42 +0000 Subject: Re: Udev and SCSI/Fiber channel devices Message-Id: <20040224103142.A20330@beaverton.ibm.com> List-Id: References: <2F75A5CCEF1E6A4C8CA2E75CF7F529E901F260D7@orsmsx409.jf.intel.com> In-Reply-To: <2F75A5CCEF1E6A4C8CA2E75CF7F529E901F260D7@orsmsx409.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tue, Feb 24, 2004 at 10:11:31AM -0800, Sabharwal, Atul wrote: > The output of command /sbin/scsi_id -s /block/sda giver serialnumber> . > I can put -p 0x80 but it defaults to page 0x80 anyway. > > The reason to separate the three field with awk was to have exact match > without worrying > about spaces. Putting vendor, model number information in a udev rule > does not belong > Over there. In fact, if like scsi_id, it was okay to have an custom > callout programs > And use their output to match the RESULT field, that would be great. It's normal to use vendor and model in udev rules. Page 0x80 gives a unique serial number only for a given vendor and model, so if you use only the serial number, it is possible though perhaps unlikely that it will collide with other ID's. > The reason I am explotring CALLOUT is to have a method to give > persistant device names > Using bus#, chasis# & slot#. If you want to name based on position or hardware location you don't want to use scsi_id, you probably want to key off of the bus id, plus other sysfs host adapter (i.e. pci) attributes. -- Patrick Mansfield ------------------------------------------------------- SF.Net is sponsored by: Speed Start Your Linux Apps Now. Build and deploy apps & Web services for Linux with a free DVD software kit from IBM. Click Now! http://ads.osdn.com/?ad_id56&alloc_id438&op=click _______________________________________________ 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