NetBSD Problem Report #9592

Received: (qmail 9473 invoked from network); 10 Mar 2000 02:26:04 -0000
Message-Id: <197003110221.VAA00760@chomp.mit.edu>
Date: Tue, 10 Mar 1970 21:21:01 -0500 (EST)
From: jered@mit.edu
Reply-To: jered@mit.edu
To: gnats-bugs@gnats.netbsd.org
Subject: TCP NFS mounts fail to read files
X-Send-Pr-Version: 3.95

>Number:         9592
>Category:       kern
>Synopsis:       TCP NFS mounts file to read files
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Mar 09 18:27:00 +0000 2000
>Closed-Date:    Mon Nov 20 16:02:56 +0000 2000
>Last-Modified:  Mon Nov 20 16:02:56 +0000 2000
>Originator:     Jered Floyd
>Release:        1.4M compiled Sun Nov 7
>Organization:
	MIT
>Environment:

System: NetBSD chomp.mit.edu 1.4M NetBSD 1.4M (SHARK) #0: Sun Nov 7 00:26:21 EST 1999 root@chomp.mit.edu:/u2/src/sys/arch/arm32/compile/SHARK arm32


>Description:
	NFS servers can be mounted over TCP, and directories can be read,
	but attempts to read files yields "RPC struct is bad". This has
	only been tested vs. the Linux user-space server.

>How-To-Repeat:
	mount -o tcp music.grey17.org:/music /nfs/grey
	cd /nfs/grey/a/AC_DC/Back_In_Black
	cp t01.mp3 /tmp

	(This is on CHOMP.MIT.EDU, set up by mycroft.)

>Fix:
>Release-Note:
>Audit-Trail:

From: Jason R Thorpe <thorpej@shagadelic.org>
To: jered@mit.edu
Cc: gnats-bugs@gnats.netbsd.org, netbsd-bugs@netbsd.org
Subject: Re: port-arm32/9592: TCP NFS mounts fail to read files
Date: Thu, 9 Mar 2000 18:40:05 -0800

 On Tue, Mar 10, 1970 at 09:21:01PM -0500, jered@mit.edu wrote:

  > >Description:
  > 	NFS servers can be mounted over TCP, and directories can be read,
  > 	but attempts to read files yields "RPC struct is bad". This has
  > 	only been tested vs. the Linux user-space server.

 This is a bug in the Linux NFS server.  The Linux system is claiming
 that it can do NFSv3, but in fact it can only do NFSv2.  When the NetBSD
 client does an NFSv3 request, it fails.

 -- 
         -- Jason R. Thorpe <thorpej@shagadelic.org>

From: Jaromir Dolecek <dolecek@ics.muni.cz>
To: thorpej@shagadelic.org
Cc: jered@mit.edu, gnats-bugs@gnats.netbsd.org
Subject: Re: port-arm32/9592: TCP NFS mounts fail to read files
Date: Sun, 12 Mar 2000 12:38:55 +0100 (MET)

 Jason R Thorpe wrote:
 > On Tue, Mar 10, 1970 at 09:21:01PM -0500, jered@mit.edu wrote:
 > 
 >  > >Description:
 >  > 	NFS servers can be mounted over TCP, and directories can be read,
 >  > 	but attempts to read files yields "RPC struct is bad". This has
 >  > 	only been tested vs. the Linux user-space server.
 > 
 > This is a bug in the Linux NFS server.  The Linux system is claiming
 > that it can do NFSv3, but in fact it can only do NFSv2.  When the NetBSD
 > client does an NFSv3 request, it fails.

 Is it possible to somehow detect this way broken Linux server,
 when negotiating the type of connection and supported NFS version ?

 Jaromir
 -- 
 Jaromir Dolecek <jdolecek@NetBSD.org>      http://www.ics.muni.cz/~dolecek/
 @@@@  Wanna a real operating system ? Go and get NetBSD, damn!  @@@@

From: Jason R Thorpe <thorpej@shagadelic.org>
To: Jaromir Dolecek <dolecek@ics.muni.cz>
Cc: jered@mit.edu, gnats-bugs@gnats.netbsd.org
Subject: Re: port-arm32/9592: TCP NFS mounts fail to read files
Date: Sun, 12 Mar 2000 08:51:46 -0800

 On Sun, Mar 12, 2000 at 12:38:55PM +0100, Jaromir Dolecek wrote:

  > > This is a bug in the Linux NFS server.  The Linux system is claiming
  > > that it can do NFSv3, but in fact it can only do NFSv2.  When the NetBSD
  > > client does an NFSv3 request, it fails.
  > 
  > Is it possible to somehow detect this way broken Linux server,
  > when negotiating the type of connection and supported NFS version ?

 Not really.  NFSv3 etc. is not negotiated... it just uses the same
 mechanism as all other RPC programs are versioned.

 -- 
         -- Jason R. Thorpe <thorpej@shagadelic.org>
State-Changed-From-To: open->analyzed 
State-Changed-By: is 
State-Changed-When: Sun Nov 19 11:56:07 PST 2000 
State-Changed-Why:  
Analyzed to be a Linux NFS serer problem. 
Workaround: enforce usage of NVS v2 when ealing with Linux. 


Responsible-Changed-From-To: port-arm32-maintainer->kern-bug-people 
Responsible-Changed-By: is 
Responsible-Changed-When: Sun Nov 19 11:56:07 PST 2000 
Responsible-Changed-Why:  
This is not Arm32-specific. 
State-Changed-From-To: analyzed->closed 
State-Changed-By: is 
State-Changed-When: Mon Nov 20 07:53:06 PST 2000 
State-Changed-Why:  
This is a bug in the Linux NFS server, which claims it serves NFS revision 3, 
while only serving NFS revision 2. 

The workaround is to use mount_nfs -2 to enforce NFS v2 operation on the 
client side. You won't see the performance benefits of NFS v3 that way, 
however. To get them, use a better NFS server. 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.