]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
When using NFSv3, use the remote server's idea of the maximum file size
authorPeter Wemm <peter@FreeBSD.org>
Sat, 30 May 1998 16:33:58 +0000 (16:33 +0000)
committerPeter Wemm <peter@FreeBSD.org>
Sat, 30 May 1998 16:33:58 +0000 (16:33 +0000)
commit7c1c33a7dd16e123fb836b48b7318eca0026d75e
tree4f808c23626fbcbe2da4ab45af795e14b7e43829
parent6edfc50c8e9d5097a2f5e82cc8a6d7b1de5f9bd3
When using NFSv3, use the remote server's idea of the maximum file size
rather than assuming 2^64.  It may not like files that big. :-)
On the nfs server, calculate and report the max file size as the point
that the block numbers in the cache would turn negative.
(ie: 1099511627775 bytes (1TB)).

One of the things I'm worried about however, is that directory offsets
are really cookies on a NFSv3 server and can be rather large, especially
when/if the server generates the opaque directory cookies by using a local
filesystem offset in what comes out as the upper 32 bits of the 64 bit
cookie.  (a server is free to do this, it could save byte swapping
depending on the native 64 bit byte order)

Obtained from: NetBSD
sys/nfs/nfs_bio.c
sys/nfs/nfs_serv.c
sys/nfs/nfs_vfsops.c
sys/nfs/nfs_vnops.c
sys/nfs/nfsmount.h
sys/nfsclient/nfs_bio.c
sys/nfsclient/nfs_vfsops.c
sys/nfsclient/nfs_vnops.c
sys/nfsclient/nfsmount.h
sys/nfsserver/nfs_serv.c