summaryrefslogtreecommitdiffstats
path: root/source3/include/local.h
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-09-30 01:49:24 +0000
committerJeremy Allison <jra@samba.org>1998-09-30 01:49:24 +0000
commit5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a (patch)
treeb4f9513c1c829ee874b53e7c4f45d9acadc079d7 /source3/include/local.h
parent5a8458c377b6901b67a039eafbd5727ed1207cf3 (diff)
downloadsamba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.tar.gz
samba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.tar.xz
samba-5b4d94e20fdb5888da1b71a7b6a30ebede6cb06a.zip
(Finally) implemented "max open files" as a global smb.conf parameter.
Sets up the files array correctly - limited by the smb.conf parameter and by the max fd's per process as found by getrlimit(). Jeremy. (This used to be commit eca24bd24352c688cdf48c1ef14adb8ac353468f)
Diffstat (limited to 'source3/include/local.h')
-rw-r--r--source3/include/local.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/source3/include/local.h b/source3/include/local.h
index 6903e5854f6..a31c5c35b4e 100644
--- a/source3/include/local.h
+++ b/source3/include/local.h
@@ -44,6 +44,17 @@
#define SHMEM_SIZE (1024*1024)
#endif
+/*
+ * Default number of maximum open files per smbd. This is
+ * also limited by the maximum available file descriptors
+ * per process and can also be set in smb.conf as "max open files"
+ * in the [global] section.
+ */
+
+#ifndef MAX_OPEN_FILES
+#define MAX_OPEN_FILES 4096
+#endif
+
/* the max number of simultanous connections to the server by all clients */
#define MAXSTATUS 100000