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
- Lines: 12
- Date:
Fri Mar 2 11:12:11 2001
- Orig file:
v2.4.2/linux/fs/nfs/inode.c
- Orig date:
Wed Feb 21 18:20:40 2001
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)