summaryrefslogtreecommitdiff
path: root/source3/include/local.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-12-02 10:01:14 -0800
committerJeremy Allison <jra@samba.org>2009-12-02 10:01:14 -0800
commitb6fdecd11210a3d2ff803bdc315aacd9f8b445a1 (patch)
treef182933a4e5e381d402a1a266d980d0182e58d58 /source3/include/local.h
parent5f60855ba2eb822dcb867378ff09278c42931b89 (diff)
downloadsamba-b6fdecd11210a3d2ff803bdc315aacd9f8b445a1.tar.gz
Fix bug #6837 - "Too many open files" when trying to access large number of files
from Windows 7. Original patch by me fixed up with the correct open files number by jmaggard10@hotmail.com. Jeremy.
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 45767ad1c15..de54ea58866 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -66,7 +66,25 @@
#ifndef MAX_OPEN_FILES
#define MAX_OPEN_FILES 10000
#endif
-
+
+/*
+ * Fudgefactor required for open tdb's, etc.
+ */
+
+#ifndef MAX_OPEN_FUDGEFACTOR
+#define MAX_OPEN_FUDGEFACTOR 20
+#endif
+
+/*
+ * Minimum number of open files needed for Windows7 to
+ * work correctly. A little conservative but better that
+ * than run out of fd's.
+ */
+
+#ifndef MIN_OPEN_FILES_WINDOWS
+#define MIN_OPEN_FILES_WINDOWS 1050
+#endif
+
#define WORDMAX 0xFFFF
/* the maximum password length before we declare a likely attack */