From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Thu, 11 Mar 2004 18:38:46 +0000 Subject: Re: udev and dbus Message-Id: <1079030326.1127.170.camel@pim> List-Id: References: <20040217214449.GB12411@wonderland.linux.it> In-Reply-To: <20040217214449.GB12411@wonderland.linux.it> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Thu, 2004-03-11 at 19:22, David Zeuthen wrote: > On Thu, 2004-03-11 at 19:12, Kay Sievers wrote: > > > > Just make udevsend wait until the nodes are created (we already have a > > > > patch for it from Chris) and execute udevsend as the first program with > > > > /sbin/hotplug. All the following programs are sure that the nodes on > > > > it's place and can query the node names with udevinfo. Easy, clean, nice > > > > transparent and understandable. > > > > > > > > > > Wearing a purist-hat, I would consider this a bad hack - so you want to > > > hardcode the requirement that udevinfo needs to run before anything into > > > whatever hotplug multiplexor is running? > > > > Why? If you don't need the node names don't wait for udevsend and don't > > call udevinfo. > > > > I may have misunderstood you - are you suggesting that I in my own > script for, e.g. hal, invoke udevsend even though /sbin/hotplug invoked > it? That might work, however, I guess (but dunno) it's double the work > for udev. Noooo :) 1. we change udevsend not to return until the nodes are created. 2. we ensure that udevsend is the first program called for the scripts that need the nodes 3. any following script can be sure to have all nodes on its place dbus-sender can ask udevinfo with the DEVPATH to get the names of the nodes. > Thanks for a good discussion. Yes, thanks too, it's getting hotter :) Kay ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id70&alloc_id638&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