From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Swan Subject: Re: Re: debug failed automount Date: Sun, 1 May 2005 19:18:21 -0400 Message-ID: <1110130205050116184381a11e@mail.gmail.com> References: <11101302050428071921ec8bb7@mail.gmail.com> <11101302050429222770e0df9d@mail.gmail.com> Reply-To: Robert Swan Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Return-path: In-Reply-To: Content-Disposition: inline List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autofs-bounces@linux.kernel.org Errors-To: autofs-bounces@linux.kernel.org Content-Type: text/plain; charset="us-ascii" To: "raven@themaw.net" Cc: autofs@linux.kernel.org On 5/1/05, raven@themaw.net wrote: > On Sat, 30 Apr 2005 raven@themaw.net wrote: > > My response was a bit hasty I think. > > > On Sat, 30 Apr 2005, Robert Swan wrote: > > > >> > > >> > One point is that the remote host is accessed through a VPN tunnel. > >> > >> so as it turns out, this is the problem. The rpc_time call fails (I > >> assume this is because it is not supported by the VPN) and this marks > >> my only host as dead and automount does not attempt to mount. Even > >> though the mount actually works fine. > > > > Why? The rpc_ping connects to port 2049 on the target host. > > You may be seeing a bug with the autofs mount code not trying a longer > timeout if it fails to get a response in time. I'm a bit confused myself because I can no longer replicate my problem. I had made a test program to call your get_best_mount() with my particular arguments so I could step through it, and I'm _sure_ (aren't we all) that it would get a failed status from rpc_time at line 238 and so would not assign a winner. I changed initial assignment of "winner" at the start of the function which solved my problem. I didn't look inside rpc_time to see what was going wrong; I tried to do that today and now the status from rpc_time() is successful, and your original code performs the mounts. So I don't have a bug report and you can ignore me. Is there a way to attach a debugger to the automount process that gets spawned when the kernel attempts an automount? Thanks anyhow for answering. Robert > > > _______________________________________________ > > autofs mailing list > > autofs@linux.kernel.org > > http://linux.kernel.org/mailman/listinfo/autofs > > > >