Re: [ANNOUNCE] udev 003 release

From: Greg KH
Date: Fri Oct 17 2003 - 13:27:59 EST


On Fri, Oct 17, 2003 at 11:57:16AM -0600, clemens@xxxxxxx wrote:
>
> The new udev is nice, and it 'works', but Im still having two problems:
> (1) Although the messages file shows that it is reading my
> /etc/udev/namedev.config file, the entries are being ignored.
> Ive tried both:
> LABEL, BUS="usb", serial="0B0201420527B284", NAME="usb_disk"
> and
> LABEL, BUS="usb", vendor="DMI", NAME="usb_disk"
>
> and all I get are /udev/ sda, sdb, sdc, sdd, ... as I plug and unplug.

If you turn on debugging for the parser in namedev.c by uncommenting the
comment at the top of the file:
/* define this to enable parsing debugging */
/* #define DEBUG_PARSER */

to look like:

/* define this to enable parsing debugging */
#define DEBUG_PARSER

It will give you a lot of information about what the parser is reading,
and trying to match up with your device. If you could send me the
system debug log from when you plug in your device with the DEBUG_PARSER
define enabled, I'd be glad to look into it.

> /udev, I now get just /udev/sda . Previously (0.2) I got both
> sda and sda1 . Needless to say, a mount attempt on /udev/sda1
> now fails. [[ and if I tell it NAME="usb_disk" what should I
> expect for the name of the first partition???
>
> Am I missing something???

No, I think I broke the partition logic somewhere. I think the name of
the first partition in this case should be "usb_disk1". Yeah, it's a
hack for now, hopefully some new libsysfs changes in regards to the
block sysfs tree will help out with this (it's really hard to determine
the partition is different from the main block device right now in
udev.)

Ah, yeah, udev seg faults right now for partitions. Let me try to track
down the bug, give me a bit of time...

thanks for letting me know,

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/