From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 09 Jan 2004 20:35:27 +0000 Subject: Re: remove nodes in a directory Message-Id: <20040109203527.GA1473@vrfy.org> List-Id: References: <20040109191121.48518.qmail@web14905.mail.yahoo.com> In-Reply-To: <20040109191121.48518.qmail@web14905.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, Jan 09, 2004 at 12:28:16PM -0800, Jon Smirl wrote: > On add I have a rule like this: > REPLACE, KERNEL="card*", NAME="dri/card%n" > This causes the device node to be created in: > /udev/dri/card0 > The remove event does not delete this device node. > If I get rid of the rule it works fine. > > Where do the add/remove of the device nodes in the udev directory occur? When > this code is removing the device node it needs to transform the name through the > rules first. It should also clean up an empty subdirs. Yes, it does clean up empty subdirs. And as I said the rule is never used at remove. udev asks its data base or falls back on the default name. That propably why removing the rule works for you. Maybe it's not possible for udev to put the name in its data base at creation time. So we definitely need the debug for the create and remove event. Kay ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ 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