Re: [ANNOUNCE] udev 021 release

From: Greg KH
Date: Wed Mar 10 2004 - 18:16:20 EST


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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/