cvs commit: src/sys/fs/smbfs smbfs_vnops.c

Nate Lawson nate at root.org
Mon Dec 22 09:43:51 PST 2003


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


More information about the cvs-src mailing list