Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | Two tdb bugfixes. First one - ensure that traverse lock is moved before deleting | Jeremy Allison | 2000-12-13 | 1 | -45/+58 | |
| | | | | | | | dead records, else the record is just marked for deletion, not actually deleted. Second, ensure allocated record is marked as "in use" before free list lock is released, else other processes in the freelist merge code may try and merge it. Jeremy. | |||||
* | Added Tim's fix for read-only crashes. | Jeremy Allison | 2000-12-11 | 1 | -0/+2 | |
| | | | | Jeremy. | |||||
* | Fixed bug with tdb_next_lock failing when reaching then end of a hashchain | Jeremy Allison | 2000-12-07 | 2 | -9/+39 | |
| | | | | | and the next hashchain is empty. Jeremy | |||||
* | tdb_chainunlock() no longer returns a value. | Tim Potter | 2000-12-06 | 1 | -2/+2 | |
| | ||||||
* | Changed to sourceforge tdb code. This includes spinlocks (so we now have | Jeremy Allison | 2000-12-06 | 6 | -1058/+1255 | |
| | | | | | | | | a --with-spinlocks option to configure, this does mean the on-disk tdb format has changed, so 2.2alphaX sites will need to re-create their tdb's. The upside is no more tdb fragmentation and a +5% on netbench. Swings and roundabouts.... Jeremy. | |||||
* | Fixed one tdb_read -> rec_free_read call. | Jeremy Allison | 2000-12-05 | 1 | -10/+2 | |
| | | | | Jeremy. | |||||
* | Added sorted freelist neighbour merge code to stop tdb fragmentation. | Jeremy Allison | 2000-12-05 | 2 | -32/+251 | |
| | | | | | This needs TESTING !!! (It passes tdbtest of course :-). Jeremy. | |||||
* | Added print_freelist command. | Jeremy Allison | 2000-12-02 | 2 | -0/+38 | |
| | | | | Jeremy. | |||||
* | change the split threahold for the free list to prevent freelist | Andrew Tridgell | 2000-12-02 | 1 | -1/+1 | |
| | | | | fragmentation | |||||
* | fixed a potential locking deadlock in tdb | Andrew Tridgell | 2000-11-27 | 1 | -1/+1 | |
| | ||||||
* | rpc_parse/parse_spoolss.c: Updated comment for old version of W2K. | Jeremy Allison | 2000-11-10 | 1 | -1/+1 | |
| | | | | | tdb/tdbutil.c: With varargs uint16 is cast to (int). Jeremy. | |||||
* | got rid of tdb_writelock() and instead lock a chain. tdb_writelock() | Andrew Tridgell | 2000-10-10 | 1 | -25/+0 | |
| | | | | is conceptually flawed | |||||
* | added tdb_lock_bystring() and tdb_unlock_bystring() | Andrew Tridgell | 2000-10-10 | 1 | -0/+24 | |
| | ||||||
* | Fixes from Damian at Cisco to tidy up some tdbtool issues. | Jeremy Allison | 2000-10-05 | 1 | -4/+15 | |
| | | | | Jeremy. | |||||
* | Herb's fixes for profiling & compiler warnings. | Jeremy Allison | 2000-10-05 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Added debug so if zero length messages get sent we successfully remove | Jeremy Allison | 2000-10-02 | 1 | -3/+7 | |
| | | | | | them (this can happen if smbd processes are shut down at the wrong time). Jeremy. | |||||
* | Added John Reilly's enumports/addprinter/delprinter scripting code plus the | Jeremy Allison | 2000-07-31 | 1 | -0/+14 | |
| | | | | | | | | | | fix for the Win9x printer drivers. Changed command names to add "command" string on the end for some consistancy with the other scripting commands. Added '%P' option to tdbpack/unpack to store long comment string. Made port name be "Samba Printer Port" if no enum port script given. Fixed prs_uint32_pre code to cope with null args. Jeremy. | |||||
* | support both read and write locks inside the tdb | Andrew Tridgell | 2000-06-15 | 1 | -1/+6 | |
| | ||||||
* | - use read locks when possible | Andrew Tridgell | 2000-06-15 | 1 | -42/+44 | |
| | | | | - don't use as many locks on a store | |||||
* | use the right MMAP flag | Andrew Tridgell | 2000-06-15 | 1 | -1/+1 | |
| | ||||||
* | Moved tdb functions that access parse structs into parse_prs.c | Jeremy Allison | 2000-06-08 | 1 | -30/+0 | |
| | | | | | to prevent builkd breaking. Jeremy. | |||||
* | Fixing get/set of security descriptors. | Jeremy Allison | 2000-06-07 | 1 | -8/+4 | |
| | | | | | | Removed ugly hack for NT printing. Fixed up tdb parse stuff memory leaks. Jeremy. | |||||
* | added some debug code to track down pack/unpack problems | Andrew Tridgell | 2000-06-04 | 1 | -0/+12 | |
| | ||||||
* | getting and setting security descriptors on printers now works | Andrew Tridgell | 2000-05-27 | 1 | -10/+42 | |
| | | | | this needed some fixes in tdb_unpack(). Tim, you'll need to update | |||||
* | added tdb_pack() and tdb_unpack() | Andrew Tridgell | 2000-05-24 | 1 | -0/+148 | |
| | ||||||
* | While we're all making incompatible tdb changes, I changed the implementation | Tim Potter | 2000-05-12 | 1 | -4/+4 | |
| | | | | | | | | | of tdb_{store,get}_int() to store the length of the string key + 1 so the stored key contains the trailing NULL character. This allows normal string library routines to manipulate keys. Also renamed tdb_get_int() to tdb_fetch_int() to keep the set of verbs consistent. | |||||
* | use gcc not insure by default in tdb build | Andrew Tridgell | 2000-05-12 | 1 | -1/+1 | |
| | ||||||
* | an imcompatible tdb format change (sorry!) | Andrew Tridgell | 2000-05-12 | 2 | -11/+3 | |
| | | | | | this will give us a much nicer migration path for the proposed semaphore code | |||||
* | when creating the database zero the reserved space | Andrew Tridgell | 2000-05-10 | 1 | -0/+8 | |
| | ||||||
* | - add some reserved space to every tdb, this will be | Andrew Tridgell | 2000-05-10 | 1 | -2/+3 | |
| | | | | | used for semaphores and future expansion - update tdb version number to 2 | |||||
* | Use a prime for default tdb hash size - this makes a difference ! | Herb Lewis | 2000-05-10 | 1 | -1/+1 | |
| | | | | Jeremy. | |||||
* | Added tdb_store_by_string() and tdb_fetch_by_string() functions to store | Tim Potter | 2000-05-09 | 1 | -0/+27 | |
| | | | | data with null terminated string keys. | |||||
* | fixed typo | Andrew Tridgell | 2000-05-01 | 1 | -1/+1 | |
| | ||||||
* | added TDB_INTERNAL, TDB_NOLOCK and TDB_NOMMAP flags. | Andrew Tridgell | 2000-05-01 | 5 | -45/+76 | |
| | | | | TDB_INTERNAL replaces the old method of passing a null filename | |||||
* | - removed all our old wildcard matching code and replaced it with a | Andrew Tridgell | 2000-04-30 | 1 | -20/+15 | |
| | | | | | | | | | | | | | | | | call to ms_fnmatch(). This also removes all the Win9X semantics stuff and a bunch of other associated cruft. - moved the stat cache code into statcache.c - fixed the uint16 alignment requirements of ascii_to_unistr() and unistr_to_ascii() - trans2 SMB_FIND_FILE_BOTH_DIRECTORY_INFO returns the short name as unicode always (at least thats what NT4 does) - fixed some errors in the in-memory tdb code. Still ugly, but doesn't crash as much | |||||
* | put tdb utility functions in a separate file | Andrew Tridgell | 2000-04-29 | 2 | -44/+67 | |
| | ||||||
* | Added tdb_get/set_int_byblob, which takes a size_t len and then implemented | Jeremy Allison | 2000-04-28 | 1 | -7/+19 | |
| | | | | | | the tdb_get/set_int string functions in terms of them. Will be useful in storing POSIX pending close records (which are ints but indexed by dev/inode pairs). Jeremy. | |||||
* | added TDB_MODIFY flag - patch from from luke | Andrew Tridgell | 2000-04-25 | 3 | -5/+30 | |
| | ||||||
* | dump in a binary format | Andrew Tridgell | 2000-04-24 | 1 | -3/+45 | |
| | ||||||
* | use an size_t not a ssize_t when checking for out of bounds errors | Andrew Tridgell | 2000-04-24 | 1 | -1/+1 | |
| | ||||||
* | locking/locking.c: Fixed placeholder code for POSIX locking. | Jeremy Allison | 2000-04-18 | 1 | -0/+2 | |
| | | | | | | | | printing/printing.c: Cast tdb_delete to (tdb_traverse_func) to stop warning. tmpfile gives mirror warning. smbd/groupname.c: Remember to file_lines_free() on exit. tdb/tdb.h: Add tdb_traverse_func typedef. Jeremy | |||||
* | added tdb_get_int() and tdb_store_int() | Andrew Tridgell | 2000-04-16 | 1 | -0/+34 | |
| | | | | they are very useful for database versioning | |||||
* | Added standard shell command thing using '!' as first character. | Tim Potter | 2000-03-13 | 1 | -41/+49 | |
| | ||||||
* | Check for null tdb context in tdb_exists() | Tim Potter | 2000-03-01 | 1 | -0/+7 | |
| | ||||||
* | Makefile for tdb directory. | Tim Potter | 2000-02-28 | 1 | -0/+21 | |
| | ||||||
* | Oops - put back filename argument to tdb_open(). | Tim Potter | 2000-02-28 | 1 | -1/+1 | |
| | ||||||
* | Modifications to tdb_traverse() arguments to remove compile warnings. | Tim Potter | 2000-02-28 | 2 | -3/+10 | |
| | ||||||
* | Allow tdb databases to be created "in memory" without having a file | Tim Potter | 2000-02-28 | 1 | -55/+99 | |
| | | | | | associated with them. tdb can then be used as a hash table data structure. | |||||
* | Added tdbtool to .cvsignore list. | Tim Potter | 2000-02-28 | 1 | -0/+1 | |
| | ||||||
* | Updated docs for tdb_traverse. | Tim Potter | 2000-02-17 | 1 | -2/+3 | |
| |