On Sun, Jan 29, 2006 at 12:07:50PM +0100, Marco d'Itri wrote:
> On Jan 29, di dit <[EMAIL PROTECTED]> wrote:
> 
> I can see why the rule does not work, at the removable==1 level we have
> BUS=="block" instead of the expected BUS=="ide", and DRIVER is only
> available at the upper level.
> Kay?

Correct, that broke with the stricter logic to select the parent device in
the recent udev. I'll go fix udev also to look at SYSFS at the device we
received the event for and not only at the device selected by BUS. Then it
should work again.

In the case you compile udev yourself, can you check, if adding this to
udev_rules.c fixes this?  I'm on the road at the moment and don't have an
IDE device, but the same logic works when testing with scsi.

                                value = 
sysfs_attr_get_value(udev->dev_parent->devpath, key_name);
                                if (value == NULL)
+                                       value = 
sysfs_attr_get_value(udev->dev->devpath, key_name);
+                               if (value == NULL)
                                        goto try_parent;
                                strlcpy(val, value, sizeof(val));

Thanks,
Kay


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to