summaryrefslogtreecommitdiffstats
path: root/source3
Commit message (Collapse)AuthorAgeFilesLines
* s3: New notify implementationVolker Lendecke2012-04-177-758/+1080
| | | | | | | | | | | | From notify_internal.c: /* * The notify database is split up into two databases: One * relatively static index db and the real notify db with the * volatile entries. */ This change is necessary to make notify scale better in a cluster
* s3: Add two notify benchmark testsVolker Lendecke2012-04-175-0/+727
|
* s3: Make torture_nprocs globally availableVolker Lendecke2012-04-171-19/+19
|
* s3: Make ctdbd_messaging_send_blob available in non-clustered modeVolker Lendecke2012-04-171-1/+10
| | | | This will avoid the need for some #ifdefs
* s3: Make messaging_ctdbd_connection available in non-clustered modeVolker Lendecke2012-04-171-0/+9
| | | | This might make some #ifdef CLUSTER_SUPPORT unnecessary in the future
* s3: Implement tevent_barrierVolker Lendecke2012-04-173-0/+235
| | | | | | | | This will help notify torture tests: A tevent barrier can be waited on with tevent_barrier_wait_send/recv. The barrier is initialized with a number of requests that it will accept waiting. When that number is reached, all those requests will be released and their callback will be called. The barrier will be free for re-use again.
* s3: Start a list of ctdb srvid assigmentsVolker Lendecke2012-04-171-0/+40
|
* s3: Introduce ctdb_messaging_send_blobVolker Lendecke2012-04-172-20/+23
| | | | Send a raw blob without the messaging.idl wrap
* s3: Add msg_channelVolker Lendecke2012-04-177-0/+551
| | | | This is a tevent_based variant of messaging_register
* s3: Add messaging_tdb_event()Volker Lendecke2012-04-172-0/+13
| | | | | | | | This is a void* that represents a signal handler attached to some custom tevent_context. This is necessary to make the tdb based messaging infrastructure trigger its business when we are sitting in tevent_loop_once for an event context that is not the main one in the messaging context.
* s3: Add a second ctdb connect libraryVolker Lendecke2012-04-177-0/+931
| | | | The existing one is not async at all.
* s3: Add dbwrap_try_fetch_lockedVolker Lendecke2012-04-178-16/+97
| | | | | | | | | | This is designed to spread the load on individual ctdb records to allow upper layers to do backoff mechanisms. In the ctdb case, do not get the record if a local lock is already taken. If we are not dmaster, do at most one migrate attempt. For the tdb case, this is a nonblocking fetch_locked. If someone else has the lock, give up.
* s3: Add dbwrap_cacheVolker Lendecke2012-04-174-1/+244
| | | | | | This is a caching layer for the notify database and potentially for the brlock database. It caches the parse_record operation as long as the underlying seqnum does not change.
* s3: Open up 3 levels of dbwrap_lock_orderVolker Lendecke2012-04-172-5/+9
|
* s3: Increase debuglevel for unknown child msgsVolker Lendecke2012-04-171-1/+1
| | | | Now that we have forked background jobs, this spams log.smbd
* s3: Add infrastructure for background jobsVolker Lendecke2012-04-174-0/+274
|
* s3: Return CTDB_PATH from lp_ctdbd_socket()Volker Lendecke2012-04-174-13/+18
| | | | All callers had that fallback
* s3: switch off kernel oplocks by defaultChristian Ambach2012-04-161-1/+1
| | | | | as discussed on samba-technical, turn kernel oplocks off by default to not leave users without the benefits of Level II oplocks
* s3: Fix smbclient notify against WindowsVolker Lendecke2012-04-161-1/+1
| | | | | | | We need READ_DATA Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Mon Apr 16 21:27:54 CEST 2012 on sn-devel-104
* s3/selftest: Fix reference to knownfail file.Jelmer Vernooij2012-04-161-1/+1
|
* s3:libsmb: fix anonymous session setups against windows serversStefan Metzmacher2012-04-161-0/+16
| | | | | | | | | | Windows server doesn't set the SMB2_SESSION_FLAG_IS_GUEST nor SMB2_SESSION_FLAG_IS_NULL flag. This fix makes sure we don't try to verify a signature on the final session setup response. metze
* s3:libsmb/ntlmssp: an empty string should mean no passwordStefan Metzmacher2012-04-161-1/+1
| | | | metze
* libcli/smb: move smb2cli_session_setup_*() prototypes to the code.Stefan Metzmacher2012-04-161-15/+0
| | | | metze
* s3:smbd/sesssetup: use a helper variable 'action' to mark guest accessStefan Metzmacher2012-04-161-1/+3
| | | | metze
* param: leave realm as a normal string, handle upper/lower case in handle_realmAndrew Bartlett2012-04-161-1/+1
| | | | | | This matches the behaviour of lib/param. Andrew Bartlett
* param: harmonise wins parametersAndrew Bartlett2012-04-161-3/+3
|
* s3-param: make FN_GLOBAL macros consistent, add lp_ using the macroAndrew Bartlett2012-04-161-250/+250
| | | | | | | This will make it easier to share the parameter tables between this and lib/param. Andrew Bartlett
* param: Change from _lp to lp__ as the prefix for internal parameter wrappersAndrew Bartlett2012-04-165-11/+11
| | | | | | | This will make a merge with the lib/param param code easier, as we can then paste lp_ to the front of all parameters unconditionally. Andrew Bartlett
* make _lp_readraw() and _lp_writeraw() staticAndrew Bartlett2012-04-162-4/+2
|
* param: harmonsise logfile parameterAndrew Bartlett2012-04-161-6/+6
|
* rely on sys/inotify.h for inotifyAdrian Bunk2012-04-133-57/+8
| | | | | | | | | sys/inotify.h was added to glibc 2.4 in 2006. Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 13 21:15:00 CEST 2012 on sn-devel-104
* Wrong assertion/comparison: Compare value not pointerOlaf Flebbe2012-04-131-2/+2
| | | | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Apr 13 02:23:36 CEST 2012 on sn-devel-104
* We never cancel SMB1 aio, only SMB2 aio - and in this case we always return ↵Jeremy Allison2012-04-121-12/+7
| | | | | | a value. So pass_cancel is no longer needed.
* Remove cancel_aio_by_fsp(). It can never work and could lead to memory ↵Jeremy Allison2012-04-123-43/+18
| | | | | | | corruption as outstanding IO's complete. Also we never have any aio's on a call to close_normal_file() with close_type ERROR_CLOSE.
* Fix return_fn when aio was cancelled. We need to return -1, errno = ECANCELED.Jeremy Allison2012-04-123-0/+15
|
* Move the counting of outstanding_aio_calls into the lifecycle of the ↵Jeremy Allison2012-04-121-6/+2
| | | | | | | | | aio_extra struct. This way we can't end up with a mismatch between outstanding events and the counter. We may still have problems with canceling and not correctly freeing the aio struct, but at least the counter won't get out of sync anymore.
* Fix the same bug reported by Kirill Malkin ↵Jeremy Allison2012-04-121-4/+24
| | | | | | | | | | | | | | | | | | | | | | <kirill.malkin@starboardstorage.com> and fixed by Volker for vfs_aio_fork as ref 0aacdbfada46329e0ad9dacfa90041a1c7dbf3e8. From that change: aio_suspend does not signal the main process with a signal, it just waits. The aio_fork module does not use the signal at all, it directly calls back into the main smbd by calling smbd_aio_complete_aio_ex. This is an abstraction violation, but the alternative would have been to use signals where they are not needed. However, in wait_for_aio_completion this bites us: With aio_fork we call handle_aio_completed twice on the same aio_ex struct: Once from the call to handle_aio_completion within the aio_fork module and once from the code in wait_for_aio_completion. Fix this differently here by not calling directly back into smbd, but using a new function aio_linux_setup_returns() to setup the return values that wait_for_aio_completion() in the main smbd will pick up by calling handle_aio_completd().
* s3: Fix a typoVolker Lendecke2012-04-121-1/+1
| | | | | Autobuild-User: Volker Lendecke <vl@samba.org> Autobuild-Date: Thu Apr 12 23:38:24 CEST 2012 on sn-devel-104
* s3: Fix a segfault with debug level 3 on SolarisVolker Lendecke2012-04-121-1/+2
| | | | printf can not deal with NULL strings
* clikrb5: Move pure krb wrapper functions from libads to clikrb5.Simo Sorce2012-04-124-143/+145
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* gse: Remove unnecessary header.Simo Sorce2012-04-121-1/+0
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* krb5_wrap: krb5_string_to_key / krb5_encrypt_block are deprecated.Simo Sorce2012-04-122-20/+8
| | | | | | Remove checks and replace with krb5_c_string_to_key(). Signed-off-by: Andreas Schneider <asn@samba.org>
* auth-krb: Move pac related util functions in a single place.Simo Sorce2012-04-122-1/+2
| | | | Signed-off-by: Andreas Schneider <asn@samba.org>
* auth-krb: Make functions static.Simo Sorce2012-04-121-1/+0
| | | | | | | The remaining gssapi_parse functions were used exclusively in gensec_krb5. Move them there and make them static. Signed-off-by: Andreas Schneider <asn@samba.org>
* auth-krb: Nove oid packet check to gensec_util.Simo Sorce2012-04-121-21/+1
| | | | | | | | This is clearly a utiliy function generic to gensec. Also the 3 callers had identical implementations. Provide a generic implementation for all of them and avoid duplicating the code everywhere. Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-waf: remove requirement of having --enable-developer for running system ↵Günther Deschner2012-04-121-1/+1
| | | | | | | | | | | krb5 checks. When you know about "with_mit_krb5_checks" you are most likely a developer already. Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* Remove overly complex attemt to define blkcnt_t and blksize_t. AC_CHECK_TYPE ↵Jeremy Allison2012-04-121-6/+0
| | | | | | | | | should just do it. Still trying to fix the buildfarm. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Apr 12 04:28:29 CEST 2012 on sn-devel-104
* Try and fix autoconf on the build farm. Always include sys/types.h when ↵Jeremy Allison2012-04-111-0/+2
| | | | working out sizeof(blkcnt_t).
* s3:smbd only care about missing level2 support if kernel oplocks are enabledChristian Ambach2012-04-111-4/+10
| | | | | | | | | if kernel oplocks are not enabled for that share, we can grant level2 oplocks Signed-off-by: Jeremy Allison <jra@samba.org> Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Apr 11 22:45:21 CEST 2012 on sn-devel-104
* s3:smbd only initialize kernel oplocks if they are enabled for a shareChristian Ambach2012-04-111-0/+4
| | | | Signed-off-by: Jeremy Allison <jra@samba.org>