From owner-cvs-all@FreeBSD.ORG Sat Jan 10 00:24:34 2004 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 DEEC316A4CE; Sat, 10 Jan 2004 00:24:34 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2E39843D2D; Sat, 10 Jan 2004 00:24:34 -0800 (PST) (envelope-from tjr@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0A8OY0B047685; Sat, 10 Jan 2004 00:24:34 -0800 (PST) (envelope-from tjr@repoman.freebsd.org) Received: (from tjr@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0A8OXGZ047684; Sat, 10 Jan 2004 00:24:33 -0800 (PST) (envelope-from tjr) Message-Id: <200401100824.i0A8OXGZ047684@repoman.freebsd.org> From: "Tim J. Robbins" Date: Sat, 10 Jan 2004 00:24:33 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/sys/nfs nfs_vnops.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: Sat, 10 Jan 2004 08:24:35 -0000 tjr 2004/01/10 00:24:33 PST FreeBSD src repository Modified files: (Branch: RELENG_4) sys/nfs nfs_vnops.c Log: MFC: Fix a problem that occurs when truncating files on NFSv3 mounts: we need to set np->n_size back to the desired size again after calling nfs_meta_setsize(), since it could end up in nfs_loadattrcache() getting called, which would change n_size back to the value it had before the truncate request was issued. The result of this bug is that the size info cached in the nfsnode becomes incorrect, lseek(fd, ofs, SEEK_END) seeks past the end of the file, stat() returns the wrong size, etc. PR: 41792 Revision Changes Path 1.150.2.8 +7 -1 src/sys/nfs/nfs_vnops.c