1
0
mirror of https://github.com/samba-team/samba.git synced 2025-11-13 08:23:49 +03:00
Commit Graph

218 Commits

Author SHA1 Message Date
Stefan Metzmacher
0e5517d937 r884: convert samba4 to use [u]int32_t instead of [u]int32
metze
2007-10-10 12:56:15 -05:00
Stefan Metzmacher
e3191b54ea r849: move tdb/tools/Makefile to tdb/Makefile.tdb
like in ldb

also fix the makefile to let it compile the tools fine

metze
2007-10-10 12:56:11 -05:00
Stefan Metzmacher
bacab322ce r848: convert lib/tdb into the same layout as lib/ldb
metze
2007-10-10 12:56:02 -05:00
Andrew Tridgell
e306e27cf3 r826: removed a pile of old code, in preparation for a new ACL handling system. I'd like to get rid of DOM_SID completely soon 2007-10-10 12:53:53 -05:00
Simo Sorce
e1afaa1e9c r808: fix libtdb build by ifedffing out an smb_panic() and copying over CatchSignal fn from lib/signal changing it's name to TdbCatchSignal 2007-10-10 12:53:51 -05:00
Stefan Metzmacher
520b976216 r728: - let libldb_tdb depend on new subsystem LIBTDB
- remove tdb logging helper functions out of LIBTDB subsystem

- build libtdb shared lib with 'make library_libtdb'

the libs are not usable for now,

tridge: please remove the dependecy of CatchSignal() and smb_panic()
        from libtdb
	maybe use function pointers in the TDB_CONTEXT

	then run make library_libtdb
	and then make build/tests/trivial.o
	and then gcc -o trivial -L./bin -ltdb
	and then gcc -o trivial -L./bin -lldb

metze
2007-10-10 12:53:45 -05:00
Andrew Tridgell
b61d7f8bbc r452: move from first-fit to best-fit in tdb record allocation. For a
situation where we are continually increasing the size of a record
(such as ldb index records) this reduces the resulting tdb size by a
factor of over 100x, due to reductions in fragmentation. It appears to
have no noticable effect on the speed in other cases.
2007-10-10 12:51:43 -05:00
Andrew Tridgell
63b2655774 allow "struct TDB_DATA" as well as just "TDB_DATA"
in general I prefer the struct form for Samba4 structures. I think its
clearer.
-
Andrew Tridgell
0e845ecd49 merge some recent tdb changed from samba3 -
Andrew Tridgell
b881b72cb9 switch from SIG_ATOMIC_T to sig_atomic_t -
Andrew Tridgell
51409e2a41 after discussion with the copyright holders tdb is now under the LGPL -
Andrew Tridgell
6aec1457f8 added a TDB_MODIFY flag to tdb_store() that says "if the record
doesn't exist then fail the store"
-
Andrew Tridgell
76bf816485 added a private pointer to tdb_traverse() to allow callers to supply
data to their traverse function
-
Andrew Tridgell
6505efc7e9 removed the state parameter to tdb_traverse and the TDB_MODIFY flag -
Andrew Tridgell
46e0a35819 * the RPC-ECHO pipe now works in smbd, as long as the data sizes
don't cause fragmented pdus (I'll add fragments shortly)

 * change data_blob_talloc() to not zero memory when the 2nd argument
   is NULL. The zeroing just masks bugs, and can't even allow a DOS
   attack

 * modified pidl to ensure that [ref] arguments to the out side of
   functions are allocated when parsing the in side. This allows rpc
   backends to assume that [ref] variables are all setup. Doesn't work
   correctly for [ref] arrays yet

 * changed DLIST_ADD_END() to take the type instead of a tmp
   variable. This means you don't need to declare a silly tmp variable in
   the caller
-
Andrew Tridgell
f3eaf270e5 * removed some unused code
* updated tdb to latest version from Samba3

 * removed some extraneous ';' in tdbutil.c (Thanks to Erlend Aasland
   for pointing this out)
-
Andrew Tridgell
02d068ba7d more fixes from the IRIX compiler (thanks herb!) -
Andrew Tridgell
b0510b5428 first public release of samba4 code -