Date: Mon, 22 Dec 2003 09:43:49 -0800 (PST) From: Nate Lawson <nate@root.org> To: "Tim J. Robbins" <tjr@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sys/fs/smbfs smbfs_vnops.c Message-ID: <20031222094247.Y88639@root.org> In-Reply-To: <20031222123346.E18FC16A55C@hub.freebsd.org> References: <20031222123346.E18FC16A55C@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031222094247.Y88639>