samba.git
12 years agos4-s3upgrade: Do not ever set a domain-wide maxPwdAge of 0
Andrew Bartlett [Thu, 19 Apr 2012 00:42:05 +0000 (10:42 +1000)]
s4-s3upgrade: Do not ever set a domain-wide maxPwdAge of 0

This means no-expiry in s3, and so we must treat it like -1.

Andrew Bartlett

12 years agos4-s3upgrade: Ignore (with warning) groups that are listed but we cannot list members for
Andrew Bartlett [Wed, 18 Apr 2012 23:59:40 +0000 (09:59 +1000)]
s4-s3upgrade: Ignore (with warning) groups that are listed but we cannot list members for

12 years agoFix samba3.raw.samba3hide test - ensure we set up POSIX capabilities
Jeremy Allison [Wed, 18 Apr 2012 19:38:06 +0000 (12:38 -0700)]
Fix samba3.raw.samba3hide test - ensure we set up POSIX capabilities
before doing POSIX calls like chmod.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 18 23:14:40 CEST 2012 on sn-devel-104

12 years agoAdd smb_raw_setfsinfo() - currently only available level is SMB_SET_CIFS_UNIX_INFO.
Jeremy Allison [Wed, 18 Apr 2012 19:37:20 +0000 (12:37 -0700)]
Add smb_raw_setfsinfo() - currently only available level is SMB_SET_CIFS_UNIX_INFO.

12 years agoEnsure we have 12 bytes of data for a SMB_SET_CIFS_UNIX_INFO call. Add debug.
Jeremy Allison [Wed, 18 Apr 2012 19:36:19 +0000 (12:36 -0700)]
Ensure we have 12 bytes of data for a SMB_SET_CIFS_UNIX_INFO call. Add debug.

12 years agos4-torture: Fix the raw.notify mask test
Volker Lendecke [Wed, 18 Apr 2012 16:05:24 +0000 (18:05 +0200)]
s4-torture: Fix the raw.notify mask test

When we do the notify triggers via a different client connection, adding the
notify record becomes subject to a race. Add a dummy operation after the
initial changenotify request was sent to make sure the notify record actually
arrived.

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 19:47:53 CEST 2012 on sn-devel-104

12 years agos4-torture: Use 2 client connections for raw.notify.mask
Volker Lendecke [Wed, 18 Apr 2012 12:45:20 +0000 (14:45 +0200)]
s4-torture: Use 2 client connections for raw.notify.mask

This makes the test more interesting in a cluster

12 years agos4-torture: Use 2 client connections for raw.notify.tree
Volker Lendecke [Wed, 18 Apr 2012 12:45:20 +0000 (14:45 +0200)]
s4-torture: Use 2 client connections for raw.notify.tree

This makes the test more interesting in a cluster

12 years agos4-torture: Use 2 client connections for raw.notify.recursive
Volker Lendecke [Wed, 18 Apr 2012 12:45:20 +0000 (14:45 +0200)]
s4-torture: Use 2 client connections for raw.notify.recursive

This makes the test more interesting in a cluster

12 years agos3-dbwrap: Fix an unused var warning
Volker Lendecke [Wed, 18 Apr 2012 12:23:06 +0000 (14:23 +0200)]
s3-dbwrap: Fix an unused var warning

12 years agos4:torture:smb2: add a session.reauth2 test.
Michael Adam [Wed, 18 Apr 2012 12:12:28 +0000 (14:12 +0200)]
s4:torture:smb2: add a session.reauth2 test.

* open a file,
* reauth anonymously
* try to access file via handle
* reauth as user
* try to access file again

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr 18 16:53:35 CEST 2012 on sn-devel-104

12 years agos4:torture:smb2: rename the file in the session-reauth1 test more systematically
Michael Adam [Mon, 16 Apr 2012 12:58:48 +0000 (14:58 +0200)]
s4:torture:smb2: rename the file in the session-reauth1 test more systematically

The original name seems to have come in via copy and paste.

12 years agos4:torture:smb2: rename the session_reauth test to session_reauth1
Michael Adam [Mon, 16 Apr 2012 12:57:18 +0000 (14:57 +0200)]
s4:torture:smb2: rename the session_reauth test to session_reauth1

More tests reauth? will follow...

12 years agos4-torture: notify all is empty now
Volker Lendecke [Wed, 18 Apr 2012 10:57:06 +0000 (12:57 +0200)]
s4-torture: notify all is empty now

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 15:16:13 CEST 2012 on sn-devel-104

12 years agos4-torture: Separate out the notify alignment subtest
Volker Lendecke [Wed, 18 Apr 2012 10:56:39 +0000 (12:56 +0200)]
s4-torture: Separate out the notify alignment subtest

12 years agos4-torture: Separate out the notify basedir subtest
Volker Lendecke [Wed, 18 Apr 2012 10:54:25 +0000 (12:54 +0200)]
s4-torture: Separate out the notify basedir subtest

12 years agos4-torture: Separate out the notify overflow subtest
Volker Lendecke [Wed, 18 Apr 2012 10:53:08 +0000 (12:53 +0200)]
s4-torture: Separate out the notify overflow subtest

12 years agos4-torture: Separate out the notify tree subtest
Volker Lendecke [Wed, 18 Apr 2012 10:51:26 +0000 (12:51 +0200)]
s4-torture: Separate out the notify tree subtest

12 years agos4-torture: Separate out the notify double subtest
Volker Lendecke [Wed, 18 Apr 2012 10:49:55 +0000 (12:49 +0200)]
s4-torture: Separate out the notify double subtest

12 years agos4-torture: Separate out the notify tcp_dis subtest
Volker Lendecke [Wed, 18 Apr 2012 10:47:39 +0000 (12:47 +0200)]
s4-torture: Separate out the notify tcp_dis subtest

12 years agos4-torture: Separate out the notify ulogoff subtest
Volker Lendecke [Wed, 18 Apr 2012 10:44:21 +0000 (12:44 +0200)]
s4-torture: Separate out the notify ulogoff subtest

12 years agos4-torture: Separate out the notify exit subtest
Volker Lendecke [Wed, 18 Apr 2012 10:42:13 +0000 (12:42 +0200)]
s4-torture: Separate out the notify exit subtest

12 years agos4-torture: Separate out the notify tdis subtest
Volker Lendecke [Wed, 18 Apr 2012 10:39:08 +0000 (12:39 +0200)]
s4-torture: Separate out the notify tdis subtest

12 years agos4-torture: Separate out the notify file subtest
Volker Lendecke [Wed, 18 Apr 2012 10:31:12 +0000 (12:31 +0200)]
s4-torture: Separate out the notify file subtest

12 years agos4-torture: Separate out the notify mask_change subtest
Volker Lendecke [Wed, 18 Apr 2012 10:27:38 +0000 (12:27 +0200)]
s4-torture: Separate out the notify mask_change subtest

12 years agos4-torture: Separate out the notify recursive subtest
Volker Lendecke [Wed, 18 Apr 2012 10:24:59 +0000 (12:24 +0200)]
s4-torture: Separate out the notify recursive subtest

12 years agos4-torture: Separate out the notify mask subtest
Volker Lendecke [Wed, 18 Apr 2012 10:22:31 +0000 (12:22 +0200)]
s4-torture: Separate out the notify mask subtest

12 years agos4-torture: Separate out the notify dir subtest
Volker Lendecke [Wed, 18 Apr 2012 10:19:12 +0000 (12:19 +0200)]
s4-torture: Separate out the notify dir subtest

12 years agos4-torture: Separate out the notify tcon subtest
Volker Lendecke [Wed, 18 Apr 2012 09:47:48 +0000 (11:47 +0200)]
s4-torture: Separate out the notify tcon subtest

12 years agos4-torture: Make notify a suite
Volker Lendecke [Wed, 18 Apr 2012 09:43:12 +0000 (11:43 +0200)]
s4-torture: Make notify a suite

12 years agolibsmb: Actually use an introduced variable
Volker Lendecke [Wed, 18 Apr 2012 09:49:35 +0000 (11:49 +0200)]
libsmb: Actually use an introduced variable

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 13:39:53 CEST 2012 on sn-devel-104

12 years agoTalloc doc: Fix a cut&paste error
Volker Lendecke [Wed, 18 Apr 2012 08:22:39 +0000 (10:22 +0200)]
Talloc doc: Fix a cut&paste error

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Wed Apr 18 11:59:49 CEST 2012 on sn-devel-104

12 years agoTalloc doc: talloc_pool() when not enough memory in the pool
Pavel Březina [Mon, 16 Apr 2012 13:23:55 +0000 (15:23 +0200)]
Talloc doc: talloc_pool() when not enough memory in the pool

12 years agoTalloc doc: TALLOC_FREE_FILL
Pavel Březina [Mon, 16 Apr 2012 13:04:44 +0000 (15:04 +0200)]
Talloc doc: TALLOC_FREE_FILL

12 years agoTalloc doc: talloc_set_log_stderr()
Pavel Březina [Mon, 16 Apr 2012 12:49:03 +0000 (14:49 +0200)]
Talloc doc: talloc_set_log_stderr()

Documents this function.

12 years agoTalloc doc: talloc_set_log_fn()
Pavel Březina [Mon, 16 Apr 2012 12:47:16 +0000 (14:47 +0200)]
Talloc doc: talloc_set_log_fn()

Documents this function.

12 years agoTalloc doc: talloc_set_abort_fn()
Pavel Březina [Mon, 16 Apr 2012 12:43:37 +0000 (14:43 +0200)]
Talloc doc: talloc_set_abort_fn()

Documents this function.

12 years agoTalloc doc: talloc_asprintf_append_buffer()
Pavel Březina [Mon, 16 Apr 2012 11:32:02 +0000 (13:32 +0200)]
Talloc doc: talloc_asprintf_append_buffer()

Explains the difference between _append and _append_buffer.

12 years agoTalloc doc: talloc_strndup_append_buffer()
Pavel Březina [Mon, 16 Apr 2012 11:17:59 +0000 (13:17 +0200)]
Talloc doc: talloc_strndup_append_buffer()

Explains the difference between _append and _append_buffer.

12 years agoTalloc doc: talloc_strndup_append()
Pavel Březina [Mon, 16 Apr 2012 11:12:41 +0000 (13:12 +0200)]
Talloc doc: talloc_strndup_append()

The destination string is reallocated instead of duplicating the result.

12 years agoTalloc doc: talloc_strdup_append_buffer()
Pavel Březina [Mon, 16 Apr 2012 10:59:22 +0000 (12:59 +0200)]
Talloc doc: talloc_strdup_append_buffer()

Explains the difference between _append and _append_buffer.

12 years agoTalloc doc: talloc_strdup_append()
Pavel Březina [Mon, 16 Apr 2012 10:44:08 +0000 (12:44 +0200)]
Talloc doc: talloc_strdup_append()

The destination string is reallocated instead of duplicating the result.

12 years agodbcheck: added fix for incorrect RMD_FLAGS
Andrew Tridgell [Wed, 18 Apr 2012 05:46:14 +0000 (15:46 +1000)]
dbcheck: added fix for incorrect RMD_FLAGS

this fixes the case where a DN link has RMD_FLAGS=0 for a link inside
a deleted object

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Wed Apr 18 09:19:41 CEST 2012 on sn-devel-104

12 years agodsdb: added SHOW_DELETED to samldb_member_check()
Andrew Tridgell [Wed, 18 Apr 2012 05:45:31 +0000 (15:45 +1000)]
dsdb: added SHOW_DELETED to samldb_member_check()

when dbcheck is fixing DNs, it will sometimes operated on a deleted DN
link

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agoreplace: added ENOATTR define if undefined
Andrew Tridgell [Wed, 18 Apr 2012 04:35:17 +0000 (14:35 +1000)]
replace: added ENOATTR define if undefined

this fixes the build of the tdb xattr wrapper code on systems without
xattr headers

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

12 years agos4:dbchecker.py - integrate the "objectClass" fixing code
Matthias Dieter Wallnöfer [Wed, 11 Apr 2012 15:18:37 +0000 (17:18 +0200)]
s4:dbchecker.py - integrate the "objectClass" fixing code

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agos4:dsdb/pydsdb.c - call the "objectClass" normalisation code from Python
Matthias Dieter Wallnöfer [Wed, 11 Apr 2012 14:06:03 +0000 (16:06 +0200)]
s4:dsdb/pydsdb.c - call the "objectClass" normalisation code from Python

This allows the dbchecker to fix ordering/inconsistency problems with
the mentioned attribute.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoLDB:ldb_tdb/ldb_tdb.c - allow LDB modify replaces with different value ordering ldb-1.1.6
Matthias Dieter Wallnöfer [Wed, 11 Apr 2012 19:09:38 +0000 (21:09 +0200)]
LDB:ldb_tdb/ldb_tdb.c - allow LDB modify replaces with different value ordering

This is essential for fixing up wrong ordered "objectClass" attributes.

Signed-off-by: Andrew Tridgell <tridge@samba.org>
12 years agoldb: added ldb_msg_element_equal_ordered()
Andrew Tridgell [Tue, 17 Apr 2012 04:01:08 +0000 (14:01 +1000)]
ldb: added ldb_msg_element_equal_ordered()

this gives us a order sensitive msg element comparison. We need this
to allow dbcheck to fix the order of objectClass attributes.

12 years agoAdd docs for aio_linux vfs module.
Jeremy Allison [Wed, 18 Apr 2012 03:20:28 +0000 (20:20 -0700)]
Add docs for aio_linux vfs module.

Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Wed Apr 18 07:20:19 CEST 2012 on sn-devel-104

12 years agos3fs: Use xattr_tdb format for xattr storage
Andrew Bartlett [Mon, 16 Apr 2012 09:01:15 +0000 (19:01 +1000)]
s3fs: Use xattr_tdb format for xattr storage

Autobuild-User: Andrew Bartlett <abartlet@samba.org>
Autobuild-Date: Wed Apr 18 05:39:01 CEST 2012 on sn-devel-104

12 years agos4-python: Add python wrapper for xattr_tdb format xattr storage
Andrew Bartlett [Mon, 16 Apr 2012 08:59:34 +0000 (18:59 +1000)]
s4-python: Add python wrapper for xattr_tdb format xattr storage

This uses the format used by the vfs_xattr_tdb module.  The s4
posix:eadb format is kept, just in a new file and module.

Andrew Bartlett

12 years agos3-xattr_tdb: Use talloc_stackframe() more to allow calling from common code
Andrew Bartlett [Mon, 16 Apr 2012 12:18:14 +0000 (22:18 +1000)]
s3-xattr_tdb: Use talloc_stackframe() more to allow calling from common code

12 years agos3-xattr_tdb: Be nice to xattr_tdb_getxattr callers, return the full blob
Andrew Bartlett [Mon, 16 Apr 2012 07:14:06 +0000 (17:14 +1000)]
s3-xattr_tdb: Be nice to xattr_tdb_getxattr callers, return the full blob

In this case, the blob is already in memory, so it is easier to return the full
blob to the caller, and let the caller decide if some interface restriction
stops the full blob from being passed all the way up the stack.

This allows us to quickly write a python wrapper for this xattr storage
mechanism.

Andrew Bartlett

12 years agos3-xattr_tdb: make xattr_tdb a private library, for use outside vfs_xattr_tdb
Andrew Bartlett [Mon, 16 Apr 2012 05:49:13 +0000 (15:49 +1000)]
s3-xattr_tdb: make xattr_tdb a private library, for use outside vfs_xattr_tdb

12 years agos3-lib: Add file_id_string()
Andrew Bartlett [Mon, 16 Apr 2012 05:36:15 +0000 (15:36 +1000)]
s3-lib: Add file_id_string()

12 years agos3-build: move file_id.c into samba3-util and create a private header
Andrew Bartlett [Mon, 16 Apr 2012 05:34:40 +0000 (15:34 +1000)]
s3-build: move file_id.c into samba3-util and create a private header

12 years agodbwrap: Add dbwrap_tdb to private dbwrap library
Andrew Bartlett [Mon, 16 Apr 2012 04:21:33 +0000 (14:21 +1000)]
dbwrap: Add dbwrap_tdb to private dbwrap library

Andrew Bartlett

12 years agos3-build: Add missing samba3-util dep to tdb-wrap3
Andrew Bartlett [Mon, 16 Apr 2012 04:20:46 +0000 (14:20 +1000)]
s3-build: Add missing samba3-util dep to tdb-wrap3

12 years agolib/util: Move map_nt_error_from_tdb to the top level
Andrew Bartlett [Mon, 16 Apr 2012 04:18:49 +0000 (14:18 +1000)]
lib/util: Move map_nt_error_from_tdb to the top level

This will help with making dbwrap available as a top level library.

Andrew Bartlett

12 years agos3-dbwrap: push lp_ctx up another layer in the stack
Andrew Bartlett [Mon, 16 Apr 2012 03:37:39 +0000 (13:37 +1000)]
s3-dbwrap: push lp_ctx up another layer in the stack

This will allow db_open_tdb() to be called from common code, which may
already have a loadparm context loaded.

It also slowly moves the lp_ctx up the stack, as required to remove
the library loop between smbconf and the registry.

Andrew Bartlett

12 years agos3-dbwrap: Add talloc_stackframe() calls
Andrew Bartlett [Mon, 16 Apr 2012 03:36:01 +0000 (13:36 +1000)]
s3-dbwrap: Add talloc_stackframe() calls

This is in preperation for calling dbwrap from common code, where we may not
have a stackframe set up.

Andrew Bartlett

12 years agobuild: Remove more of the s3 special cases in waf: only pidfile.c needs -DCONFIGFILE
Andrew Bartlett [Tue, 17 Apr 2012 01:25:40 +0000 (11:25 +1000)]
build: Remove more of the s3 special cases in waf: only pidfile.c needs -DCONFIGFILE

12 years agos4:samdb:rootdse: implement the schemaUpgradeInProgress operation in ldap modify
Michael Adam [Fri, 6 Apr 2012 00:20:37 +0000 (02:20 +0200)]
s4:samdb:rootdse: implement the schemaUpgradeInProgress operation in ldap modify

This is preliminary in that it is implemented as a no-op for a start
just to be able to successfully answer the request, which seems to be
sufficient in order to e.g. survive the exchange schema extensions.

Signed-off-by: Matthieu Patou <mat@matws.net>
Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Wed Apr 18 02:48:28 CEST 2012 on sn-devel-104

12 years agos4-schema: set subClassOf by default to top if not specified
Matthieu Patou [Tue, 17 Apr 2012 06:24:10 +0000 (23:24 -0700)]
s4-schema: set subClassOf by default to top if not specified

Signed-off-by: Michael Adam <obnox@samba.org>
12 years agos4-schema: remove unused variable
Matthieu Patou [Mon, 16 Apr 2012 22:34:24 +0000 (15:34 -0700)]
s4-schema: remove unused variable

12 years agos4-schema: Generate some schema related attribute as MS AD is doing if they are not...
Matthieu Patou [Mon, 16 Apr 2012 22:22:24 +0000 (15:22 -0700)]
s4-schema: Generate some schema related attribute as MS AD is doing if they are not present in ldb requests

12 years agos4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb and dsdb_cl...
Matthieu Patou [Sun, 15 Apr 2012 21:50:20 +0000 (14:50 -0700)]
s4-schema: rename dsdb_attribute_from_ldb to dsdb_set_attribute_from_ldb  and dsdb_class_from_ldb to dsdb_set_class_from_ldb

12 years agos4: use enums instead of strings it's cheaper
Matthieu Patou [Sun, 15 Apr 2012 19:37:00 +0000 (12:37 -0700)]
s4: use enums instead of strings it's cheaper

12 years agoFix typo
Simo Sorce [Fri, 6 Apr 2012 19:22:06 +0000 (15:22 -0400)]
Fix typo

Autobuild-User: Simo Sorce <idra@samba.org>
Autobuild-Date: Tue Apr 17 22:22:26 CEST 2012 on sn-devel-104

12 years agowaf: Use Logs.info() instead of print.
Andreas Schneider [Tue, 17 Apr 2012 12:11:45 +0000 (14:11 +0200)]
waf: Use Logs.info() instead of print.

Autobuild-User: Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date: Tue Apr 17 17:48:23 CEST 2012 on sn-devel-104

12 years agowaf: Add possibility to build with system libwbclient.
Andreas Schneider [Tue, 17 Apr 2012 10:34:48 +0000 (12:34 +0200)]
waf: Add possibility to build with system libwbclient.

12 years agos3-waf: Add possibility to build with system libsmbclient.
Andreas Schneider [Mon, 16 Apr 2012 15:05:35 +0000 (17:05 +0200)]
s3-waf: Add possibility to build with system libsmbclient.

12 years agos3-waf: Fix client/smbclient dependencies.
Andreas Schneider [Mon, 16 Apr 2012 15:07:05 +0000 (17:07 +0200)]
s3-waf: Fix client/smbclient dependencies.

12 years agos3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()
Stefan Metzmacher [Tue, 17 Apr 2012 11:49:28 +0000 (13:49 +0200)]
s3:libsmb/cliconnect: make use of ntlmssp_is_anonymous()

metze

Autobuild-User: Stefan Metzmacher <metze@samba.org>
Autobuild-Date: Tue Apr 17 16:16:51 CEST 2012 on sn-devel-104

12 years agos3:libsmb/ntlmssp: improve anonymous logins
Stefan Metzmacher [Tue, 17 Apr 2012 11:36:42 +0000 (13:36 +0200)]
s3:libsmb/ntlmssp: improve anonymous logins

smbtorture3 (and maybe others) use fstrings for 'user' and 'password',
so we need to check for empty strings.

metze

12 years agos3:libsmb/ntlmssp: add ntlmssp_is_anonymous()
Stefan Metzmacher [Tue, 17 Apr 2012 11:34:27 +0000 (13:34 +0200)]
s3:libsmb/ntlmssp: add ntlmssp_is_anonymous()

metze

12 years agos3:libsmb/ntlmssp: remove some indentation in ntlmssp_set_password()
Stefan Metzmacher [Tue, 17 Apr 2012 06:46:51 +0000 (08:46 +0200)]
s3:libsmb/ntlmssp: remove some indentation in ntlmssp_set_password()

metze

12 years agoRevert "s3:libsmb/ntlmssp: an empty string should mean no password"
Stefan Metzmacher [Tue, 17 Apr 2012 06:38:10 +0000 (08:38 +0200)]
Revert "s3:libsmb/ntlmssp: an empty string should mean no password"

This reverts commit 92483eee254ef6844fe88abe1e64f67033a1ea2d.

12 years agotsocket: Fix a couple of typos and spellings in tsocket_guide.txt
Michael Adam [Tue, 17 Apr 2012 10:56:49 +0000 (12:56 +0200)]
tsocket: Fix a couple of typos and spellings in tsocket_guide.txt

Autobuild-User: Michael Adam <obnox@samba.org>
Autobuild-Date: Tue Apr 17 14:41:53 CEST 2012 on sn-devel-104

12 years agos3: Add smbstatus -N to output the notify db
Volker Lendecke [Wed, 4 Apr 2012 12:51:09 +0000 (14:51 +0200)]
s3: Add smbstatus -N to output the notify db

Autobuild-User: Volker Lendecke <vl@samba.org>
Autobuild-Date: Tue Apr 17 11:54:35 CEST 2012 on sn-devel-104

12 years agos3: Add "notify-cleanup" to smbcontrol
Volker Lendecke [Wed, 4 Apr 2012 12:49:21 +0000 (14:49 +0200)]
s3: Add "notify-cleanup" to smbcontrol

This triggers a notify cleanup run which would normally only run periodically

12 years agos3: New notify implementation
Volker Lendecke [Wed, 4 Apr 2012 12:51:43 +0000 (14:51 +0200)]
s3: New notify implementation

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

12 years agos3: Add two notify benchmark tests
Volker Lendecke [Wed, 4 Apr 2012 12:35:12 +0000 (14:35 +0200)]
s3: Add two notify benchmark tests

12 years agos3: Make torture_nprocs globally available
Volker Lendecke [Wed, 4 Apr 2012 12:29:33 +0000 (14:29 +0200)]
s3: Make torture_nprocs globally available

12 years agos3: Make ctdbd_messaging_send_blob available in non-clustered mode
Volker Lendecke [Wed, 4 Apr 2012 09:56:06 +0000 (11:56 +0200)]
s3: Make ctdbd_messaging_send_blob available in non-clustered mode

This will avoid the need for some #ifdefs

12 years agos3: Make messaging_ctdbd_connection available in non-clustered mode
Volker Lendecke [Wed, 4 Apr 2012 09:27:08 +0000 (11:27 +0200)]
s3: Make messaging_ctdbd_connection available in non-clustered mode

This might make some #ifdef CLUSTER_SUPPORT unnecessary in the future

12 years agos3: Implement tevent_barrier
Volker Lendecke [Tue, 3 Apr 2012 13:26:22 +0000 (15:26 +0200)]
s3: Implement tevent_barrier

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.

12 years agos3: Start a list of ctdb srvid assigments
Volker Lendecke [Fri, 30 Mar 2012 09:37:15 +0000 (11:37 +0200)]
s3: Start a list of ctdb srvid assigments

12 years agos3: Introduce ctdb_messaging_send_blob
Volker Lendecke [Fri, 30 Mar 2012 09:10:47 +0000 (11:10 +0200)]
s3: Introduce ctdb_messaging_send_blob

Send a raw blob without the messaging.idl wrap

12 years agos3: Add msg_channel
Volker Lendecke [Wed, 15 Feb 2012 12:56:23 +0000 (13:56 +0100)]
s3: Add msg_channel

This is a tevent_based variant of messaging_register

12 years agos3: Add messaging_tdb_event()
Volker Lendecke [Wed, 15 Feb 2012 12:53:07 +0000 (13:53 +0100)]
s3: Add messaging_tdb_event()

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.

12 years agos3: Add a second ctdb connect library
Volker Lendecke [Wed, 15 Feb 2012 11:26:59 +0000 (12:26 +0100)]
s3: Add a second ctdb connect library

The existing one is not async at all.

12 years agos3: Add dbwrap_try_fetch_locked
Volker Lendecke [Tue, 27 Mar 2012 12:31:04 +0000 (14:31 +0200)]
s3: Add dbwrap_try_fetch_locked

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.

12 years agos3: Add dbwrap_cache
Volker Lendecke [Sat, 24 Mar 2012 12:49:40 +0000 (13:49 +0100)]
s3: Add dbwrap_cache

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.

12 years agos3: Open up 3 levels of dbwrap_lock_order
Volker Lendecke [Sun, 18 Mar 2012 13:47:37 +0000 (14:47 +0100)]
s3: Open up 3 levels of dbwrap_lock_order

12 years agos3: Increase debuglevel for unknown child msgs
Volker Lendecke [Fri, 13 Apr 2012 14:03:26 +0000 (16:03 +0200)]
s3: Increase debuglevel for unknown child msgs

Now that we have forked background jobs, this spams log.smbd

12 years agos3: Add infrastructure for background jobs
Volker Lendecke [Fri, 23 Mar 2012 12:43:39 +0000 (13:43 +0100)]
s3: Add infrastructure for background jobs

12 years agos3: Return CTDB_PATH from lp_ctdbd_socket()
Volker Lendecke [Fri, 30 Mar 2012 13:37:33 +0000 (15:37 +0200)]
s3: Return CTDB_PATH from lp_ctdbd_socket()

All callers had that fallback

12 years agotdb-compat: Add tdb_chainlock_nonblock
Volker Lendecke [Mon, 16 Apr 2012 13:23:06 +0000 (15:23 +0200)]
tdb-compat: Add tdb_chainlock_nonblock