From owner-cvs-all@FreeBSD.ORG Tue Jun 24 12:04:27 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 77C7E37B401; Tue, 24 Jun 2003 12:04:27 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 101AF43F3F; Tue, 24 Jun 2003 12:04:27 -0700 (PDT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h5OJ4Q0U086445; Tue, 24 Jun 2003 12:04:26 -0700 (PDT) (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h5OJ4Qd8086440; Tue, 24 Jun 2003 12:04:26 -0700 (PDT) Message-Id: <200306241904.h5OJ4Qd8086440@repoman.freebsd.org> From: Ian Dowse Date: Tue, 24 Jun 2003 12:04:26 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/nfsserver nfs_serv.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jun 2003 19:04:27 -0000 iedowse 2003/06/24 12:04:26 PDT FreeBSD src repository Modified files: sys/nfsserver nfs_serv.c Log: Fix a bug in nfsrv_read() that caused the replies to certain NFSv3 short read operations at the end of a file to not have the "eof" flag set as they should. The problem is that the requested read count was compared against the rounded-up reply data length instead of the actual reply data length. This bug appears to have been introduced in revision 1.78 (June 1999). It causes first-time reads of certain file sizes (e.g 4094 bytes) to fail with EIO on a RedHat 9.0 NFSv3 client. MFC after: 1 week Revision Changes Path 1.136 +1 -1 src/sys/nfsserver/nfs_serv.c