svn commit: r221537 - head/sys/fs/nfsclient

Rick Macklem rmacklem at FreeBSD.org
Fri May 6 17:51:00 UTC 2011


Author: rmacklem
Date: Fri May  6 17:51:00 2011
New Revision: 221537
URL: http://svn.freebsd.org/changeset/base/221537

Log:
  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

Modified:
  head/sys/fs/nfsclient/nfs_clvfsops.c

Modified: head/sys/fs/nfsclient/nfs_clvfsops.c
==============================================================================
--- head/sys/fs/nfsclient/nfs_clvfsops.c	Fri May  6 15:40:58 2011	(r221536)
+++ head/sys/fs/nfsclient/nfs_clvfsops.c	Fri May  6 17:51:00 2011	(r221537)
@@ -1224,7 +1224,7 @@ mountnfs(struct nfs_args *argp, struct m
 	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;


More information about the svn-src-head mailing list