Re: RPCPROG_MNT: RPC: Timed out / receiving NFS error when trying to mount NFS file system after make world

From: Rick Macklem <rmacklem_at_uoguelph.ca>
Date: Tue, 2 Jun 2009 11:43:10 -0400 (EDT)
On Tue, 2 Jun 2009, O. Hartmann wrote:

> Hello,
> since today I get this error when trying to mount a NFS filesystem from NFS 
> server:
>
> [udp] foo:/home: RPCPROG_MNT: RPC: Timed out
>
> Both boxes, cleint and server, are most recent FreeBSD 8.0-CURRENT/amd64 from 
> today's buildworld/make kernel.
>
What's the expression you guys use? "The pointy hat points at me."

It looks like I broke parsing of /etc/exports for the case where there
are continuation lines (I didn't have any of those in my test examples,
but do now;-).

Sorry about that. I'll be looking it over more carefully, but I'll bet
that the following patch fixes the problem (and I'm guessing you do have
contnuation lines in your /etc/exports?).

Please try this patch and see if it helps, rick
--- test patch for mountd.c ---
--- mountd.c.sav	2009-06-02 11:28:19.000000000 -0400
+++ mountd.c	2009-06-02 11:36:53.000000000 -0400
_at__at_ -1191,12 +1191,12 _at__at_
  		got_nondir = 0;
  		opt_flags = 0;
  		ep = (struct exportlist *)NULL;
-		dirp = NULL;

  		/*
  		 * Handle the V4 root dir.
  		 */
  		if (*cp == 'V' && *(cp + 1) == '4' && *(cp + 2) == ':') {
+			dirp = NULL;
  			/*
  			 * V4: just indicates that it is the v4 root point,
  			 * so skip over that and set v4root_phase.
Received on Tue Jun 02 2009 - 13:42:00 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:49 UTC