From owner-cvs-all@FreeBSD.ORG Mon Dec 22 09:43:51 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 7F2B116A4CE for ; Mon, 22 Dec 2003 09:43:51 -0800 (PST) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id B371843D5E for ; Mon, 22 Dec 2003 09:43:48 -0800 (PST) (envelope-from nate@rootlabs.com) Received: (qmail 88659 invoked by uid 1000); 22 Dec 2003 17:43:49 -0000 Date: Mon, 22 Dec 2003 09:43:49 -0800 (PST) From: Nate Lawson To: "Tim J. Robbins" In-Reply-To: <20031222123346.E18FC16A55C@hub.freebsd.org> Message-ID: <20031222094247.Y88639@root.org> References: <20031222123346.E18FC16A55C@hub.freebsd.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: cvs-src@FreeBSD.org cc: src-committers@FreeBSD.org cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/smbfs smbfs_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: Mon, 22 Dec 2003 17:43:51 -0000 On Mon, 22 Dec 2003, Tim J. Robbins wrote: > Modified files: > sys/fs/smbfs smbfs_vnops.c > Log: > Make oldsize in smbfs_getattr() 64 bits wide instead of 32 to avoid > truncation when files are larger than 4GB. > > Revision Changes Path > 1.43 +1 -1 src/sys/fs/smbfs/smbfs_vnops.c > > --- src/sys/fs/smbfs/smbfs_vnops.c:1.42 Sat Oct 18 04:06:15 2003 > +++ src/sys/fs/smbfs/smbfs_vnops.c Mon Dec 22 04:33:31 2003 > @@ -272,7 +272,7 @@ > struct vattr *va=ap->a_vap; > struct smbfattr fattr; > struct smb_cred scred; > - u_int32_t oldsize; > + u_quad_t oldsize; > int error; > > SMBVDEBUG("%lx: '%s' %d\n", (long)vp, np->n_name, (vp->v_vflag & VV_ROOT) != 0); I believe u_quad_t is deprecated in favor of uint64_t or uintmax_t. -Nate