summaryrefslogtreecommitdiff
path: root/source3/lib/tdb_validate.c
AgeCommit message (Collapse)AuthorFilesLines
2012-06-19TDB2: make SAMBA use tdb1 again for the moment.Rusty Russell1-4/+0
Otherwise the following surgery will break the SAMBA build and testsuite. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2012-03-24lib/util: Remove obsolete sys_getpid() and sys_fork().Jelmer Vernooij1-1/+1
The performance of these is minimal (these days) and they can return invalid results when used as part of applications that do not use sys_fork(). Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Mar 24 21:55:41 CET 2012 on sn-devel-104
2011-06-20tdb_compat: Higher level API fixes.Rusty Russell1-1/+1
My previous patches fixed up all direct TDB callers, but there are a few utility functions and the db_context functions which are still using the old -1 / 0 return codes. It's clearer to fix up all the callers of these too, so everywhere is consistent: non-zero means an error. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_validate: TDB2 support for tdb_validate_child and tdb_backup.Rusty Russell1-2/+10
We don't expose freelist or hash size for TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-06-20tdb_traverse/tdb_traverse_read: check returns for negative, not -1.Rusty Russell1-1/+1
TDB2 returns a negative error number on failure. This is compatible if we always check for < 0 instead of == -1. Also, there's no tdb_traverse_read in TDB2: we don't try to make traverse reliable any more, so there are no write locks anyway. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-05-06s3: only include tdb headers where needed.Günther Deschner1-0/+1
Guenther
2011-03-30s3-includes: only include system/filesys.h when needed.Günther Deschner1-1/+2
Guenther
2010-07-27Fix several places where talloc_asprintf returns were unchecked.Jeremy Allison1-0/+13
Jeremy.
2010-06-16s3-tdb: Added missing out of memory check in rename_file_with_suffix().Andreas Schneider1-0/+4
2010-03-21s3: Open winbindd_cache.tdb with read/write access.Bo Yang1-1/+1
Open winbindd_cache.tdb with read/write access when validate the cache, otherwise, validation fails to get lock in tdb_check. It results in validation failure even the cache is good. Signed-off-by: Bo Yang <boyang@samba.org>
2009-12-07s3: let tdb_validate_child() use tdb_check()Stefan Metzmacher1-0/+11
metze
2009-02-23More warning fixes for Solaris.Jeremy Allison1-2/+3
Jeremy.
2009-01-29Fix the build on "opi"Volker Lendecke1-1/+1
It did not like to include "includes.h" twice
2009-01-28s3:tdb_validate: clean up leading tabs/spaces and trailing spaces.Michael Adam1-28/+28
Michael
2009-01-28s3: separate tdb validation code out into its own source fileMichael Adam1-0/+502
So this gets now linked only into its single user: winbindd (needed by winbindd_cache.c) Michael