From nobody@FreeBSD.org  Fri Apr 19 05:54:44 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	by hub.freebsd.org (Postfix) with ESMTP id 95A7DA7B
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Apr 2013 05:54:44 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id 8780F9E8
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Apr 2013 05:54:44 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.5/8.14.5) with ESMTP id r3J5sfuS058584
	for <freebsd-gnats-submit@FreeBSD.org>; Fri, 19 Apr 2013 05:54:42 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.5/8.14.5/Submit) id r3J5sfIp058583;
	Fri, 19 Apr 2013 05:54:41 GMT
	(envelope-from nobody)
Message-Id: <201304190554.r3J5sfIp058583@red.freebsd.org>
Date: Fri, 19 Apr 2013 05:54:41 GMT
From: "Mihai M." <mmihai@delajii.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: FreeBSD 9.1 nfs client dirlist problem w/ nfsv3,rsize=4096,wsize=4096 
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         177971
>Category:       kern
>Synopsis:       [nfs] FreeBSD 9.1 nfs client dirlist problem w/ nfsv3,rsize=4096,wsize=4096
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-fs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Fri Apr 19 06:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Sat Apr 20 17:08:58 UTC 2013
>Originator:     Mihai M.
>Release:        9.1-RELEASE
>Organization:
>Environment:
FreeBSD cronus.delajii 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243826: Tue Dec  4 06:55:39 UTC 2012     root@obrian.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
9.1-RELEASE nfs client seems to have a problem with dir read (listing) when
the system is mounted with nfsv3,rsize=4096,wsize=4096 or
nfsv3,rsize=2049,wsize=2048 (may be others sizes too). Some of the file
names are missing from the result and others are duplicated. Tried with
7.2-STABLE FreeBSD and Linux 2.6.32.12 as server, same result. The
nfs_bug.py works ok under FreeBSD 8.2.

>How-To-Repeat:
mount -o nfsv3,rsize=4096,wsize=4096 server:/export /mnt

Run the python nfs_bug.py program from 

http://www.delajii.net/mmWiKi/_media/docs:code:nfs_bug.py

>Fix:
Mounting the nfs dir with defaults does not show the problem. Changing to nfsv2 or other rsize/wsize combinations seem to be ok (i.e. rsize=8192,wsize=8192 looks ok for now).


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-fs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Sat Apr 20 17:08:46 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer(s). 

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