summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-05-10 06:02:37 +0000
committerAndrew Tridgell <tridge@samba.org>2000-05-10 06:02:37 +0000
commit6cf96ff43155346589e19c1bb2fd723be74f1f12 (patch)
tree17f493db3b1dc79b3f728300ab594ed2467b663f /source3
parent21b85b2dba9b7e8dd7e35c91e24b46c0d78cf4d9 (diff)
downloadsamba-6cf96ff43155346589e19c1bb2fd723be74f1f12.tar.gz
samba-6cf96ff43155346589e19c1bb2fd723be74f1f12.tar.bz2
samba-6cf96ff43155346589e19c1bb2fd723be74f1f12.zip
- add some reserved space to every tdb, this will be
used for semaphores and future expansion - update tdb version number to 2 (This used to be commit 5e04885b86791e6ef8b4a316e64d56c6eb05f35d)
Diffstat (limited to 'source3')
-rw-r--r--source3/tdb/tdb.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/tdb/tdb.c b/source3/tdb/tdb.c
index 6ad32437ef..35951a0d17 100644
--- a/source3/tdb/tdb.c
+++ b/source3/tdb/tdb.c
@@ -35,7 +35,7 @@
#include "includes.h"
#endif
-#define TDB_VERSION (0x26011967 + 1)
+#define TDB_VERSION (0x26011967 + 2)
#define TDB_MAGIC (0x26011999U)
#define TDB_FREE_MAGIC (~TDB_MAGIC)
#define TDB_ALIGN 4
@@ -43,7 +43,8 @@
#define DEFAULT_HASH_SIZE 131
#define TDB_PAGE_SIZE 0x2000
#define TDB_LEN_MULTIPLIER 10
-#define FREELIST_TOP (sizeof(struct tdb_header))
+#define TDB_RESERVED 1024
+#define FREELIST_TOP (TDB_RESERVED + sizeof(struct tdb_header))
#define LOCK_SET 1
#define LOCK_CLEAR 0