Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 20 May 2011 01:04:33 +0000 (UTC)
From:      Rick Macklem <rmacklem@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org
Subject:   svn commit: r222110 - stable/8/sys/fs/nfsclient
Message-ID:  <201105200104.p4K14XK3060519@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: rmacklem
Date: Fri May 20 01:04:33 2011
New Revision: 222110
URL: http://svn.freebsd.org/changeset/base/222110

Log:
  MFC: r221537
  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.

Modified:
  stable/8/sys/fs/nfsclient/nfs_clvfsops.c
Directory Properties:
  stable/8/sys/   (props changed)
  stable/8/sys/amd64/include/xen/   (props changed)
  stable/8/sys/cddl/contrib/opensolaris/   (props changed)
  stable/8/sys/contrib/dev/acpica/   (props changed)
  stable/8/sys/contrib/pf/   (props changed)

Modified: stable/8/sys/fs/nfsclient/nfs_clvfsops.c
==============================================================================
--- stable/8/sys/fs/nfsclient/nfs_clvfsops.c	Fri May 20 00:51:52 2011	(r222109)
+++ stable/8/sys/fs/nfsclient/nfs_clvfsops.c	Fri May 20 01:04:33 2011	(r222110)
@@ -1218,7 +1218,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;



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