From lofi@lofi.dyndns.org  Sat Jan 25 15:21:20 2003
Return-Path: <lofi@lofi.dyndns.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id A316C37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 2003 15:21:20 -0800 (PST)
Received: from meitner.wh.uni-dortmund.de (meitner.wh.Uni-Dortmund.DE [129.217.129.133])
	by mx1.FreeBSD.org (Postfix) with ESMTP id D80FF43F5F
	for <FreeBSD-gnats-submit@freebsd.org>; Sat, 25 Jan 2003 15:21:18 -0800 (PST)
	(envelope-from lofi@lofi.dyndns.org)
Received: from lofi.dyndns.org ([10.3.12.105])
	by meitner.wh.uni-dortmund.de (8.10.2/8.10.2/SuSE Linux 8.10.0-0.3) with ESMTP id h0PNLDc28474
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jan 2003 00:21:14 +0100
Received: from lofi.dyndns.org (lofi@localhost [127.0.0.1])
	by lofi.dyndns.org (8.12.6/8.12.6) with ESMTP id h0PNKwKu058704
	(version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO)
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 26 Jan 2003 00:20:59 +0100 (CET)
	(envelope-from lofi@lofi.dyndns.org)
Received: (from lofi@localhost)
	by lofi.dyndns.org (8.12.6/8.12.6/Submit) id h0PNKvhi058703;
	Sun, 26 Jan 2003 00:20:57 +0100 (CET)
	(envelope-from lofi)
Message-Id: <200301252320.h0PNKvhi058703@lofi.dyndns.org>
Date: Sun, 26 Jan 2003 00:20:57 +0100 (CET)
From: Michael Nottebrock <lofi@lofi.dyndns.org>
Reply-To: Michael Nottebrock <michaelnottebrock@gmx.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: amd cannot mount 5.0-RELEASE nfs-exports
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         47496
>Category:       bin
>Synopsis:       amd cannot mount 5.0-RELEASE nfs-exports
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mbr
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 25 15:30:01 PST 2003
>Closed-Date:    Thu Jun 05 14:03:07 PDT 2003
>Last-Modified:  Thu Jun 05 14:03:07 PDT 2003
>Originator:     Michael Nottebrock
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
>Environment:
System: FreeBSD lofi.dyndns.org 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Sat Jan 18 22:20:27 CET 2003 root@lofi.dyndns.org:/usr/obj/usr/src/sys/LOFI i386


	
>Description:
	amd cannot mount nfs-exports exported from a 5.0-RELEASE system.
	
	I have tested this with amd on 4.7-STABLE and 5.0-RELEASE.

>How-To-Repeat:
	Here's an easily repeatable procedure that only requires one
	5.0-RELEASE box:
	
	Enable amd with factory defaults and enable nfs-serving:

	- Put
		nfs_client_enable="YES"
		nfs_server_enable="YES"
		amd_enable="YES"
	into /etc/rc.conf

	- Create the /host and /net directories.
	- Export a filesystem by editing /etc/exports. Example:
	/var    -alldirs -maproot=0     127.0.0.1
	
	- Restart system or start nfsd, mountd & amd manually.
	- Issue 'ls /net/127.0.0.1'
	- Wait for timeout, then look at error in /var/log/messages



>Fix:

	no idea


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: bmah 
State-Changed-When: Sat Apr 19 17:58:09 PDT 2003 
State-Changed-Why:  
This problem looks a lot like a problem noted in the 5.0-RELEASE 
errata (and subsequently fixed).  Have you tried a 5.0-CURRENT 
snapshot to see if this problem has been fixed? 


http://www.freebsd.org/cgi/query-pr.cgi?pr=47496 

From: Michael Nottebrock <michaelnottebrock@gmx.net>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/47496: amd cannot mount 5.0-RELEASE nfs-exports
Date: Thu, 5 Jun 2003 21:35:38 +0200

 This bug has now been fixed in 5-CURRENT and 5.1-RELEASE won't have it. Since 
 I doubt anyone will want to port the fix back to RELENG_5_0, I guess this bug 
 can be closed.
 
Responsible-Changed-From-To: freebsd-bugs->mbr 
Responsible-Changed-By: mbr 
Responsible-Changed-When: Thu Jun 5 14:01:02 PDT 2003 
Responsible-Changed-Why:  
Take this PR 

http://www.freebsd.org/cgi/query-pr.cgi?pr=47496 
State-Changed-From-To: feedback->closed 
State-Changed-By: mbr 
State-Changed-When: Thu Jun 5 14:02:16 PDT 2003 
State-Changed-Why:  
The fix will also work for 5.0R. Close this PR. 

--- lib/libc/xdr/xdr_rec.c.orig	Thu Feb 27 13:40:01 2003 
+++ lib/libc/xdr/xdr_rec.c	Sat May 17 17:20:24 2003 
@@ -489,15 +489,6 @@ 
XDR *xdrs; 
{ 
RECSTREAM *rstrm = (RECSTREAM *)(xdrs->x_private); 
-	enum xprt_stat xstat; 
- 
-	if (rstrm->nonblock) { 
-		if (__xdrrec_getrec(xdrs, &xstat, FALSE)) 
-			return FALSE; 
-		if (!rstrm->in_haveheader && xstat == XPRT_IDLE) 
-			return TRUE; 
-		return FALSE; 
-	} 

while (rstrm->fbtbc > 0 || (! rstrm->last_frag)) { 
if (! skip_input_bytes(rstrm, rstrm->fbtbc)) 
@@ -744,6 +735,8 @@ 
{ 
u_int32_t current; 

+	if (rstrm->nonblock) 
+		return FALSE; 
while (cnt > 0) { 
current = (size_t)((long)rstrm->in_boundry -  
(long)rstrm->in_finger); 



http://www.freebsd.org/cgi/query-pr.cgi?pr=47496 
>Unformatted:
