Messages in this thread | | | Date | Wed, 14 Jan 2004 13:14:17 -0800 | From | Greg KH <> | Subject | Re: [ANNOUNCE] udev 013 release |
| |
On Wed, Jan 14, 2004 at 07:23:11PM +0000, Nuno Silva wrote: > This would be nice but I think that full info for every new hotplugged > device is even better. It's only 1 line :-)
Heh, care to make that one line patch? :)
> Lame people, like myself, will make this rule: > > BUS="scsi", SYSFS_model="CD-Writer cd4f*", KERNEL="sr*", NAME="cdrw" > > When I connect a second drive (same model) /udev/cdrw will be > overwritten.
No, the node will not be overwritten. The mknod() syscall will fail due to the node already being present. What would happen is that your new node would not be created.
> So I'd want to check the logs, find some difference between > the two and create a new entry "myfriends-cdrw". > > (I know that NAME="cdrw%n" would work but that depends on the order you > plug things).
Heh.
I'm thinking that having such a log message would be a good thing. Now to go figure out what log level to make those messages...
thanks,
greg k-h - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
| |