From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 06 Nov 2003 23:53:04 +0000 Subject: Re: udev naming for scsi disk partitions 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 Tue, Nov 04, 2003 at 10:45:55AM +0530, Surekha.PC wrote: > > Hi all, > > My system is connected to iSCSI disks. With udev-005 pkg I am able to > see the device entries created in "/udev/sdc". I want to give a unique > and persistent naming scheme for iSCSI device. > > I have specified the following entry in "/etc/udev/udev.config" for > naming the iSCSI device. > > E.g:- > NUMBER, BUS="scsi" ID="6:0:69:0" NAME="c6b0t69l0" What does the whole path for the scsi device look like in sysfs? I think there's probably a bug in the NUMBER matchup that gets this wrong right now (I only tested it with PCI devices, and need to get the automated test framework up and running soon...) > The iSCSI disk "sdc" has 2 partitions "sdc1" and "sdc2". > > I am able to generate the name for "sdc" whereas "sdc1" and "sdc2" > entries remain as is. > > My partitions should have the name like "c6b0t69l0s1" and "c6b0t69l0s2". > > How do I achieve this with udev? This should work, but is there a better way to uniquely identify this device in sysfs? Any specific sysfs file for this device that would make a LABEL rule an easier thing to do? thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ 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