From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Thu, 11 Dec 2003 00:17:51 +0000 Subject: Re: udev.rules.devfs + symlinks & a question 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 Thu, Dec 11, 2003 at 12:19:57AM +0100, Svetoslav Slavtchev wrote: > > On Wed, Dec 10, 2003 at 11:45:24PM +0100, Svetoslav Slavtchev wrote: > > > > > and i'm not sure how can i distinguish a cd drive from a hard drive > > > > > > > > For scsi cdroms it's easy, look at the type file in sysfs. For ide > > > > cdroms, code needs to be added to the kernel to export that > > information > > > > for you to determine this. > > > > > > hm, i was browsing the thread a while ago, but didnt get it fully > > > there were some issues with using 2 rules for one device, > > > > You would not need 2 rules. One a "is this a cdrom" rule. If not, then > > it would fall down into the "is this a disk" rule. Something like: > > LABEL, BUS="scsi", type="cdrom", NAME="cdrom%n" > > LABEL, BUS="scsi", type="disk", NAME="lun0/%D" > > You get the idea... > > and what if it is a tape, scanner, or smth else ? I don't know the devfs naming scheme, so you will have to figure that out yourself :) > and where are the patches ? Working on getting them together. Need to get some USB fixes to Linus first, that's more important. thanks, greg k-h ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id78&alloc_id371&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