From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Wed, 16 Feb 2005 16:08:55 +0000 Subject: Re: [ANNOUNCE] hotplug-ng 001 release Message-Id: <20050216160855.GA5296@vrfy.org> List-Id: References: <20050211004033.GA26624@suse.de> In-Reply-To: <20050211004033.GA26624@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Wed, Feb 16, 2005 at 06:17:10PM +0300, Roman Kagan wrote: > On Wed, Feb 16, 2005 at 01:37:41PM +0100, Kay Sievers wrote: > > Be aware that we need this functionality inside of udev too, cause udev/udevd > > manages the hotplug events at least on Gentoo, Fedora and SUSE, and the > > later two can never use the tiny multiplexer, cause these systems do not > > support installations without udev. > > Is there any reason why the hotplug multiplexer part of udev should have > different codebase from the tiny hotplug? No, but anyway I don't see any real use case for that program at all. You have all the random hotplug event order and the bad sysfs timing problems which is definitely not what you want to have in a "next generation"-hotplug. :) And with your proposed $DEVALIAS changes the hotplug-ng gets so small that it may be easier for it to live in the udev tree? > > And we already have a something like fnmatch in udev, which compiles nicely > > with klibc. :) > > Do you mean namedev.c:strcmp_pattern() ? That should do I think. Then > it'll probably need udev_utils.c:call_foreach_file() to allow one-level > recursion into the subdirectories and to accept a matcher for their > names as an extra parameter. Sounds good to me. We may change the suffix parameter to accept a match string instead? And we change this function to return a sorted list of files which are matching. > Alternatively, one can put a $DEVALIAS multiplexer script in each of the bus > directories in /etc/hotplug.d, so that the main hotplug multiplexer is > unchanged. Hmm, I prefer the first one. Kay ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_ide95&alloc_id396&op=click _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel