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

From: Nate Lawson <nate_at_root.org>
Date: Mon, 22 Dec 2003 09:43:49 -0800 (PST)
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
> _at__at_ -272,7 +272,7 _at__at_
>  	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
Received on Mon Dec 22 2003 - 09:43:51 UTC