Re: speed up udev-acl.mk

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Dec 21, 2009 at 16:32, Martin Pitt <martin.pitt@xxxxxxxxxx> wrote:
> Kay Sievers [2009-12-21 16:25 +0100]:
>> If it's only about the ACL stuff, we could change the udev-acl logic
>> to maintain hidden symlinks in:
>>   /dev/.udev/acl/c116:32 -> ../../snd/controlC1
>>
>> then the udev-acl program would just need to apply the same ACL to all
>> nodes found in this directory. :)
>
> This would be one option.
>
> I thought about providing a special-case implementation of
> udev_enumerate_scan_devices() which fires when there is only a
> property match and nothing else. In this case we could just walk
> /dev/.udev/db (which we have to do anyway to match the properties) and
> skip the /sys walk. This would speedup other applications as well
> which search for tagged devices.

We do not distinguish at the moment between kernel properties and
udev-added properties. This would work only for udev-added stuff, and
break things which match on kernel-supplied properties which are
imported from the "uevent" file.

Kay
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux DVB]     [Asterisk Internet PBX]     [DCCP]     [Netdev]     [X.org]     [Util Linux NG]     [Fedora Women]     [ALSA Devel]     [Linux USB]

  Powered by Linux