Re: [ANNOUNCE] udev 013 release
From: Greg KH
Date: Wed Jan 14 2004 - 16:17:08 EST
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@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/