NetBSD Problem Report #22685

Received: (qmail 6301 invoked by uid 605); 4 Sep 2003 19:43:37 -0000
Message-Id: <20030904194331.38F1411152@narn.netbsd.org>
Date: Thu,  4 Sep 2003 19:43:31 +0000 (UTC)
From: der.eremit@email.de
Sender: gnats-bugs-owner@NetBSD.org
Reply-To: der.eremit@email.de
To: gnats-bugs@gnats.NetBSD.org
Subject: NFS client does not work with wtpref/wtmax of 8192
X-Send-Pr-Version: www-1.0

>Number:         22685
>Category:       kern
>Synopsis:       NFS client does not work with wtpref/wtmax of 8192
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 04 19:44:00 +0000 2003
>Closed-Date:    
>Last-Modified:  
>Originator:     Pascal Schmidt
>Release:        1.6.1
>Organization:
>Environment:
i386 GENERIC
>Description:
When mounting an NFS volume from an NFS server that advertises a maximum and preferred write size of 8192 bytes, the NetBSD NFS client code attempts to send 8192 byte writes, but does not send the full 8192 bytes of data in the request. Only around 7900 bytes are sent. That causes an RPC error on the server, and data on the server is unchanged. This repeats until we get to a write operation that sends less than 7900 bytes. This last request succeeds on the server, while the rest of the data was not written to the server's disk.

This means writing more than about 7900 bytes to a file on the NFS volume will fail, and only the last part of the data will make it onto the server.

When looking at the request sent by NetBSD via ethereal, the outgoing requests already have the data portion truncated.

Changing the server to report wtpref/wtmax of 4096 hides the bug, but
costs performance since smaller write requests are generated.

>How-To-Repeat:
mount /mnt/nfs from a server with wtpref/wtmax 8192
rm /mnt/nfs/services
cp /etc/services /mnt/nfs

result: error message from cp, first 8192 bytes of the file filled with 0, rest of the data is okay


>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.