From: Jon Smirl Date: Fri, 09 Jan 2004 20:28:16 +0000 Subject: Re: remove nodes in a directory Message-Id: <20040109202817.5427.qmail@web14910.mail.yahoo.com> 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 The init scipts aren't the problem, same problem happens when I remove my kernel module. 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. --- Kay Sievers wrote: > On Fri, Jan 09, 2004 at 11:11:21AM -0800, Jon Smirl wrote: > > > When I stopped udev to switch I noticed that it does not remove /dri/card0. > I > > removed the rule that puts card0 in a subdir and it was removed ok. So it > looks > > like udev stop is not applying rules for finding things in subdirs. > > Do you mean the init script with "stop"? I never tried it :) > > udev is not evaluating any rule if you call it with the remove action, > it asks its data base for the filename. I expect the problem somewhere > else. > > Could you provide the debug for the failing remove action? > > thanks, > Kay ==Jon Smirl jonsmirl@yahoo.com __________________________________ Do you Yahoo!? Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes http://hotjobs.sweepstakes.yahoo.com/signingbonus ------------------------------------------------------- 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