summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2009-06-01overallocate all records by 25%Andrew Tridgell1-0/+3
This greatly reduces the fragmentation of databases where records tend to grow slowly by a small amount each time. The case where this is most seen is the ldb index records. Adding this overallocation reduced the size of the resulting database by more than 20x when running a test that adds 10k users.
2009-06-01auto-repack in transactions that expand the tdbAndrew Tridgell1-0/+12
The idea behind this is to recover from badly fragmented free lists. Choosing the point where the file expands is fairly arbitrary, but seems to work well.
2009-06-01Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell13-36/+593
2009-05-31Fix a C++ warningVolker Lendecke1-1/+1
2009-05-30nss_wrapper: try to fix the build of nss_wrapper on solaris.Günther Deschner2-0/+6
Guenther
2009-05-30Handle EINTR in async_sock.cVolker Lendecke1-0/+16
2009-05-30libwbclient: Add async call framework.Kai Blin2-2/+3
2009-05-30nss_wrapper: add test_nwrap_membership to testsuite.Günther Deschner1-0/+74
Guenther
2009-05-30nss_wrapper: restructure parts of the testsuite.Günther Deschner1-33/+72
Guenther
2009-05-30nss_wrapper: add support for getgrouplist.Günther Deschner2-0/+85
Guenther
2009-05-29util: Change license on tevent_unix to LGPLv3+Volker Lendecke2-16/+24
2009-05-29async_sock: Change license to LGPLv3+Volker Lendecke2-16/+24
2009-05-29s4-smbtorture: add a very basic NSS-WRAPPER testsuite.Günther Deschner1-0/+219
Guenther
2009-05-29util: move add_gid_to_array_unique to toplevel and add add_uid_to_array_unique.Günther Deschner3-1/+102
Guenther
2009-05-28Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell2-107/+332
2009-05-28nss_wrapper: fix nss_wrapper build for solaris.Günther Deschner1-0/+2
Guenther
2009-05-28nss_wrapper: remove re-structuring leftovers (unused variables).Günther Deschner1-6/+0
Guenther
2009-05-28nss_wrapper: support member add and delete for groups in nss_wrapper.pl.Günther Deschner1-21/+141
Guenther
2009-05-28nss_wrapper: split out passwd and group paths in nss_wrapper.pl.Günther Deschner1-15/+26
Guenther
2009-05-28nss_wrapper: restructure nwrap calls.Günther Deschner1-71/+169
Guenther
2009-05-28fixed tdbbackup to give tdb error messagesAndrew Tridgell1-7/+31
2009-05-28Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell1-6/+6
2009-05-28make TDB_NOSYNC affect all the fsync/msync calls in transactionsAndrew Tridgell1-5/+7
During a transaction commit tdb normally uses fsync/msync calls to make it crash safe. This can be disabled using the TDB_NOSYNC flag, but it wasn't disabling all the code paths that caused a fsync/msync.
2009-05-27tdb: Fix some recently introduced warnings in tdbtoolTim Prouty1-6/+6
2009-05-26Merge branch 'master' of ssh://git.samba.org/data/git/sambaAndrew Tridgell2-0/+77
2009-05-26Add support for sendmsg() in socket_wrapperAndrew Bartlett2-0/+77
This is required because the deferred connect code skips the connect() until sending the packet, but unless we catch this call, the connect() never happens. Andrew Bartlett
2009-05-26added some more speed tests to tdbtoolAndrew Tridgell1-6/+59
This adds 3 simple speed tests to tdbtool, for transaction store, store and fetch. On my laptop this shows transactions costing about 10ms
2009-05-24Change async_connect to use connect instead of getsockopt to get the errorVolker Lendecke1-14/+24
On my Linux box, this is definitely the more reliable strategy with unix domain sockets, and according to my tests it also works correctly with TCP sockets.
2009-05-24Add "err_on_readability" to writev_sendVolker Lendecke2-2/+14
A socket where the other side has closed only becomes readable. To catch errors early when sitting in a pure writev, we need to also test for readability.
2009-05-24Allow NULL queue to writev_sendVolker Lendecke1-6/+16
2009-05-22tsocket: allow empty vectors at the end for tstream_writev()/readv()Stefan Metzmacher1-0/+26
metze
2009-05-21Detect tight loop in tdb_find()Jim McDonough1-0/+5
2009-05-20nsswrapper: implement group_del() in nss_wrapper.pl.Günther Deschner1-1/+22
Guenther
2009-05-20nsswrapper: implement group_add() in nss_wrapper.pl.Günther Deschner1-4/+105
Guenther
2009-05-19Set errno=ENOMEM if tevent_add_fd failsVolker Lendecke1-0/+4
tevent_add_fd does not properly set that. At least in epoll and select this is the only error condition. Metze, please check!
2009-05-19Simplify the logic of tsocket_bsd_pendingVolker Lendecke1-24/+26
Remove two indentation levels by returning early on error. Metze, please check!
2009-05-19tevent/python: Makefile was still trying to build some non AC_SUBST python ↵Jelmer Vernooij1-7/+1
targets Signed-Off-By: Jelmer Vernooij <jelmer@samba.org>
2009-05-16tevent: Define TALLOC_FREE() if it's not defined yet, to allow buildingJelmer Vernooij1-0/+6
with released versions of talloc.
2009-05-16tevent: Remove python module.Jelmer Vernooij6-219/+0
This module didn't have any functionality that we actually used yet, and it was quite small. Tevent is quite low level and perhaps doesn't make much sense to expose directly as a Python module. It was also causing build problems when used with a system-tevent. We can always back later if necessary.
2009-05-16tevent: Install tevent_internal.h in the standalone build.Jelmer Vernooij2-1/+4
This is not ideal, but at least it fixes the build of samba-gtk for now. I've also added a warning about API guarantees at the top of the header.
2009-05-16Fix linker flags on non-Linux GNU platforms.Samuel Thibault1-5/+5
(e.g. Debian GNU/kFreeBSD) Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
2009-05-16Update copies of config.guess and config.sub.Jelmer Vernooij8-304/+1128
2009-05-16tevent: Don't install headers, since we don't install a shared libJelmer Vernooij1-5/+0
either (from Samba).
2009-05-15Add extensive tests for str_list function behaviourAndrew Bartlett1-15/+343
2009-05-14Remove two unused variablesVolker Lendecke1-2/+0
2009-05-14Add new functions and tests: str_list_make_empty(), str_list_make_single()Andrew Bartlett3-0/+85
2009-05-13Take advantage of the easier-to-use thread macrosDerrell Lipman1-8/+0
- Now that we initialize for the non-thread-safe case in the macro, there's no need to do it here too. Derrell
2009-05-13Make the thread functions a bit easier to useDerrell Lipman3-8/+12
- Create separate macros for lock and unlock so that it's easier to identify which request is being made. - Initialize *ponce in the SMB_THREAD_ONCE macro in the non-thread-safe case, rather than requiring each init function to determine if it's in the non-thread-safe case and manually initialize. Derrell
2009-05-13Allow a parameter to smb_thread_once's initialization functionDerrell Lipman4-15/+28
- This should make life easier for ourselves. We're no longer constrained to the semantics of pthread_once, so let's allow passing a parameter to the initialization function. Some of Samba's init functions return a value. Although I haven't searched, I suspect that some of the init functions require in input parameters. The parameter added here can be used for input, output, or both, as necessary... or ignored, as is now done in talloc_stackframe_init(). Derrell
2009-05-12Fix broken smb_thread_once function (again)Derrell Lipman1-0/+3
- It would help if smb_thread_once did, eventually, set the variable that prevents the init function from being run again. Sigh. It must be getting late. Derrell