summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
...
* s3-prefork: better timing out semanticsSimo Sorce2011-08-101-4/+14
| | | | | | | | | | | | | | | If this child has no clients, let the lock functions block for 1 second, and then immediately reschedule the operation. This means we catch the lock as soon as possible on a free child. If, instead, we are already serving a client, we want to be non blocking, so we timeout immediately on getting the lock, and then we sleep a 1/10th of a second. This means that a busy child will be slightly slower on picking up the lock, but we won't block the existing client from communicating with us as we immediately react to activity on the already opened file handler. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: add support for multiple listning file descriptorsSimo Sorce2011-08-103-95/+84
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolssd: propagate SIGHUP to childrenSimo Sorce2011-08-101-11/+34
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: provide way to send a signal to all childrenSimo Sorce2011-08-102-0/+15
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolssd: expand children pool when necessarySimo Sorce2011-08-101-7/+34
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: provide means to expand the pool sizeSimo Sorce2011-08-102-0/+33
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolssd: Use parametric option for prefork parametersSimo Sorce2011-08-101-12/+48
| | | | | | | | | | | example: spoolssd:prefork = 10:100:5 will configure spoolssd to start with a minimum of 10 preforked children, a max set to 100 children and spawns/retires 5 children at a time when ramping up/scaling down. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolss: make listening asynchronousSimo Sorce2011-08-101-26/+60
| | | | | | | This also allows to make each children serve more than one client at the same time if necessary. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-spoolssd: Use the prefork framework in spoolssdSimo Sorce2011-08-101-3/+425
| | | | | | | This should make it more scalable and able to handle easily multiple clients at the same time. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc_server: add termination functionSimo Sorce2011-08-102-3/+23
| | | | | | This way we can act when a client disconnects. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-rpc: Expose some internal functionsSimo Sorce2011-08-102-33/+44
| | | | | | This will allow to hook the prefork socket handlers to the rpc service. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: add way to manage number of clients per childSimo Sorce2011-08-102-3/+38
| | | | | | | | The allowed_clients var is a parent managed variable that tell children how many clients they are allowed to handle at the same time. This way children can overcommit but within parent controlled limits. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: add asynchronous functionsSimo Sorce2011-08-102-1/+267
| | | | | | To get a client connection it is now possible to use asynchronous functions. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-prefork: implement prefork frameworkSimo Sorce2011-08-104-0/+580
| | | | | | | Primarily built for forked off rpc service daemons, but not tied to rpc services and generic enough to be used elsewhere easily. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-printing: No need to register to smbd's children listSimo Sorce2011-08-101-19/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* lib-util: Make useful function a common utility.Simo Sorce2011-08-101-26/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* s3: Remove an unnecessary includeVolker Lendecke2011-08-101-1/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Aug 10 18:10:39 CEST 2011 on sn-devel-104
* s3:idmap_tdb2: fix bug 8368 : correctly initialize "idmap config * : script" ↵Michael Adam2011-08-101-1/+1
| | | | | | | | | with NULL this fixes the fallback to the deprecated spelling idmap:script Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Aug 10 14:59:32 CEST 2011 on sn-devel-104
* s3:libsmb: make cli_session_setup_spnego() staticStefan Metzmacher2011-08-102-6/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Aug 10 12:31:55 CEST 2011 on sn-devel-104
* s3:winbindd_cm: use cli_session_setup() instead of cli_session_setup_spnego()Stefan Metzmacher2011-08-101-15/+18
| | | | metze
* s3:libsmb: pass remote_realm to cli_session_setup_spnego() in ↵Stefan Metzmacher2011-08-101-1/+3
| | | | | | cli_session_setup() metze
* s3:libsmb: store the remote_realm on the cli_stateStefan Metzmacher2011-08-105-2/+20
| | | | metze
* s3:smb_macros.h: simplify _smb_setlen() and _smb_setlen_large()Stefan Metzmacher2011-08-101-6/+4
| | | | | | This also takes care of the correct casting. metze
* s3:include: smb.h base old smb header offsets on new definesStefan Metzmacher2011-08-101-32/+32
| | | | metze
* s3:include: smb.h merge some stuff from source4Stefan Metzmacher2011-08-101-0/+35
| | | | metze
* Revert "s3:test_async_echo: unsure the desired smb message sequence"Stefan Metzmacher2011-08-101-10/+0
| | | | | | | | | | | This reverts commit 34faeb8bba86fff57466c06682b7dcbffc48a52a. This is not needed anymore. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Aug 10 09:54:24 CEST 2011 on sn-devel-104
* s3:vfs_prealloc: fix build on SLES8Björn Jacke2011-08-091-0/+1
| | | | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Tue Aug 9 19:29:08 CEST 2011 on sn-devel-104
* s3:libsmb/cli*: use CLI_BUFFER_SIZE instead of cli->max_xmitStefan Metzmacher2011-08-094-14/+14
| | | | | | | | | | | | The max_data parameter of trans2/nttrans calls are not bound to cli->max_xmit. Even with cli->max_xmit, which means the max size of the whole SMB pdu, we would get fragmented trans2/nttrans replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 18:14:38 CEST 2011 on sn-devel-104
* s3:torture/*: use CLI_BUFFER_SIZE instead of cli->max_xmitStefan Metzmacher2011-08-092-3/+3
| | | | | | | | | The max_data parameter of trans2/nttrans calls are not bound to cli->max_xmit. Even with cli->max_xmit, which means the max size of the whole SMB pdu, we would get fragmented trans2/nttrans replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE. metze
* s3-rpc_server: Fix sending of packets over named pipe proxy.Andreas Schneider2011-08-091-22/+27
| | | | | | | | | | We need for named pipes we need to send each fragment on its own to be a message. Signed-off-by: Simo Sorce <idra@samba.org> Autobuild-User: Andreas Schneider <asn@cryptomilk.org> Autobuild-Date: Tue Aug 9 11:55:18 CEST 2011 on sn-devel-104
* s3-smbd: Pass tevent context to smbd_server_connection_loop_once().Andreas Schneider2011-08-093-16/+17
| | | | Signed-off-by: Simo Sorce <idra@samba.org>
* s3-rpc_server: Free the children of p->mem_ctx.Andreas Schneider2011-08-091-1/+5
| | | | | | | Free the children of p->mem_ctx after processing a complete incoming and outgoing request. Signed-off-by: Simo Sorce <idra@samba.org>
* s3:lib/events: Fix a bug in run_poll_events().Stefan Metzmacher2011-08-091-0/+4
| | | | | | | | | | | | | | Ignore fd events without EVENT_FD_READ or EVENT_FD_WRITE also in run_events_poll(). They are ignore when building the array for the syscall in event_add_to_poll_args(), so we need to ignore them run_events_poll() too. metze Signed-off-by: Andreas Schneider <asn@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 10:11:54 CEST 2011 on sn-devel-104
* s3:selftest: run the net rpc registry test under "s3dc" instead "s3dc:local".Michael Adam2011-08-081-1/+1
| | | | | Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 8 19:18:41 CEST 2011 on sn-devel-104
* s3-net: Fixed a small typo in net conf function tableVicentiu Ciorbaru2011-08-081-1/+1
| | | | | | | The description of the function net conf delincludes had a wrong usage message: "net conf setincludes" instead of "net conf delincludes". Signed-off-by: Michael Adam <obnox@samba.org>
* s3-net: Fixed typo in net confVicentiu Ciorbaru2011-08-081-1/+1
| | | | | | | | | There was a missing ']' in net conf addshare usage message. Signed-off-by: Michael Adam <obnox@samba.org> Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Mon Aug 8 16:44:08 CEST 2011 on sn-devel-104
* s3:smbconf let drop leave the smbconf key in place to match a virgin ↵Gregor Beck2011-08-081-1/+1
| | | | | | registry.tdb Signed-off-by: Michael Adam <obnox@samba.org>
* s3:registry avoid updating keys which are going to be deleted inGregor Beck2011-08-086-30/+47
| | | | | | | | | reg_deletekey_recursive this changes the complexity from O(n^2) to O(n) and reduces the time of a 'net conf drop' with 10000 shares from 6min to 1.5s Signed-off-by: Michael Adam <obnox@samba.org>
* build: rename rpcommon to dcerpc-binding an make a public libraryAndrew Bartlett2011-08-081-2/+2
| | | | | | OpenChange needs this library. Andrew Bartlett
* build: provide tevent-util as a public libraryAndrew Bartlett2011-08-081-2/+2
| | | | | | | This is needed so that OpenChange can get at _tevent_req_nterr(), which is referenced by generated PIDL output. Andrew Bartlett
* s3-waf: Fix build on FreeBSD when sunacl.h is foundAndrew Bartlett2011-08-081-1/+1
| | | | | Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Mon Aug 8 04:34:35 CEST 2011 on sn-devel-104
* s3:smb2_server: make sure we grant credits on async read/write operations ↵Stefan Metzmacher2011-08-071-6/+15
| | | | | | | | | | | | | (bug #8357) Currently we skip, the "gone async" interim response on read and write, this caused the aio code path to grant 0 credits to the client in the read/write responses. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Aug 7 22:23:57 CEST 2011 on sn-devel-104
* s3:web/swat: use strtoll() instead of atoi/atol/atollStefan Metzmacher2011-08-061-6/+19
| | | | | | | | | | This is more portable, as we have a strtoll replacement in lib/replace. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sat Aug 6 11:55:45 CEST 2011 on sn-devel-104
* s3:rpc_transport_tstream: only use tstream_cli_np_use_trans() for sync requestsStefan Metzmacher2011-08-051-0/+6
| | | | | | | | | | Currently the caller doesn't cope with multiple async requests anyway, so this is just protection for the future. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Aug 5 22:31:12 CEST 2011 on sn-devel-104
* s3: Make srv_enc_ctx staticVolker Lendecke2011-08-052-2/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Aug 5 18:29:24 CEST 2011 on sn-devel-104
* s3: Fix a debug messageVolker Lendecke2011-08-051-1/+1
|
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-052-6/+6
|
* s3: Fix "ISO C90 forbids mixed declarations and code"Volker Lendecke2011-08-051-7/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Fri Aug 5 16:58:37 CEST 2011 on sn-devel-104
* s3: Fix some nonempty blank linesVolker Lendecke2011-08-051-25/+25
|
* s3: make linking of pthreadpooltest work on more platformsBjörn Jacke2011-08-051-1/+1
| | | | | Autobuild-User: Björn Jacke <bj@sernet.de> Autobuild-Date: Fri Aug 5 12:48:55 CEST 2011 on sn-devel-104