summaryrefslogtreecommitdiffstats
path: root/source
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-01-28 08:29:14 +0000
committerJeremy Allison <jra@samba.org>1998-01-28 08:29:14 +0000
commit54dc57473044e9cf5c426c2dad19e163ccfee4b2 (patch)
tree5483695bab6ccc5c24f98f0b5601e273e9a06df8 /source
parent32e19b0af4d5c379dd2c0a16f898ac55b5eeecbb (diff)
downloadsamba-54dc57473044e9cf5c426c2dad19e163ccfee4b2.tar.gz
samba-54dc57473044e9cf5c426c2dad19e163ccfee4b2.tar.xz
samba-54dc57473044e9cf5c426c2dad19e163ccfee4b2.zip
Make shared memory size 1024* MAX_OPEN_FILES.
Tuning needed for ClearCase. Jeremy.
Diffstat (limited to 'source')
-rw-r--r--source/include/local.h5
-rw-r--r--source/include/smb.h5
2 files changed, 5 insertions, 5 deletions
diff --git a/source/include/local.h b/source/include/local.h
index 10906d1ff1e..0e2a927d2ee 100644
--- a/source/include/local.h
+++ b/source/include/local.h
@@ -39,6 +39,11 @@
#define MAX_CONNECTIONS 127
#define MAX_OPEN_FILES 100
+/* Default size of shared memory used for share mode locking */
+#ifndef SHMEM_SIZE
+#define SHMEM_SIZE (1024*MAX_OPEN_FILES)
+#endif
+
/* the max number of connections that the smbstatus program will show */
#define MAXSTATUS 1000
diff --git a/source/include/smb.h b/source/include/smb.h
index 9c55e3f8be4..9a7278069d4 100644
--- a/source/include/smb.h
+++ b/source/include/smb.h
@@ -27,11 +27,6 @@
#define BUFFER_SIZE (0xFFFF)
#define SAFETY_MARGIN 1024
-/* Default size of shared memory used for share mode locking */
-#ifndef SHMEM_SIZE
-#define SHMEM_SIZE 102400
-#endif
-
#define NMB_PORT 137
#define DGRAM_PORT 138
#define SMB_PORT 139