summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug noticed by Volker - if sendfile returns zero thenJeremy Allison2009-01-131-4/+12
| | | | | we might have to handle a short send by filling with zeros. Jeremy.
* Fix bug #6019 File corruption in Clustered SMB/NFS environment managed via CTDBJeremy Allison2009-01-131-2/+2
| | | | Jeremy.
* Make STATEDIR and CACHEDIR configurable through ./configure and loadparm.cSteven Danneman2009-01-122-14/+66
| | | | | | If they are not explicitely set in either place both will default to LOCKDIR. Signed-off-by: Michael Adam <obnox@samba.org>
* Even for srclen == 0 we have to return somethingVolker Lendecke2009-01-121-0/+6
| | | | | | | | This fixes a regression reported by Corinna Vinschen <corinna@vinschen.de> Thanks, Volker
* s3:events: debug sys_select() errorsStefan Metzmacher2009-01-091-0/+3
| | | | metze
* s3:events: install a tevent debug handler that calls DEBUG()Stefan Metzmacher2009-01-091-1/+42
| | | | metze
* Fix race condition in alarm lock processing noticed by Richard Sharpe ↵Jeremy Allison2009-01-081-1/+1
| | | | | | | | | | | | | | | <realrichardsharpe@gmail.com>. "It seems to me that if the lock is already held by another process when we enter this code, there is a race between the timeout and the granting. If the lock is subsequently granted, the process releasing the lock will signal the wait variable (or whatever) and our process will be scheduled. However, if the timeout occurs before we are scheduled, the timeout will be delivered first. We will have the lock but will forget we have the lock, and never release it." Jeremy.
* Several fixes to our use of spliceVolker Lendecke2009-01-071-4/+6
| | | | | | | | | | | | | | | | | The splice manpage explicitly requires loff_t as offset. Copy "offset" there. Probably not required, but I wanted to make sure it's as required. Splice blocks with large buffers. For me it worked with 16k and blocked with 32k and beyond. It would be nice to see a clarification in the manpage of splice for this behaviour. Splice if used with an offset increments the offset. From the manpage this was at least not entirely obvious :-) I haven't yet activated this (try_splice_call ist still false by default), it needs more testing. Volker
* s3-samr: avoid all init_samr_user* functions.Günther Deschner2009-01-061-29/+35
| | | | Guenther
* s3:events: use more tevent_common_* functionsStefan Metzmacher2009-01-051-158/+6
| | | | metze
* Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-01-055-201/+186
|\
| * s3:events: register as tevent backendStefan Metzmacher2009-01-051-137/+172
| | | | | | | | metze
| * s3:events: get rid of the stupid set_event_dispatch_time() functionStefan Metzmacher2009-01-051-16/+0
| | | | | | | | metze
| * s3:events: get rid of the stupid cancel_named_event() functionStefan Metzmacher2009-01-051-16/+0
| | | | | | | | metze
| * s3:events: change event_add_timed() prototype to match samba4Stefan Metzmacher2009-01-054-19/+17
| | | | | | | | metze
| * s3:events: remove unused stuffStefan Metzmacher2009-01-051-25/+0
| | | | | | | | metze
| * clean event context after child is forked.Bo Yang2009-01-052-0/+9
| | | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* | Merge branch 'master' of ssh://git.samba.org/data/git/sambaJelmer Vernooij2009-01-0410-226/+1925
|\|
| * Remove a duplicated commentVolker Lendecke2009-01-041-4/+0
| |
| * Add open_socket_out_defer_send/recvVolker Lendecke2009-01-041-0/+111
| |
| * Async wrapper for open_socket_out_send/recvVolker Lendecke2009-01-041-56/+168
| |
| * async libwbclient infrastructureVolker Lendecke2009-01-041-0/+774
| |
| * Remove wb_trans_send/recvVolker Lendecke2009-01-041-143/+0
| |
| * Move winbindd/winbindd_reqtrans.c to lib/wb_reqtrans.cVolker Lendecke2009-01-041-0/+685
| |
| * Convert async_connect to "normal" styleVolker Lendecke2009-01-041-101/+113
| |
| * Actually do a non-blocking connect.... :-)Volker Lendecke2009-01-041-1/+1
| |
| * Add an async queueing mechanismVolker Lendecke2009-01-041-0/+78
| |
| * Add async timeout helpersVolker Lendecke2009-01-041-0/+42
| |
| * open_socket_out is always used with SOCK_STREAM, remove argument "type"Volker Lendecke2009-01-031-9/+3
| |
| * Fix retval of async_syscall_result_intVolker Lendecke2009-01-031-1/+1
| |
| * struct async_req doesn't really need to carry an event_contextVolker Lendecke2009-01-032-9/+10
| |
| * Replace some SMB_ASSERTs with NT_STATUS_INTERNAL_ERRORVolker Lendecke2009-01-021-7/+28
| |
| * Optimize for the common case that packet.c received exactly one full packetVolker Lendecke2009-01-021-8/+14
| |
| * packet.h API: The callback is now responsible to talloc_free() "buf"Volker Lendecke2009-01-022-35/+46
| |
| * Fix bug 5913.Volker Lendecke2009-01-011-1/+1
| | | | | | | | Never seen this to be a problem, but it doesn't hurt either :-)
| * Remove two pointless globalsVolker Lendecke2009-01-012-13/+12
| |
* | Add iconv_convenience argument to size functions.Jelmer Vernooij2009-01-014-8/+8
|/
* Fix all warnings in source3 with gcc4.3.Jeremy Allison2008-12-311-4/+30
| | | | Jeremy.
* Disable the use of splice(2)Volker Lendecke2008-12-311-1/+1
| | | | | | | | | | 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...
* Try to fix recvfile using splice on LinuxVolker Lendecke2008-12-311-21/+36
| | | | | | | | 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!
* Rename parent_dirname_talloc() to parent_dirname()Volker Lendecke2008-12-311-2/+2
|
* Remove unused function parent_dirnameVolker Lendecke2008-12-311-13/+0
|
* Make use of TALLOC_MEMDUP in parent_dirname_talloc()Volker Lendecke2008-12-311-2/+1
|
* Remove unused function get_numlist()Volker Lendecke2008-12-311-51/+0
|
* s3:cluster: register the client connection via CTDB_CONTROL_TCP_ADDStefan Metzmacher2008-12-301-7/+19
| | | | | | | This means we correctly pass IPv6 addresses too. (CTDB_CONTROL_TCP_CLIENT was IPv4 only) metze
* Add code to test write_data_iov a bitVolker Lendecke2008-12-291-0/+11
|
* Make write_data use write_data_iovVolker Lendecke2008-12-291-24/+24
|
* Add write_data_iovVolker Lendecke2008-12-291-0/+69
|
* Add sys_writevVolker Lendecke2008-12-291-0/+14
|
* s3:dbwrap: fix dbwrap_store_uint32() to match dbwrap_store_int32()Stefan Metzmacher2008-12-291-2/+2
| | | | | | All callers expect 0 an success and -1 on error. metze