summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:lib: only loop over the server_ids we need to verify in serverids_exist()Stefan Metzmacher2012-08-241-11/+23
| | | | metze
* s3:lib: use server_id_is_disconnected() in serverids_exist()Stefan Metzmacher2012-08-241-0/+4
| | | | metze
* s3:lib: inline processes_exist() into serverids_exist()Stefan Metzmacher2012-08-241-14/+99
| | | | metze
* s3:lib: SERVERID_UNIQUE_ID_NOT_TO_VERIFY only means not to verify the ↵Stefan Metzmacher2012-08-241-3/+4
| | | | | | | | 'unique_id' part It doesn't mean the the server_id is always valid. metze
* s3:lib: implement process_exists() as wrapper of serverid_exists()Stefan Metzmacher2012-08-241-14/+2
| | | | | | | The changes the behavior of process_exists() it checks the pid.unique_id now, if it's not SERVERID_UNIQUE_ID_NOT_TO_VERIFY. metze
* s3:g_lock: use serverid_exists() with SERVERID_UNIQUE_ID_NOT_TO_VERIFYStefan Metzmacher2012-08-241-1/+10
| | | | metze
* s3:lib: implement serverid_exists() as wrapper of serverids_exist()Stefan Metzmacher2012-08-241-30/+5
| | | | metze
* s3:lib: remove CTDB_CONTROL_CHECK_SRVIDS optimization in serverids_exist() ↵Stefan Metzmacher2012-08-241-6/+0
| | | | | | | | for now This will be readded... metze
* Remove align_string(). No longer used.Jeremy Allison2012-08-221-11/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Aug 22 20:38:50 CEST 2012 on sn-devel-104
* s3: add a debug message for failed execv in sys_popen()Michael Adam2012-08-171-1/+6
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:lib: implement interpret_pid() as wrapper of server_id_from_string()Stefan Metzmacher2012-08-171-30/+1
| | | | metze
* s3:lib: implement serverid_equal() as macro of server_id_equal()Stefan Metzmacher2012-08-171-21/+0
| | | | metze
* s3-g_lock: Make g_lock_lock more robustVolker Lendecke2012-08-161-0/+24
| | | | | | | | | | | | If for some reason the cleanup of dbwrap_watch_send does not work properly, we might starve indefinitely. Make the lock routine more robust by retrying every 5-10 seconds. g_lock_trylock will clean up orphaned entries. Signed-off-by: Christian Ambach <ambi@samba.org> Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Thu Aug 16 19:44:00 CEST 2012 on sn-devel-104
* s3-msg: For msg_channel, correct the talloc hierarchyVolker Lendecke2012-08-161-1/+1
| | | | | | | talloc_free() of a channel must free all immediate requests that have piled up Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-msg: Rename msg_channel_init_destructorVolker Lendecke2012-08-161-3/+3
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-g_lock: Properly free "rec" on retry to avoid deadlockVolker Lendecke2012-08-161-0/+1
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-sysacls: Remove sys_acl_free_qualifier() as it is a no-opAndrew Bartlett2012-08-151-5/+0
| | | | | Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Wed Aug 15 05:23:18 CEST 2012 on sn-devel-104
* s3-sysacls: Remove sys_acl_free_acl() and replace with TALLOC_FREE()Andrew Bartlett2012-08-151-6/+0
|
* s3-smbd: Change allocation of smb_acl_t to talloc()Andrew Bartlett2012-08-151-10/+9
| | | | | | | | | The acl element is changed to be a talloc child, and is no longer one element longer than requested by virtue of the acl[1] base pointer. This also avoids one of the few remaining cases of over-allocation of a structure. Andrew Bartlett
* Remove smb_panic() from unix_strlower(). Just rely on error code return.Jeremy Allison2012-08-091-2/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Thu Aug 9 23:52:53 CEST 2012 on sn-devel-104
* Correctly check for errors in strlower_m() returns.Jeremy Allison2012-08-095-12/+37
|
* Fix strlower_m() to return an error indication.Jeremy Allison2012-08-091-4/+8
|
* Check error returns on strnorm().Jeremy Allison2012-08-091-2/+3
|
* Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2012-08-094-8/+19
|
* Change strupper_m() to return a value.Jeremy Allison2012-08-091-4/+8
|
* Fix bad return in unix_strupper.Jeremy Allison2012-08-091-1/+1
|
* Prepare to remove smb_panic() from unix_strlower().Jeremy Allison2012-08-091-0/+2
|
* Fix bad return values in unix_strlower/unix_strupper.Jeremy Allison2012-08-091-2/+2
|
* s3-events: Do not vasprintf() the tevent debug messages that will not be shownAndrew Bartlett2012-08-091-4/+6
| | | | | | | This malloc() and free() actually shows up quite high on a call profile of provision of the AD DC (and this is the matching patch for source3). Andrew Bartlett
* source3/loadparm.c: Move string_set/string_free inside.Rusty Russell2012-08-071-77/+0
| | | | | | | The only user, so make them static inside loadparm.c Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Andrew Bartlett <abartlet@samba.org>
* s3-ctdb: return proper exit codeChristian Ambach2012-08-031-1/+1
| | | | | | | do not loose the result from ctdbd_messaging_send_blob() Autobuild-User(master): Christian Ambach <ambi@samba.org> Autobuild-Date(master): Fri Aug 3 14:49:01 CEST 2012 on sn-devel-104
* s3-ctdb: adjust a loglevelChristian Ambach2012-08-031-2/+2
|
* s3-ctdb: Fix ctdb_serverids_exist for target nodes that diedVolker Lendecke2012-08-031-4/+20
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3-ctdb: Add debugs to ctdb_serverids_existVolker Lendecke2012-08-031-10/+20
| | | | Signed-off-by: Christian Ambach <ambi@samba.org>
* s3:ctdbd_conn: use unitX_t types consistently throughout the moduleMichael Adam2012-08-011-22/+22
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:dbwrap_ctdb: initialize db_record->dbStefan Metzmacher2012-07-311-0/+1
| | | | metze
* s3: add Darwin sendfile support and merge with the FreeBSD codeBjörn Jacke2012-07-261-50/+44
| | | | | | | | This is based on the adpotion of the FreeBSD sendfile code that was done by James Peach for Darwin. Autobuild-User(master): Björn Jacke <bj@sernet.de> Autobuild-Date(master): Thu Jul 26 17:19:09 CEST 2012 on sn-devel-104
* lib/param: Move all enum declarations to lib/paramAndrew Bartlett2012-07-242-0/+2
| | | | | | | | This is in preperation for the parameter table being made common. Andrew Bartlett Pair-Programmed-With: Andrew Tridgell <tridge@samba.org>
* s3-winbind: Fix bug #9052 resolving our own "Domain Local" groups.Andreas Schneider2012-07-231-8/+1
| | | | | | | | | | | | | | | | | We don't resolve our own "Domain Local" groups since bug #7843 has been fixed. So we need to add the add resource groups to the sid list too. Before bug #7843 the "Domain Local" groups were added with a lookupuseraliases call, but this isn't done anymore for our domain so we need to resolve resource groups here. When to use Resource Groups: http://technet.microsoft.com/en-us/library/cc753670%28v=WS.10%29.aspx Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Mon Jul 23 22:12:30 CEST 2012 on sn-devel-104
* Remove source3/lib/pidfile.cJeremy Allison2012-07-201-81/+0
| | | | | Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Jul 20 03:57:20 CEST 2012 on sn-devel-104
* Make the s3 pidfile use the common code inside lib/util/pidfile.cJeremy Allison2012-07-191-137/+27
|
* Move source4/smbd/pidfile into lib/util in preparation for making it in common.Jeremy Allison2012-07-191-4/+4
|
* s3: Add tevent_wait_send/recvVolker Lendecke2012-07-182-0/+120
| | | | | | | To me it seems that we might have this functionality already somewere... I just can't find it. Metze, do you have an idea? Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-libasys: Add asys_fsync() implementationVolker Lendecke2012-07-181-0/+43
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3-aio: Remove unused VFS functions and moreVolker Lendecke2012-07-181-148/+0
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* s3: Make smbd/aio.c not depend on aio.h anymoreVolker Lendecke2012-07-181-0/+4
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* libasysVolker Lendecke2012-07-184-0/+521
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>
* source3/netapi: fix only caller which doesn't set up a talloc_stackframe()Rusty Russell2012-07-181-0/+4
| | | | | | | | libnetapi_free() needs a stackframe too; looked like Andrew and Günther missed this in a37de9a95974c138d264d9cb0c7829bb426bb2d6. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* loadparm: make the source3/ lp_ functions take an explicit TALLOC_CTX *.Rusty Russell2012-07-184-7/+8
| | | | | | | | | | They use talloc_tos() internally: hoist that up to the callers, some of whom don't want to us talloc_tos(). A simple patch, but hits a lot of files. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* source3/lib/smbconf/testsuite.c: fix stackframe leakRusty Russell2012-07-181-0/+1
| | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>