From mboxrd@z Thu Jan 1 00:00:00 1970 From: Martin Pitt Date: Mon, 21 Dec 2009 15:32:01 +0000 Subject: Re: speed up udev-acl.mk Message-Id: <20091221153201.GC2268@piware.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org Hey Kay, 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. Martin -- Martin Pitt | http://www.piware.de Ubuntu Developer (www.ubuntu.com) | Debian Developer (www.debian.org)