patch-2.4.0-test9 linux/fs/nfsd/nfssvc.c

Next file: linux/fs/nfsd/nfsxdr.c
Previous file: linux/fs/nfsd/nfsfh.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test8/linux/fs/nfsd/nfssvc.c linux/fs/nfsd/nfssvc.c
@@ -41,9 +41,9 @@
 
 extern struct svc_program	nfsd_program;
 static void			nfsd(struct svc_rqst *rqstp);
-struct timeval			nfssvc_boot = { 0, 0 };
-static struct svc_serv 		*nfsd_serv = NULL;
-static int			nfsd_busy = 0;
+struct timeval			nfssvc_boot;
+static struct svc_serv 		*nfsd_serv;
+static int			nfsd_busy;
 static unsigned long		nfsd_last_call;
 
 struct nfsd_list {
@@ -154,6 +154,8 @@
 	current->pgrp = 1;
 	sprintf(current->comm, "nfsd");
 	current->fs->umask = 0;
+
+	current->rlim[RLIMIT_FSIZE].rlim_cur = RLIM_INFINITY; 
 
 	nfsdstats.th_cnt++;
 	/* Let svc_process check client's authentication. */

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