From: Greg KH Date: Fri, 02 Apr 2004 22:17:15 +0000 Subject: Re: [PATCH] tweak node unlink handling Message-Id: <20040402221714.GB12204@kroah.com> List-Id: References: <20040402220452.GA17866@vrfy.org> In-Reply-To: <20040402220452.GA17866@vrfy.org> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Sat, Apr 03, 2004 at 12:04:52AM +0200, Kay Sievers wrote: > Based on a patch from Olaf Hering we remove the node now only if the > requested dev_t is different from the already existing node, so any > run of udevstart should preserve the inode number of the node file. > > syslog while the right node is already there: > creating device node '/udev/hda' > make_node: preserve file '/udev/hda', cause it has correct dev_t > make_node: chmod(/udev/hda, 060600) > > syslog for wrong file already there: > creating device node '/udev/hda' > make_node: already present file '/udev/hda' unlinked > make_node: chmod(/udev/hda, 060600) > > syslog for directory with same name already there: > creating device node '/udev/hda' > make_node: unlink(/udev/hda) failed with error '21' Nice, thanks for cleaning up the patch and getting it to apply. greg k-h ------------------------------------------------------- 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