Andrew Bartlett [Wed, 8 Apr 2009 13:18:13 +0000 (23:18 +1000)]
Rework util_strlist prototypes to use a bit more and less const
Hopefully this produces less warnings, but it might produce more...
Andrew Bartlett
Karolin Seeger [Tue, 7 Apr 2009 18:01:27 +0000 (20:01 +0200)]
s3/popt.h: Fix typo.
Karolin
Andrew Tridgell [Tue, 7 Apr 2009 06:33:26 +0000 (16:33 +1000)]
added a str_list_append() function
Stefan Metzmacher [Mon, 6 Apr 2009 14:35:56 +0000 (16:35 +0200)]
tsocket: reduce size of dummy variable
metze
Stefan Metzmacher [Fri, 3 Apr 2009 12:29:51 +0000 (14:29 +0200)]
tsocket: use the correct 'ret' variable for tdgram_disconnect_send/recv()
metze
Volker Lendecke [Sun, 5 Apr 2009 11:26:42 +0000 (13:26 +0200)]
Use recv instead of read in read_packet_handler
This way the socket wrapper pcap file also sees the replies :-)
Stefan Metzmacher [Thu, 2 Apr 2009 19:06:27 +0000 (21:06 +0200)]
tsocket: remove DGRAM support from tsocket_context
metze
Stefan Metzmacher [Thu, 2 Apr 2009 08:36:03 +0000 (10:36 +0200)]
tsocket: optimize tdgram_bsd a lot
The desire is to do as less syscalls during the
tdgram_sendto_send/recv() and tdgram_recvfrom_send/recv()
operations.
1. we first try the sendto()/recvfrom() syscall and
only use a fd event if we got EAGAIN.
2. we cache the fd event and only change it's flags
if really needed.
For the highload case we do almost no epoll_ctl() and epoll_wait()/select()
syscalls anymore. This speeds up the LDAP-BENCH-CLDAP test
by more than 20%. (With a modified version of this test
which let the server skip any ldb calls and just return success
I'm getting about 8000 requests per second, while I'm getting
just about 6000 requests per second without optimization)
metze
Stefan Metzmacher [Sat, 28 Mar 2009 22:25:28 +0000 (23:25 +0100)]
tsocket: add tdgram_sendto_queue_send/recv()
metze
Stefan Metzmacher [Thu, 26 Mar 2009 13:27:45 +0000 (14:27 +0100)]
tsocket: split out a smaller tdgram_context abstraction
The idea is to have a tdgram and a tstream abstraction
which only provide tevent_req based io functions.
metze
Stefan Metzmacher [Sat, 28 Mar 2009 22:29:23 +0000 (23:29 +0100)]
lib/util: fallback to any id in idr_get_new_random()
metze
Tim Prouty [Tue, 31 Mar 2009 23:24:07 +0000 (16:24 -0700)]
tdb: Remove unused variable
Stefan Metzmacher [Tue, 31 Mar 2009 18:33:33 +0000 (20:33 +0200)]
tsocket: try to fix the build on solaris FIONREAD was missing
metze
Andrew Tridgell [Tue, 31 Mar 2009 04:06:23 +0000 (15:06 +1100)]
up the version to 1.1.4 with the addition of
tdb_transaction_prepare_commit()
Andrew Tridgell [Tue, 31 Mar 2009 02:59:03 +0000 (13:59 +1100)]
added basic testing of tdb_transaction_prepare_commit() in tdbtorture
Howard Chu [Tue, 31 Mar 2009 02:15:54 +0000 (13:15 +1100)]
Add tdb_transaction_prepare_commit()
Using tdb_transaction_prepare_commit() gives us 2-phase commits. This
allows us to safely commit across multiple tdb databases at once, with
reasonable transaction semantics
Signed-off-by: tridge@samba.org
Stefan Metzmacher [Sat, 28 Mar 2009 22:48:45 +0000 (23:48 +0100)]
tsocket: more s/sun/un to make the build on solaris happy
metze
Stefan Metzmacher [Fri, 27 Mar 2009 10:34:13 +0000 (11:34 +0100)]
tsocket: try to fix the build on solaris systems
It seems that 'sun' is somewhere defined and we can
use it as name for variables or struct/union members.
metze
Jelmer Vernooij [Thu, 26 Mar 2009 14:31:27 +0000 (15:31 +0100)]
Merge branch 'displaysec' of /home/jelmer/samba4
Jelmer Vernooij [Thu, 26 Mar 2009 14:31:02 +0000 (15:31 +0100)]
Merge branch 'master' of git://git.samba.org/samba
Jelmer Vernooij [Wed, 25 Mar 2009 19:51:29 +0000 (20:51 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec
Volker Lendecke [Sun, 1 Mar 2009 21:25:51 +0000 (22:25 +0100)]
Add tevent_req_simple_recv_ntstatus()
Michael Adam [Mon, 23 Mar 2009 16:36:46 +0000 (17:36 +0100)]
libreplace: use libreplace_SAVE_CPPFLAGS instead of SAVE_CPPFLAGS
This fixes Samba3's double listing of -I options in CFLAGS,
since samba3's configure wraps the call to AC_LIBREPLACE_NETWORK_CHECKS
into a SAVE_CPPFLAGS="${CPPFLAGS}" .. CPPFLAGS="${SAVE_CPPFLAGS}"
sequence... :-)
Michael
Stefan Metzmacher [Mon, 23 Mar 2009 08:16:18 +0000 (09:16 +0100)]
socket_wrapper: fix connect() for dgram sockets, if the destination isn't there yet
Now we defer the real_connect() for dgram sockets to the first send()/sendto() call,
as the destination might not be there at connect time.
Commit
66dc53ee017d74a6f610bbe04337f064901fe2a1 was an incomplete fix for this
problem.
metze
Volker Lendecke [Sun, 22 Mar 2009 21:07:58 +0000 (22:07 +0100)]
talloc_array_length: talloc_get_size deals fine with NULL
Stefan Metzmacher [Sun, 22 Mar 2009 11:36:38 +0000 (12:36 +0100)]
Revert "socket_wrapper: fix connect() for dgram sockets, if the destination isn't there yet"
This reverts commit
66dc53ee017d74a6f610bbe04337f064901fe2a1.
Somehow this leads to timeouts in some tests, samba4.ldb.ldapi
and samba4.rpc.schannel. I need to look at it more closely later...
metze
Volker Lendecke [Sun, 22 Mar 2009 08:48:54 +0000 (09:48 +0100)]
Revert "Add a basic Doxyfile for talloc"
This reverts commit
f55e84e904173bed8dc9099ad523ca1e7be12355.
Volker Lendecke [Sun, 22 Mar 2009 08:48:48 +0000 (09:48 +0100)]
Revert "Convert the contents of talloc_guide.txt to doxygen-style talloc.h comments"
This reverts commit
d21212c9192b41a3fdc7e96cb9bf0125a1dc6c2d.
Volker Lendecke [Sun, 22 Mar 2009 08:48:41 +0000 (09:48 +0100)]
Revert "Delete talloc_guide.txt"
This reverts commit
3f9c30022a53a37ad829f8882a9a5161fcadda8b.
Volker Lendecke [Sun, 22 Mar 2009 08:48:34 +0000 (09:48 +0100)]
Revert "Add a default "undocumented" module"
This reverts commit
ba42320c7e9f5ccbd32eccbfb1f2d77e13b3a318.
Volker Lendecke [Sun, 22 Mar 2009 08:48:27 +0000 (09:48 +0100)]
Revert "Add some initial hook to the front page"
This reverts commit
cfce2d3611f225244fadf3d27d76371827fd6422.
Volker Lendecke [Sun, 22 Mar 2009 08:48:19 +0000 (09:48 +0100)]
Revert "Reformatting"
This reverts commit
db447d0c476699dbf7fa0567c67f5938674ec811.
Volker Lendecke [Sun, 22 Mar 2009 08:48:14 +0000 (09:48 +0100)]
Revert "Document talloc_pool()"
This reverts commit
27944ed7452207ef3c686ff6bcd9c4e1cb7f36d8.
Volker Lendecke [Sun, 22 Mar 2009 08:48:06 +0000 (09:48 +0100)]
Revert "Add a talloc_internal "module""
This reverts commit
02662d56c64f367bffa2febba9a396c15454cfdb.
Volker Lendecke [Sun, 22 Mar 2009 08:47:59 +0000 (09:47 +0100)]
Revert "Document _talloc"
This reverts commit
2ce70d4f5a30973b4cc083dbbb38b519007a31bd.
Volker Lendecke [Sun, 22 Mar 2009 08:47:51 +0000 (09:47 +0100)]
Revert "Document TALLOC_FREE()"
This reverts commit
3f81649b8dcadb3bd424f41d803dbd59f770b9ba.
Volker Lendecke [Sun, 22 Mar 2009 08:47:44 +0000 (09:47 +0100)]
Revert "Document talloc_parent, talloc_parent_name and talloc_is_parent"
This reverts commit
986c2e01cca0be993f1e52d3a27819f4044bfe4b.
Volker Lendecke [Sun, 22 Mar 2009 08:47:37 +0000 (09:47 +0100)]
Revert "Document talloc_zero_array()"
This reverts commit
59dff5745528a3efe585cdeb03e2bedd6b2e404a.
Volker Lendecke [Sat, 21 Mar 2009 22:57:14 +0000 (23:57 +0100)]
Document talloc_zero_array()
Volker Lendecke [Sat, 21 Mar 2009 22:49:30 +0000 (23:49 +0100)]
Document talloc_parent, talloc_parent_name and talloc_is_parent
Volker Lendecke [Sat, 21 Mar 2009 19:02:50 +0000 (20:02 +0100)]
Document TALLOC_FREE()
Volker Lendecke [Sat, 21 Mar 2009 19:02:42 +0000 (20:02 +0100)]
Document _talloc
Volker Lendecke [Sat, 21 Mar 2009 19:02:19 +0000 (20:02 +0100)]
Add a talloc_internal "module"
Volker Lendecke [Sat, 21 Mar 2009 18:48:54 +0000 (19:48 +0100)]
Document talloc_pool()
Volker Lendecke [Sat, 21 Mar 2009 15:58:54 +0000 (16:58 +0100)]
Reformatting
Volker Lendecke [Sat, 21 Mar 2009 15:52:13 +0000 (16:52 +0100)]
Add some initial hook to the front page
Volker Lendecke [Sat, 21 Mar 2009 15:50:58 +0000 (16:50 +0100)]
Add a default "undocumented" module
Volker Lendecke [Sat, 21 Mar 2009 15:40:33 +0000 (16:40 +0100)]
Delete talloc_guide.txt
Volker Lendecke [Sat, 21 Mar 2009 11:43:08 +0000 (12:43 +0100)]
Convert the contents of talloc_guide.txt to doxygen-style talloc.h comments
talloc_guide.txt was partly outdated, and as going through talloc.h now shows
it was incomplete.
Volker Lendecke [Sat, 21 Mar 2009 09:17:24 +0000 (10:17 +0100)]
Add a basic Doxyfile for talloc
Stefan Metzmacher [Fri, 20 Mar 2009 15:27:17 +0000 (16:27 +0100)]
socket_wrapper: fix connect() for dgram sockets, if the destination isn't there yet
metze
Jelmer Vernooij [Fri, 20 Mar 2009 15:40:09 +0000 (16:40 +0100)]
Merge branch 'master' of ssh://git.samba.org/data/git/samba into displaysec
Stefan Metzmacher [Thu, 26 Feb 2009 13:33:52 +0000 (14:33 +0100)]
lib/util: build tevent_unix.o and tevent_ntstatus.o as UTIL_TEVENT subsystem
metze
Stefan Metzmacher [Wed, 18 Mar 2009 14:59:36 +0000 (15:59 +0100)]
lib/tsocket: add tsocket_guide.txt section with specific details about bsd style sockets
metze
Stefan Metzmacher [Wed, 11 Mar 2009 16:27:03 +0000 (17:27 +0100)]
lib/tsocket: add a fast path to tsocket_writev_send/recv()
This is similar to the tsocket_sendto_send/recv() fast path.
metze
Stefan Metzmacher [Wed, 11 Mar 2009 16:11:22 +0000 (17:11 +0100)]
lib/tsocket: add a fast path to tsocket_sendto_send/recv()
By first trying to send data without waiting for the socket
to become writeable we gain about 10-20% performance in the
LDAP-BENCH-CLDAP test.
metze
Stefan Metzmacher [Wed, 18 Mar 2009 10:14:38 +0000 (11:14 +0100)]
lib/tsocket: add tsocket_guide.txt section about the async _send/recv() helper functions
metze
Stefan Metzmacher [Wed, 11 Mar 2009 14:51:07 +0000 (15:51 +0100)]
lib/tsocket: add tsocket_readv_send/recv()
metze
Stefan Metzmacher [Wed, 11 Mar 2009 13:26:15 +0000 (14:26 +0100)]
lib/tsocket: add tsocket_writev_queue_send/recv()
metze
Stefan Metzmacher [Wed, 11 Mar 2009 13:10:47 +0000 (14:10 +0100)]
lib/tsocket: add tsocket_writev_send/recv()
metze
Stefan Metzmacher [Wed, 18 Feb 2009 08:19:09 +0000 (09:19 +0100)]
lib/tsocket: add tsocket_connect_send/recv()
metze
Stefan Metzmacher [Wed, 18 Feb 2009 09:00:50 +0000 (10:00 +0100)]
lib/tsocket: add tsocket_sendto_queue_send/recv()
metze
Stefan Metzmacher [Tue, 10 Mar 2009 20:12:31 +0000 (21:12 +0100)]
lib/tsocket: add tsocket_sendto_send/recv()
metze
Stefan Metzmacher [Wed, 18 Feb 2009 08:23:32 +0000 (09:23 +0100)]
lib/tsocket: add tsocket_recvfrom_send/recv()
metze
Stefan Metzmacher [Thu, 26 Feb 2009 14:37:44 +0000 (15:37 +0100)]
lib/tsocket: add an implementation for bsd style sockets.
metze
Stefan Metzmacher [Wed, 11 Mar 2009 09:25:07 +0000 (10:25 +0100)]
lib/tsocket: add a tsocket_guide.txt with a description of the design
metze
Stefan Metzmacher [Wed, 18 Feb 2009 08:14:26 +0000 (09:14 +0100)]
lib/tsocket: add some useful helper functions
metze
Stefan Metzmacher [Wed, 18 Feb 2009 08:10:54 +0000 (09:10 +0100)]
lib/tsocket: add generic socket abstraction layer
This will replace source4/lib/socket/.
metze
Stefan Metzmacher [Thu, 19 Mar 2009 13:31:43 +0000 (14:31 +0100)]
tevent: fix the nesting logic
Only tevent_loop_once and tevent_loop_until() should care
about the nesting level.
This fixes the samba3 printing code where we use tevent_loop_wait()
and don't allow nested events.
We still call the nesting hook for all levels, we need to decide
if we really want this...
metze
Andrew Tridgell [Thu, 19 Mar 2009 00:21:36 +0000 (11:21 +1100)]
fixed a logic bug in the tevent nesting code
The event nesting code never triggered as nesting.level was never
greater than 1. The main event loop needs to increase the nesting
level by 1.
I also added a paranoia check to the nesting setup call. The API as
currently written cannot support multiple nesting hooks, so we need to
abort if multiple hooks are tried.
Timur [Tue, 17 Mar 2009 21:46:53 +0000 (22:46 +0100)]
build: fix detection of netinet/ip.h on FreeBSD
Signed-off-by: Michael Adam <obnox@samba.org>
Timur [Tue, 17 Mar 2009 21:45:28 +0000 (22:45 +0100)]
build: format the header check for netinet/ip.h more nicely
Signed-off-by: Michael Adam <obnox@samba.org>
Stefan Metzmacher [Tue, 17 Mar 2009 19:18:01 +0000 (20:18 +0100)]
tevent: change version to 0.9.5 after the ABI has changed
metze
Stefan Metzmacher [Tue, 17 Mar 2009 19:13:34 +0000 (20:13 +0100)]
tevent: store the location where a request was finished
This is very useful to find bugs.
You can use 'p *req' in gdb to show where
tevent_req_done(), tevent_req_error() or tevent_req_nomem()
was called.
metze
Stefan Metzmacher [Tue, 17 Mar 2009 09:42:55 +0000 (10:42 +0100)]
tevent: use an immediate event as trigger for tevent_queue
metze
Stefan Metzmacher [Tue, 17 Mar 2009 09:18:34 +0000 (10:18 +0100)]
tevent: use an immediate event fot tevent_req_post()
Now tevent_req_post() never fails
metze
Stefan Metzmacher [Tue, 17 Mar 2009 09:17:50 +0000 (10:17 +0100)]
tevent: use TALLOC_FREE() in tevent_req.c
metze
Stefan Metzmacher [Fri, 13 Mar 2009 14:47:33 +0000 (15:47 +0100)]
tevent: add support for immediate events
They're like directly triggered timed events,
but you can preallocated them and scheduling them
will not fail.
metze
Stefan Metzmacher [Mon, 16 Mar 2009 13:15:07 +0000 (14:15 +0100)]
tevent: add tevent_common_loop_wait() helper function and use it
tevent_loop_wait should do the same for all backends.
It should loop as long as we have pending events.
metze
Stefan Metzmacher [Mon, 16 Mar 2009 11:45:48 +0000 (12:45 +0100)]
tevent: check signal events first in event_loop_once
We also check for signal events directly before and after
the select/epoll calls.
metze
Stefan Metzmacher [Mon, 16 Mar 2009 11:34:23 +0000 (12:34 +0100)]
tevent: let tevent_loop_once() just run one fd event
This makes the logic much simpler for the callers,
and matches the samba3 behavior.
If needed we can add performance tunning for tevent_loop_wait()
later.
metze
Volker Lendecke [Tue, 17 Mar 2009 08:38:14 +0000 (09:38 +0100)]
Remove some transitional code in writev_send
Volker Lendecke [Mon, 16 Mar 2009 19:17:45 +0000 (20:17 +0100)]
Remove some unused code from async_req.[ch]
Stefan Metzmacher [Mon, 16 Mar 2009 09:19:09 +0000 (10:19 +0100)]
talloc: change version to 1.3.0
metze
Stefan Metzmacher [Mon, 16 Mar 2009 09:16:40 +0000 (10:16 +0100)]
talloc: add useful talloc_array_length() macro
metze
Stefan Metzmacher [Mon, 16 Mar 2009 09:13:58 +0000 (10:13 +0100)]
talloc: add TALLOC_ZERO()
metze
Stefan Metzmacher [Fri, 13 Mar 2009 09:20:29 +0000 (10:20 +0100)]
lib/replace: use AC_TRY_LINK() to verify that getifaddrs() and freeifaddrs() are available
metze
Jelmer Vernooij [Sun, 15 Mar 2009 17:10:20 +0000 (18:10 +0100)]
Strip /usr/include from include flags, so we don't end up including
the system tevent if it's too old.
Jelmer Vernooij [Sun, 15 Mar 2009 13:57:58 +0000 (14:57 +0100)]
Merge branch 'tdr' of /home/jelmer/samba4
Jelmer Vernooij [Sat, 14 Mar 2009 23:54:55 +0000 (00:54 +0100)]
Remove -L/usr/lib from a couple more make variables.
Jelmer Vernooij [Sat, 14 Mar 2009 23:54:29 +0000 (00:54 +0100)]
tdr: Remove dependency on lp_* so it can be used in both Samba 3 and
Samba 4.
Jelmer Vernooij [Sat, 14 Mar 2009 20:57:44 +0000 (21:57 +0100)]
Move tdr to top-level.
Stefan Metzmacher [Fri, 13 Mar 2009 14:49:35 +0000 (15:49 +0100)]
tevent: change version to 0.9.4 as the ABI has changed
metze
Tim Prouty [Thu, 12 Mar 2009 17:44:36 +0000 (10:44 -0700)]
tevent: Fix might be unitialized warning
Stefan Metzmacher [Thu, 12 Mar 2009 09:35:23 +0000 (10:35 +0100)]
tevent: add tevent_loop_until()
This is only a hack for samba4 and should not be used
in new code.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 09:23:30 +0000 (10:23 +0100)]
tevent: add tevent_loop_set_nesting_hook()
This is an ugly hack to let the s4 server work arround
some bugs related to nested events and uid changing.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:51:33 +0000 (09:51 +0100)]
tevent: don't allow nested tevent_loop_once() anymore
Incompatible caller should use tevent_loop_allow_nesting()
function.
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:33:26 +0000 (09:33 +0100)]
tevent: pass __location__ to tevent_loop_once/wait()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 08:22:41 +0000 (09:22 +0100)]
tevent: add tevent_set_abort_fn()
metze
Stefan Metzmacher [Thu, 12 Mar 2009 07:48:59 +0000 (08:48 +0100)]
tevent: add tevent_signal_support()
Not every tevent backend supports signal events.
metze