patch-2.4.3 linux/fs/nfs/inode.c

Next file: linux/fs/nfsd/nfsproc.c
Previous file: linux/fs/nfs/dir.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/fs/nfs/inode.c linux/fs/nfs/inode.c
@@ -434,6 +434,11 @@
         if (server->namelen == 0 || server->namelen > maxlen)
                 server->namelen = maxlen;
 
+	if(version == 2)
+		sb->s_maxbytes = MAX_NON_LFS;
+	else
+		sb->s_maxbytes = ~0ULL;	/* Unlimited on NFSv3 */
+
 	/* Fire up the writeback cache */
 	if (nfs_reqlist_alloc(server) < 0) {
 		printk(KERN_NOTICE "NFS: cannot initialize writeback cache.\n");

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)