From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Svetoslav Slavtchev" Date: Fri, 12 Dec 2003 22:17:02 +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="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Hi again :-) > 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 > > > > >=20 > > > > > 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. > > > >=20 > > > > 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, > > >=20 > > > 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=3D"scsi", type=3D"cdrom", NAME=3D"cdrom%n" > > > LABEL, BUS=3D"scsi", type=3D"disk", NAME=3D"lun0/%D" > > > You get the idea... > >=20 > > and what if it is a tape, scanner, or smth else ? >=20 > I don't know the devfs naming scheme, so you will have to figure that > out yourself :) again repling to myself :-) it looks like scsi exports all the needed information, but i run ide and it doesn't export it :( > > and where are the patches ? >=20 > Working on getting them together. Need to get some USB fixes to Linus > first, that's more important. haven't you already submited them ?-) i've extracted something from your tree usb-2.5 but i'm not sure if everything is in place, and=20 if i haven't missed some bits could you may be take a look at MSxx series=20 http://varna.demon.co.uk/~svetlio/cook/2.6/udev/ it does boot and it seems to work /* and my "/udev" is getting near to /dev filled by devfs */ although udev doesn't register 2 devices under devfs - snd/seq & snd/timer and i'm wondering how could i make a rule=20 to register a number of devices (with strange names :) ) with the same names in /udev/snd/ , not in /udev ---------------------------------------- [svetljo@svetljo snd]$ ls /dev/snd/ controlC0 midiC0D0 midiC0D2 pcmC0D0c pcmC0D1c =20 pcmC0D3p timer hwC0D0 midiC0D1 midiC0D3 =20 pcmC0D0p pcmC0D2c seq ---------------------------------------- i couldn't find anything regarding raw=20 devices in the usb-2.5 tree :( best, svetljo --=20 +++ GMX - die erste Adresse f=FCr Mail, Message, More +++ Neu: Preissenkung f=FCr MMS und FreeMMS! http://www.gmx.net ------------------------------------------------------- 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_id=1278&alloc_id371&op=3Dclick _______________________________________________ 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