From cc13e21dbeb9548ea90f86445fe9a371b5c05e0c Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Thu, 30 Nov 2006 03:05:55 +0000 Subject: r19959: Allow tdb to be built standalone in Samba3. Add code to check for loops in the free list. Should help us validate tdb's against corruption. Jeremy. (This used to be commit f8e7386773cbbb31e2f42ffcbae9b979c1197635) --- source3/tdb/include/tdb.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source3/tdb/include/tdb.h') diff --git a/source3/tdb/include/tdb.h b/source3/tdb/include/tdb.h index 920ac5c6d9..b783f23a1e 100644 --- a/source3/tdb/include/tdb.h +++ b/source3/tdb/include/tdb.h @@ -136,6 +136,7 @@ int tdb_chainunlock_read(struct tdb_context *tdb, TDB_DATA key); /* Debug functions. Not used in production. */ void tdb_dump_all(struct tdb_context *tdb); int tdb_printfreelist(struct tdb_context *tdb); +int tdb_validate_freelist(struct tdb_context *tdb, int *pnum_entries); extern TDB_DATA tdb_null; -- cgit