Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | tdb: reset tdb->fd to -1 in tdb_close() | Kirill Smelkov | 2009-10-29 | 1 | -1/+3 | |
| | | | | | | | | So that erroneous double tdb_close() calls do not try to close() same fd again. This is like SAFE_FREE() but for fd. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | tdb: fix typo in python's Tdb.get() docstring | Kirill Smelkov | 2009-10-29 | 1 | -1/+1 | |
| | | | | | | | It's Tdb.get(), not Tdb.fetch(). Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | tdb: kill last bits from swig | Kirill Smelkov | 2009-10-29 | 2 | -6/+1 | |
| | | | | | | | | We no longer use swig for pytdb, so there is no need for swig make rules. Also pytdb.c header should be updated. Signed-off-by: Kirill Smelkov <kirr@mns.spb.ru> Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | tdb: detect tdb store of identical records and skip | Andrew Tridgell | 2009-10-25 | 1 | -0/+20 | |
| | | | | This can help with ldb where we rewrite the index records | |||||
* | tdb: rename 'struct list_struct' into 'struct tdb_record' | Stefan Metzmacher | 2009-10-23 | 9 | -54/+54 | |
| | | | | metze | |||||
* | util:ldb Allow multiple entries to be added in one LDIF snippit | Andrew Bartlett | 2009-10-23 | 1 | -4/+7 | |
| | ||||||
* | util: fixed place where we could look one byte past end of string | Andrew Tridgell | 2009-10-22 | 1 | -1/+1 | |
| | | | | We need to check the length before the value | |||||
* | lib/tdb: make tdbtool use tdb_check() for "check" command | Rusty Russell | 2009-10-22 | 1 | -14/+30 | |
| | | | | | | | Also, set logging function so we get more informative messages. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | lib/tdb: add tdb_check() | Rusty Russell | 2009-10-22 | 8 | -3/+441 | |
| | | | | | | | | ctdb wants a quick way to detect corrupt tdbs; particularly, tdbs with loops in their hash chains. tdb_check() provides this. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | lib/tdb: add -t (always use transactions) option to tdbtorture | Rusty Russell | 2009-10-22 | 1 | -12/+29 | |
| | | | | | | | This means you can kill it at any time and expect no corruption. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | lib/tdb: wean off TDB_ERRCODE. | Rusty Russell | 2009-10-22 | 9 | -40/+59 | |
| | | | | | | | | | | It was a regrettable hack which I used to reduce line count in tdb; in fact it caused confusion as can be seen in this patch. In particular, ecode now needs to be set before TDB_LOG anyway, and having it exposed in the header is useless (the struct tdb_context isn't defined, so it's doubly useless). Also, we should never set errno, as io.c was doing. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | lib/tdb: TDB_TRACE support (for developers) | Rusty Russell | 2009-10-22 | 7 | -55/+402 | |
| | | | | | | | | | | | | | When TDB_TRACE is defined (in tdb_private.h), verbose tracing of tdb operations is enabled. This can be replayed using "replay_trace" from http://ccan.ozlabs.org/info/tdb. The majority of this patch comes from moving internal functions to _<funcname> to avoid double-tracing. There should be no additional overhead for the normal (!TDB_TRACE) case. Note that the verbose traces compress really well with rzip. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> | |||||
* | lib-util: check for too many combinations in generate_unique_strs() | Andrew Tridgell | 2009-10-20 | 1 | -1/+10 | |
| | ||||||
* | tdb: fixed the intermittent failure of tdbtorture in the build farm | Andrew Tridgell | 2009-10-20 | 1 | -2/+5 | |
| | | | | | | | | There was a race condition that caused the torture.tdb to be left in a state that needed recovery. The torture code thought that any message from the tdb code was an error, so the "recovered" message, which is a TDB_DEBUG_TRACE message, marked the run as being an error when it isn't. | |||||
* | util: fixed generate_unique_strs() to be portable | Andrew Tridgell | 2009-10-19 | 1 | -31/+13 | |
| | | | | | | 'place' was going negative, and giving undefined results. The result was duplicate names which gave errors in SMB2-DIR on PPC and other systems. | |||||
* | s4/asn1: Use explicite TALLOC_CTX in ber_write_OID functions | Kamen Mazdrashki | 2009-10-16 | 3 | -16/+16 | |
| | ||||||
* | talloc: Fix exports and increment talloc version | Simo Sorce | 2009-10-14 | 3 | -37/+40 | |
| | ||||||
* | talloc: Make abi checks in release script | Simo Sorce | 2009-10-14 | 1 | -0/+10 | |
| | | | | | Make always sure the exports and signature files are up to date before shipping a release. | |||||
* | talloc: Move release script under /script too | Simo Sorce | 2009-10-14 | 1 | -0/+0 | |
| | ||||||
* | talloc: Change the way mksysms work | Simo Sorce | 2009-10-14 | 3 | -36/+29 | |
| | | | | | | | | Make sure we always have a sorted (per file) export file. This way we can directly compare the real export and the check file w/o having to further sort things. Also return error code from abi_checks.sh if warnings were reported | |||||
* | Fix builds with external tdb | Simo Sorce | 2009-10-11 | 1 | -1/+1 | |
| | | | | | | Make sure we do not reference our internal tdb directly. Let configure define what tdb.h file to use so that builds that use an extrenal tdb do not include 2 different versions of the tdb header. | |||||
* | Fix builds with external talloc | Simo Sorce | 2009-10-09 | 1 | -1/+1 | |
| | | | | | | Make sure we do not reference our internal talloc directly. Let configure define what talloc.h file to use so that builds that use an extrenal talloc do not include 2 different versions of the talloc header. | |||||
* | asn1_tests: Fix typo in comment. | Karolin Seeger | 2009-10-09 | 1 | -2/+2 | |
| | | | | Karolin | |||||
* | tdr: teach TDR about uint1632 enums | Andrew Tridgell | 2009-10-07 | 1 | -0/+10 | |
| | | | | | TDB doesn't have NDR64, but it needs to know how to map the new types from pidl | |||||
* | lib/tdr: get rid of build warning when using TDR_ALLOC macro. | Günther Deschner | 2009-10-05 | 1 | -1/+1 | |
| | | | | Guenther | |||||
* | NULL is not a valid event context. | Jeremy Allison | 2009-10-01 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | s4/asn1: ber_read_OID_String() to be based on _ber_read_OID_String_impl() | Kamen Mazdrashki | 2009-10-01 | 1 | -30/+3 | |
| | ||||||
* | s4/asn1: local TALLOC_CTX should be child of torture_context | Kamen Mazdrashki | 2009-10-01 | 1 | -2/+2 | |
| | ||||||
* | s4/asn1: fixed typo in torture messages | Kamen Mazdrashki | 2009-10-01 | 1 | -2/+2 | |
| | ||||||
* | s4/asn1: Added test for ber_read_partial_OID_String() | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+45 | |
| | ||||||
* | s4/asn1: Added test for ber_read_OID_String() | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+32 | |
| | ||||||
* | s4/asn1: Added test for ber_write_partial_OID_String() | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+74 | |
| | ||||||
* | s4/asn1: Added test for ber_write_OID_String() | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+74 | |
| | ||||||
* | s4/asn1: Added torture suite for ASN1 | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+35 | |
| | ||||||
* | util: strhex_to_str() fixed to handle '0x' correctly | Kamen Mazdrashki | 2009-10-01 | 1 | -6/+6 | |
| | ||||||
* | util: fixed compile time "discards qualifiers" warning | Kamen Mazdrashki | 2009-10-01 | 1 | -3/+3 | |
| | ||||||
* | s4/drsuapi: ber_read_partial_OID_String() implementation | Kamen Mazdrashki | 2009-10-01 | 2 | -0/+37 | |
| | ||||||
* | s4/drsuapi: Internal implementation for ber_read_OID_String | Kamen Mazdrashki | 2009-10-01 | 1 | -0/+40 | |
| | | | | | | | Modified implementation _ber_read_OID_String_impl() returns how much bytes are converted. The intentation is to use this implementation both for reading OIDs and partial-OIDs in the future | |||||
* | s4/drsuapi: ber_write_partial_OID_String() implementation | Kamen Mazdrashki | 2009-10-01 | 2 | -0/+36 | |
| | ||||||
* | s4:torture: data_blob_hex_string() output is now lowercase. | Andrew Kroeger | 2009-09-30 | 1 | -1/+1 | |
| | | | | | Based on the change in commit fb84edabbe9f358031117de2cf78613c704ac600, these tests needs to expect lowercase output. | |||||
* | pidl: Avoid using talloc_free as function pointer, since it may be a | Jelmer Vernooij | 2009-09-28 | 2 | -0/+12 | |
| | | | | macro. | |||||
* | parmlist: Add more tests. | Jelmer Vernooij | 2009-09-27 | 3 | -3/+92 | |
| | ||||||
* | parmlist: Add basic tests for test_get_int(). | Jelmer Vernooij | 2009-09-27 | 1 | -0/+46 | |
| | ||||||
* | util/parmlist: Add some more comments. | Jelmer Vernooij | 2009-09-27 | 2 | -4/+36 | |
| | ||||||
* | libutil: Add separate utility code for dealing with settings as a | Jelmer Vernooij | 2009-09-26 | 3 | -0/+102 | |
| | | | | collection of key/value pairs. | |||||
* | Fixing timeval calculation | Simo Sorce | 2009-09-25 | 1 | -1/+1 | |
| | | | | The code was always doubling microseconds when attempting to round up. | |||||
* | lib/util: fix build warning. | Günther Deschner | 2009-09-25 | 1 | -1/+1 | |
| | | | | Guenther | |||||
* | Remove the const from the str_list_XXX functions that | Jeremy Allison | 2009-09-24 | 2 | -24/+24 | |
| | | | | | | | allocate both list and containing strings. This fixes problems that people have tried to cast away and are not needed. Jeremy. | |||||
* | s4-ldb: added a bunch more debug for DC join | Andrew Tridgell | 2009-09-22 | 1 | -2/+3 | |
| | | | | | These additional debug messages were added to help us track down w2k8->s4 domain join | |||||
* | s4-util: windows only accepts lowercase hex encodings for extended DNs | Andrew Tridgell | 2009-09-22 | 1 | -1/+4 | |
| |