From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andreas Jellinghaus Date: Tue, 10 Jul 2007 15:46:57 +0000 Subject: Re: udev/ubuntu problem solved Message-Id: <200707101746.57406.aj@dungeon.inka.de> List-Id: References: <200707101653.31621.aj@dungeon.inka.de> In-Reply-To: <200707101653.31621.aj@dungeon.inka.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Tuesday 10 July 2007 17:39:24 Kay Sievers wrote: > What are theses guys smoking? That's so sick to bind-mount > /dev-directories to /proc! I wouldn't support such a system at all. It > is totally broken. I was worried about that too. I guess they made that change so all applications get the benefit of the ACL's in /dev/bus/usb without changes to the source code (i.e. path adjustment). > Are you using PROGRAM? That is for plugging external program into udev > to give devices a name or symlink. If you use RUN+=, your program > never runs before the node and all symlinks are created. no I'm using RUN+= and I thought this would work the wy you described. testing on ubuntu edgy (which has udev 108-0ubuntu4) shows this is different. when I have my loop inside the script I RUN+= I can increase the timeout to 20 seconds, still it times out as the $DEVICE file is not there. if I have the script start the loop in the background then it find the file after 100 ms (one sleep). maybe my diagnosis is a bit off: not the device file is created late, but the DEVICE event is processed first, and the other events are in a queue in the meantime till my RUN+= script is finished? and some other event triggers the creation of /dev/bus/usb/NNN/NNN and it is processes after the event with MODALIAS and DEVICE=/proc/bus/usb/NNN/NNN ? that would explain what I'm seing too. is this explanation possible? Thanks, Andreas ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ 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