From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Wed, 10 Mar 2004 22:53:41 +0000 Subject: Re: [ANNOUNCE] udev 021 release Message-Id: <20040310225341.GF24336@kroah.com> List-Id: References: <20040303000957.GA11755@kroah.com> <4046CE91.50701@kubla.de> <20040304184442.GH13907@kroah.com> <40482ACC.3070504@kubla.de> In-Reply-To: <40482ACC.3070504@kubla.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Dominik Kubla Cc: linux-kernel@vger.kernel.org, linux-hotplug-devel@lists.sourceforge.net On Fri, Mar 05, 2004 at 08:22:52AM +0100, Dominik Kubla wrote: > >Permissions are based on the name of the device. > > > > Oh, i realized that. But my point is: shouldn't they be based on the > CLASS of the device rather than the name? After all the names are > changeable, but the class is not... > > I checked the hotplug-devel archives and saw that somebody has already > posted a patch doing that. So i guess the question boils down to: > Will you accept it or not? Ok, I'm convinced now. I just took a patch that does this. > >>Is there a way to distinguish between CD-ROM, DVD-ROM and writers? It is > >>not unusual these days to have at least a DVD-ROM and CD-Writer in a > >>desktop system. If you look at the latest offers from Dell you will see > >>that they tend to include a DVD-ROM and a DVD+RW drive in at least some > >>configurations. So it would be nice if udev would be able to create > >>links like "cdwriter", "dvd" and "dvdwriter" out of the box. (And assign > >>the appropriate group to the device nodes...) > > > > > >You can do that, just name them differently based on the type of device. > >Also, try providing a symlink to "cdrom" to not break what users are > >expecting. > > Would you care to explain how to do it? Is there some way that you can see in sysfs or in /proc that you can use to detect these devices differently? thanks, greg k-h ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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