Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Oct 1998 21:21:25 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        bright@hotjobs.com, current@FreeBSD.ORG
Subject:   Re: NFS broken with large files
Message-ID:  <199810301021.VAA09006@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>i have /com nfs mounted:
>from fstab:
>xxx:/com    /com        nfs   rw,tcp,bg,nfsv3   0  0
>
>ii'm trying to manipulate this file:
>/com/bkup % ls -l www1-local.tar
>-rw-r--r--  1 root  wheel  2162790400 Oct 27 21:56 www1-local.tar
>...
>I thought NFSv3 provided for very large file support?
>not only that, this file is not _that_ large... just 2gigs.

Only in theory.  Known bugs include gratuitous truncation of the file size
to u_long:

nfs/nfs_bio.c:			vnode_pager_setsize(vp, (u_long)np->n_size);
nfs/nfs_subs.c:			vnode_pager_setsize(vp, (u_long)np->n_size);
nfs/nfs_subs.c:			vnode_pager_setsize(vp, (u_long)np->n_size);
nfs/nfs_vnops.c:			vnode_pager_setsize(vp, (u_long)vap->va_size);
nfs/nfs_vnops.c:				vnode_pager_setsize(vp, (u_long)np->n_size);
nfs/nfs_vnops.c:		vnode_pager_setsize(vp, (u_long)np->n_size);

The casts are K&R support for the 4.4Lite vnode_pager_setsize() which
doesn't only supports u_long sizes.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810301021.VAA09006>