From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Fri, 01 Oct 2004 10:43:47 +0000 Subject: Re: Hanging udev process on nfs-mounted /dev Message-Id: <1096627428.4295.114.camel@localhost.localdomain> List-Id: References: <415980BF.1020401@bio.ifi.lmu.de> In-Reply-To: <415980BF.1020401@bio.ifi.lmu.de> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org On Fri, 2004-10-01 at 11:43 +0200, Frank Steiner wrote: > A general question for understanding things better: Let's assume that > the errors indeed are caused by missing nfs locking on my /dev dir. > It sounds reasonable that udev must be able to rely on propper locking > for maintaining its database, so one should not expect it to work on > a fs without locking. > Would it be reasonable to issue a warning if udev detects it's running > on a fs without locking (if this is possible to detect)? Or, if in > case of missing locks the hangs cannot be prevented, udev could even > refuse to do any work. If one gets a message from udev "No locks available. > I will not create any devices until you give me locks" this would > definitely help people doing stupid things like mounting /dev via NFS :-) We should find the loop bug first. Then the alarm() should be sufficient to prevent a hanging udev. Yes, we may include a hint in the logged error. We still can create nodes with udev, even with a corrupt database (I will change the alarm() patch to act like this later). Only the remove event will eventually fail, if a rule has set a custom name for the device. Other programs asking with udevinfo, may also not work correctly, but it's better to create the node without bookkeeping than to do nothing, I think. Best, Kay ------------------------------------------------------- This SF.net email is sponsored by: IT Product Guide on ITManagersJournal Use IT products in your business? Tell us what you think of them. Give us Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ 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