summaryrefslogtreecommitdiffstats
path: root/source/tdb
Commit message (Collapse)AuthorAgeFilesLines
...
* PPC spinlocks work again. Sorry, my bad.Anton Blanchard2001-10-061-1/+1
|
* Ensure accessing NT member servers works with a Samba PDC. Don'tJeremy Allison2001-10-031-1/+2
| | | | | | change these timestamp settings without good reason. Remove CLEAR_IF_FIRST flag is tdb is read-only. Jeremy.
* fixed compilation of tdbtortureAndrew Tridgell2001-09-271-0/+5
|
* tdbtorture updates from when I was trying to track down the hp tdb bugAndrew Tridgell2001-09-241-12/+50
|
* Put pwrite code back in expand_file.Jeremy Allison2001-09-191-3/+10
| | | | Jeremy.
* added a hook to reopen all tdb's after the server forkAndrew Tridgell2001-09-192-10/+49
| | | | this prevents the fd seek pointer problem
* Fix based on Andrew's insight as re-using a tdb after fork meansJeremy Allison2001-09-191-3/+23
| | | | | parent and child share seek pointer. Damn.... Jeremy.
* Return correct error code on lock fail in tdb_expand.Jeremy Allison2001-09-191-1/+1
| | | | Jeremy.
* Roll back earlier fix after talking with Andrew. The write_lock_record andJeremy Allison2001-09-181-2/+2
| | | | | unlock are explicitly non-blocking. I will add a comment to this effect later. Jeremy.
* Fixed a couple of nasty bugs only easily seen with no mmap. Firstly,Jeremy Allison2001-09-181-2/+4
| | | | | | | | | map_ptr not neccessarily set to NULL if no mmap, secondly, iterating through a tdb was using SETLK, instead of SETLKW - would almost never fail with mmap as the time holding the lock was so short, but was easily seen with read/write. One finaly bug needs tracking down w.r.t. traversal...... Jeremy.
* flush stdout in test logging fnsAndrew Tridgell2001-09-062-0/+2
|
* use a different test tdb name for tdbtest and tdbtortureAndrew Tridgell2001-09-061-1/+1
|
* actually obey the "use mmap" smb.conf optionAndrew Tridgell2001-09-061-1/+5
|
* Renamed rwlock_t type to tdb_rwlock_t to avoid conflict with Solaris 8Tim Potter2001-08-292-13/+13
| | | | header files.
* Add missing gcc memory barriers, this bug showed up when doing aAnton Blanchard2001-08-191-16/+43
| | | | | | heavy netbench run. :) Rework ppc spinlocks to be faster.
* Patch for having spaces in tdb keys, NULL termination fixes and otherTim Potter2001-08-071-22/+87
| | | | stuff. From Andrew Esh <AEsh@tricord.com>
* Print an error message if database could not be opened.Volker Lendecke2001-08-041-0/+7
| | | | Volker
* Added mmap fix to pass lock test from HP.Jeremy Allison2001-08-021-115/+222
| | | | | | | | | | | | | | | Ok - now we're no longer trying to reach a silly 1k loc target, change the formatting to be *readable* - eg. change if (x) y else z to be : if (x) y else z and other compact sillyness. Oh look - when I did this I found some areas where we *WEREN'T CHECKING SYSTEM CALL ERROR RETURNS !!!!* CompSci 101 guys....... :-). Jeremy.
* Fix for rare tdb pattern store failure. Found & fixed by Rusty.Jeremy Allison2001-07-311-1/+4
| | | | Jeremy.
* Always check fstat for error.Jeremy Allison2001-07-251-10/+13
| | | | Jeremy.
* Fix for enumerating large numbers of users.Jeremy Allison2001-07-051-1/+1
| | | | Jeremy.
* removed some debug codeAndrew Tridgell2001-07-041-18/+13
|
* Ok - I misspoke.... mmap returns MAP_FAILED, not neccessarily -1 :-).Jeremy Allison2001-06-211-2/+6
| | | | Jeremy.
* When mmap fails it returns -1 *NOT NULL*.Jeremy Allison2001-06-211-1/+7
| | | | | This got regressed somehow..... Jeremy.
* Fixed potential free of NULL found by SGI speedshop.Jeremy Allison2001-06-111-1/+2
| | | | Jeremy.
* Added *.po to .cvsignore files.Tim Potter2001-06-011-0/+1
|
* merged fix for tdb_unpack from 2_2Andrew Tridgell2001-05-301-1/+4
|
* added list function to tdbtoolAndrew Tridgell2001-05-301-0/+2
|
* - fixed an off-by-1 bug in the delayed deletion code that I believeAndrew Tridgell2001-05-304-58/+162
| | | | | | | | was the initial cause of the connections database becoming corrupt. Note that this bug only happens when doing deletions within a traversal, which is why it has only showed up now - added delete within traversal testing to tdbtorture - added a lot more logging to tdb
* added a tdb_open_log() function that opens a tdb and enables loggingAndrew Tridgell2001-05-302-1/+34
| | | | | | of messages from the tdb code into the Samba DEBUG() system just call tdb_open_log() instead of tdb_open() to enable this on any tdb
* more portable TDB_LOG macroAndrew Tridgell2001-05-291-1/+1
|
* try to make the tailer code much more robust. When a recordAndrew Tridgell2001-05-284-14/+123
| | | | | | | can't be merged don't fail the operation, instead just add it to the free list anyway added logging to tdb
* Added tdb_change_int_atomic() to allow atomic updates of a tdb int value.Jeremy Allison2001-05-251-3/+32
| | | | Jeremy.
* make sure that when a tdb expands we fill the expanded area, otherwise ↵Andrew Tridgell2001-05-151-6/+29
| | | | ENOSPC could be very bad
* Implemented max connections in a similar way to 2.0.x (scan of connection db).Jeremy Allison2001-05-141-6/+8
| | | | | | This needs testing ! Tidied up tabs in tdb.c. Jeremy.
* clearer tdb_mmap codeAndrew Tridgell2001-05-061-24/+19
|
* merge from 2.2Andrew Tridgell2001-05-062-8/+7
|
* Fix problem with OpenBSD mmap and write not being coherent.Jeremy Allison2001-05-041-8/+29
| | | | Jeremy.
* merge from 2.2Andrew Tridgell2001-04-181-0/+1
|
* Getting medieval with compiler warnings as Jeremy puts it.Tim Potter2001-04-161-2/+2
|
* Fix for True64 treating readonly as a reserved word !Jeremy Allison2001-04-141-2/+2
| | | | Jeremy.
* Merge of Andrew's changes in 2.2.Jeremy Allison2001-04-132-49/+3
| | | | Jeremy.
* Fixed some compiler warnings.Tim Potter2001-04-111-2/+2
|
* Added HAVE_STDARG_H to tdbutil.cJeremy Allison2001-04-101-5/+51
| | | | Jeremy.
* optimise by defaultAndrew Tridgell2001-02-201-1/+1
|
* It compiles for me now :-). rpc_server/srv_lsa.c - added fix to allow w2kJeremy Allison2001-02-131-6/+15
| | | | | clients to join a Samba domain - odd or even domain name length. Needs more testing. Jeremy.
* Changes from APPLIANCE_HEAD:David O'Neill2001-01-293-28/+101
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | source/include/proto.h - make proto source/printing/nt_printing.c source/rpc_server/srv_spoolss_nt.c - Fix for the overwriting of printerdata entries when WinNT and Win2k are modifying printer parameters on PCL printers. Turns out that Win2k creates a printer with a NULL devmode entry and then expects to set it on *OPEN* (yes this is insane). So we cannot return a "default" devmode for a printer - and we must allow an open to set it. source/tdb/tdb.c - Show freelist in an easier format. Show total free. - When storing a new record, allocate memory for the key + data before the tdb_allocate() as if the malloc fails a (sparse) hole is left in the tdb. source/tdb/tdbtool.c - Show freelist in an easier format. Show total free. source/tdb/Makefile - cleaned up Makefile dependancies source/smbd/lanman.c - Fix for Win9x corrupting it's own parameter string. source/printing/printfsp.c source/printing/printing.c source/rpc_server/srv_spoolss_nt.c source/smbd/close.c - Added normal close parameter into print_fsp_end() which treats an abnormal close as error condition and deletes the spool file.
* Set the tdb->map_ptr to NULL if mmap() returns -1.Tim Potter2001-01-161-0/+3
|
* The line was:Christopher R. Hertel2000-12-301-1/+6
| | | | | | | | | | | | | | | | | | | struct tdb_traverse_lock tl = { tdb->travlocks.next, 0, 0 }; The IRIX compiler complained that the first initialization value was not a constant and errored out. Here's what it looks like now: struct tdb_traverse_lock tl = { NULL, 0, 0 }; int ret, count = 0; /* This was in the initializaton, above, but the IRIX compiler * did not like it. crh */ tl.next = tdb->travlocks.next; That worked. Chris -)-----
* Added lock backouts on fail.Jeremy Allison2000-12-151-3/+28
| | | | | | | | | | When chaining together long lines of bloody "if" statements, which should logically be separated, and one of them allocates memory, remember to *free* it *WHETHER OR NOT THE IF STATEMENTS SUCCEEDED* !!!! Yes I do consider this a bug in the coding style of Tridge, Rusty, Tim et al. :-). I'm just pissed 'cos this took 4 hours to track down even with an insure error report stating me in the face and also Ben Woodward looking over the code with me :-). Jeremy.