summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorrmacklem <rmacklem@FreeBSD.org>2011-05-06 17:51:00 +0000
committerrmacklem <rmacklem@FreeBSD.org>2011-05-06 17:51:00 +0000
commitafa9a330c27a9808999da4afc20d6f551fdbf2e5 (patch)
tree730a2349e1f8c37a82cda9783233afeb8c260521 /sys/fs
parent96ef8b6576c072c1a7b3601c6ff1e6accb59418f (diff)
downloadFreeBSD-src-afa9a330c27a9808999da4afc20d6f551fdbf2e5.zip
FreeBSD-src-afa9a330c27a9808999da4afc20d6f551fdbf2e5.tar.gz
Set the initial value of maxfilesize to OFF_MAX in the
new NFS client. It will then be reduced to whatever the server says it can support. There might be an argument that this could be one block larger, but since NFS is a byte granular system, I chose not to do that. Suggested by: Matt Dillon Tested by: Daniel Braniss (earlier version) MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/nfsclient/nfs_clvfsops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/fs/nfsclient/nfs_clvfsops.c b/sys/fs/nfsclient/nfs_clvfsops.c
index 8b4fc6a..b11160b 100644
--- a/sys/fs/nfsclient/nfs_clvfsops.c
+++ b/sys/fs/nfsclient/nfs_clvfsops.c
@@ -1224,7 +1224,7 @@ mountnfs(struct nfs_args *argp, struct mount *mp, struct sockaddr *nam,
if ((argp->flags & (NFSMNT_NFSV3 | NFSMNT_NFSV4)) == 0)
nmp->nm_maxfilesize = 0xffffffffLL;
else
- nmp->nm_maxfilesize = (u_int64_t)0x80000000 * DEV_BSIZE - 1;
+ nmp->nm_maxfilesize = OFF_MAX;
nmp->nm_timeo = NFS_TIMEO;
nmp->nm_retry = NFS_RETRANS;
OpenPOWER on IntegriCloud