Re: [ANNOUNCE] udev 013 release

From: Nuno Silva
Date: Wed Jan 14 2004 - 14:28:55 EST



Hi Chris!
Hi Greg!

Chris Friesen wrote:
Greg KH wrote:
>
Yeah, but what exactly would udev print out? All of the sysfs files in
the device it found? Would it print it out for every device that comes
through? Or just for ones that no rule applied to?



Maybe for ones with a matching rule, you could print something like:

udev[1234]: new device found matching rule <blah>, creating device node <nodename>

For ones that don't match any rules, you could dump out all the info:

udev[1234]: new device found with no matching rules, device info: blah blah


This would be nice but I think that full info for every new hotplugged device is even better. It's only 1 line :-)

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. 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).

Regards,
Nuno Silva

-
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/