svn commit: samba r19820 - in branches: SAMBA_3_0/source/param SAMBA_3_0_24/source/param

vlendec at samba.org vlendec at samba.org
Tue Nov 21 13:42:31 GMT 2006


Author: vlendec
Date: 2006-11-21 13:42:31 +0000 (Tue, 21 Nov 2006)
New Revision: 19820

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19820

Log:
Limit the stat cache to 1MB by default (Bug 4244). Thanks to Bjoern Jacke
<bj at sernet.de>

Volker

Modified:
   branches/SAMBA_3_0/source/param/loadparm.c
   branches/SAMBA_3_0_24/source/param/loadparm.c


Changeset:
Modified: branches/SAMBA_3_0/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0/source/param/loadparm.c	2006-11-21 13:28:27 UTC (rev 19819)
+++ branches/SAMBA_3_0/source/param/loadparm.c	2006-11-21 13:42:31 UTC (rev 19820)
@@ -1534,7 +1534,7 @@
 	Globals.bNTPipeSupport = True;	/* Do NT pipes by default. */
 	Globals.bNTStatusSupport = True; /* Use NT status by default. */
 	Globals.bStatCache = True;	/* use stat cache by default */
-	Globals.iMaxStatCacheSize = 0;	/* unlimited size in kb by default. */
+	Globals.iMaxStatCacheSize = 1024; /* one Meg by default. */
 	Globals.restrict_anonymous = 0;
 	Globals.bClientLanManAuth = True;	/* Do use the LanMan hash if it is available */
 	Globals.bClientPlaintextAuth = True;	/* Do use a plaintext password if is requested by the server */

Modified: branches/SAMBA_3_0_24/source/param/loadparm.c
===================================================================
--- branches/SAMBA_3_0_24/source/param/loadparm.c	2006-11-21 13:28:27 UTC (rev 19819)
+++ branches/SAMBA_3_0_24/source/param/loadparm.c	2006-11-21 13:42:31 UTC (rev 19820)
@@ -1534,7 +1534,7 @@
 	Globals.bNTPipeSupport = True;	/* Do NT pipes by default. */
 	Globals.bNTStatusSupport = True; /* Use NT status by default. */
 	Globals.bStatCache = True;	/* use stat cache by default */
-	Globals.iMaxStatCacheSize = 0;	/* unlimited size in kb by default. */
+	Globals.iMaxStatCacheSize = 1024; /* one Meg by default. */
 	Globals.restrict_anonymous = 0;
 	Globals.bClientLanManAuth = True;	/* Do use the LanMan hash if it is available */
 	Globals.bClientPlaintextAuth = True;	/* Do use a plaintext password if is requested by the server */



More information about the samba-cvs mailing list