Volker Lendecke
fe56659442
Remove a duplicated comment
2009-01-04 18:03:23 +01:00
Volker Lendecke
0cc63c6416
Add open_socket_out_defer_send/recv
2009-01-04 16:42:40 +01:00
Volker Lendecke
19b783cce9
Async wrapper for open_socket_out_send/recv
2009-01-04 16:42:40 +01:00
Volker Lendecke
4df681abf4
async libwbclient infrastructure
2009-01-04 16:42:40 +01:00
Volker Lendecke
8c1691d213
Remove wb_trans_send/recv
2009-01-04 16:42:40 +01:00
Volker Lendecke
d933362cb7
Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.c
2009-01-04 16:42:40 +01:00
Volker Lendecke
c6c33d840b
Convert async_connect to "normal" style
2009-01-04 16:42:40 +01:00
Volker Lendecke
34e8945cb5
Actually do a non-blocking connect.... :-)
2009-01-04 16:42:40 +01:00
Volker Lendecke
611f0d7ee6
Add an async queueing mechanism
2009-01-04 16:42:40 +01:00
Volker Lendecke
ebacce2efe
Add async timeout helpers
2009-01-04 16:42:40 +01:00
Volker Lendecke
fafb9ecc61
open_socket_out is always used with SOCK_STREAM, remove argument "type"
2009-01-03 19:22:06 +01:00
Volker Lendecke
b6138bf4f2
Fix retval of async_syscall_result_int
2009-01-03 19:07:57 +01:00
Volker Lendecke
27abf6731e
struct async_req doesn't really need to carry an event_context
2009-01-03 19:07:57 +01:00
Volker Lendecke
980aa0d464
Replace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERROR
2009-01-02 22:14:23 +01:00
Volker Lendecke
b4e1eb4345
Optimize for the common case that packet.c received exactly one full packet
2009-01-02 22:11:50 +01:00
Volker Lendecke
aed8c7bfcf
packet.h API: The callback is now responsible to talloc_free() "buf"
2009-01-02 22:11:50 +01:00
Volker Lendecke
7458111ea4
Fix bug 5913.
...
Never seen this to be a problem, but it doesn't hurt either :-)
2009-01-01 22:08:24 +01:00
Volker Lendecke
e551f43b4b
Remove two pointless globals
2009-01-01 19:08:33 +01:00
Jeremy Allison
07e0094365
Fix all warnings in source3 with gcc4.3.
...
Jeremy.
2008-12-31 18:06:57 -08:00
Volker Lendecke
98f830cdfc
Disable the use of splice(2)
...
On a debian lenny installation with a kernel that calls itself 2.6.28, I could
repeatably block smbd using splice. According to the output of netstat, the
recvq of the TCP connection was full and at the same time according to strace
smbd was stuck in a splice syscall trying to read from that TCP connection. We
can not protect ourselves from this condition, as nobody will ever notify us
that something is broken. So sadly we can't use splice yet at all. Maybe in
2.6.29...
2008-12-31 19:33:25 +01:00
Volker Lendecke
e0fd61f0cb
Try to fix recvfile using splice on Linux
...
According to the splice(2) manpage, one of the file descriptors *must* be a
pipe. With this patch I could successfully run splice(2) on a debian lenny
installation.
Jeremy, please check!
2008-12-31 19:33:25 +01:00
Volker Lendecke
972295f80a
Rename parent_dirname_talloc() to parent_dirname()
2008-12-31 19:33:25 +01:00
Volker Lendecke
9b79181f15
Remove unused function parent_dirname
2008-12-31 19:33:25 +01:00
Volker Lendecke
8a507b1e7f
Make use of TALLOC_MEMDUP in parent_dirname_talloc()
2008-12-31 19:33:24 +01:00
Volker Lendecke
add3d572d0
Remove unused function get_numlist()
2008-12-31 19:33:24 +01:00
Stefan Metzmacher
465176b7e2
s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADD
...
This means we correctly pass IPv6 addresses too.
(CTDB_CONTROL_TCP_CLIENT was IPv4 only)
metze
2008-12-30 16:18:08 +01:00
Volker Lendecke
86cb14db2b
Add code to test write_data_iov a bit
2008-12-29 13:24:28 +01:00
Volker Lendecke
afd70855b7
Make write_data use write_data_iov
2008-12-29 13:24:28 +01:00
Volker Lendecke
82a152fcf9
Add write_data_iov
2008-12-29 13:24:27 +01:00
Volker Lendecke
6251b97e02
Add sys_writev
2008-12-29 13:24:27 +01:00
Stefan Metzmacher
a255f9ce71
s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()
...
All callers expect 0 an success and -1 on error.
metze
2008-12-29 09:05:15 +01:00
Steven Danneman
9affa82ac2
Make sure share_info.tdb is open before attempting to delete an entry
2008-12-28 17:45:26 -08:00
Jelmer Vernooij
ef80d1b794
Fix use of "time offset" parameter, and add test to make sure I don't break it again :-)
2008-12-23 22:10:34 +01:00
Volker Lendecke
3c6d070595
Move some bytes from data to text, make use of the ARRAY_SIZE macro
...
Probably pointless, but it doesn't add complexity and it is fun to see bss and
data shrink :-)
2008-12-19 13:38:54 +01:00
Dan Sledz
2f17be1f57
s3: Use DEBUGADD instead of DEBUG to avoid printing the header
2008-12-15 23:30:50 -08:00
Volker Lendecke
daeb3a190d
Remove the global "cmdline_auth_info" from source3/lib/util.c
...
This involves changing all our clients, that's why it's so large.
2008-12-14 14:00:43 +01:00
Volker Lendecke
31f157a04b
Move 128 bytes from the data to the text segment
2008-12-14 13:13:37 +01:00
Volker Lendecke
5887857a24
Remove a pointless static variable
2008-12-14 12:30:53 +01:00
Tim Prouty
6153f622af
s3: Refactor getting sec_info from a security_descriptor into separate function
2008-12-09 14:51:48 -08:00
Volker Lendecke
7fbb64d726
Simplify async programming a bit with helper routines
...
Introduce async_req_is_error() and async_req_simple_recv()
2008-12-08 22:09:33 +01:00
Volker Lendecke
f9aa69ae35
Streamline the async_sock API a bit
2008-12-08 22:09:33 +01:00
Dan Sledz
f9172a2af5
Fix logging to syslog
2008-12-05 18:00:32 -08:00
Tomasz Krasuski
33193c2bb7
Fix bug #5928 - Option --version in testparm does not work.
2008-12-05 16:30:39 -08:00
Günther Deschner
7423b6a4b8
s3-samr: fix SAMR_FIELD_PASSWORD callers.
...
Guenther
2008-12-05 14:27:03 +01:00
Tim Prouty
1eb743ab8e
s3: Change sockaddr util function names for consistency
...
Also eliminates name conflicts with OneFS system libraries
2008-12-03 10:40:20 -08:00
Volker Lendecke
9a3be6f0f8
Move cli_trans_oob to lib/util.c
...
Rename it to trans_oob, it will be used in the server routines.
2008-11-28 08:24:37 +01:00
Volker Lendecke
df21095ce8
Attempt to fix the build
...
I have no idea how this could have happened. Probably done a make and make
test in a different tree than the one I have done the push from. Sorry.
Volker
2008-11-15 00:50:33 +01:00
Volker Lendecke
3c98d5bd98
Make memcache_add_talloc NULL out the source pointer
...
This is an orthogonality measure to make clear this pointer now belongs to the
cache.
(cherry picked from commit e6080c6e87d6fe3995b121a772bf3f6343fa666f)
2008-11-14 20:27:46 +01:00
Volker Lendecke
f50ad76750
Actually finish memcache_add_talloc
...
This fixes a memleak found by Martin Zielinski <mz@seh.de>. Thanks for
looking closely!
Volker
(cherry picked from commit a31a84a078100819809e6d40dbc3df207a50a0b2)
2008-11-14 20:07:29 +01:00
Volker Lendecke
5a210cc552
Rename some variables in getpwnam_alloc() for clarity
2008-11-14 13:26:40 +01:00