From: David Zeuthen Date: Thu, 11 Mar 2004 18:22:38 +0000 Subject: Re: udev and dbus Message-Id: <1079029357.1571.98.camel@powerbook.fubar.dk> 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: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. > > No. I'm simply asking that udev executes a program when it add/removes > > device nodes, that's all - calling this an arbritary hotplug script > > engine is simply not representative of what I ask for. I've said I'm > > even willing to write the patch myself :-) > > I expect lot of lazy people to put their scripts in there, cause it's so > comfortable to live inside the serialized hotplug events. > > Something like this: > "Nice, I can mount my USB-stick with udev.d/ right after udev has > created my partition node, cause the scsi.agent was too fast..." > Well, part of the grand scheme that Robert Love calls Project Utopia (which includes hal and udev) aims to solve this problem (and world hunger, see [1]) so people don't need to learn to write scripts just to use an USB-stick. Seriously, having to write a script to use an USB-stick is just, uhmm, so 90-ish ;-) and I think that Linux distributions need to move away from this. Anyway... > So I still vote for not doing this. > Thanks for a good discussion. Cheers, David [1] : http://www.cafeshops.com/tarnished.9454841 ------------------------------------------------------- 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