metze/samba/wip.git
5 years agoRevert "regtree... sddl" master4-tevent
Stefan Metzmacher [Thu, 22 Sep 2016 15:52:08 +0000 (17:52 +0200)]
Revert "regtree... sddl"

This reverts commit a485218941c223662905fdcf61149253d3b3aea4.

5 years agoRevert "profiles"
Stefan Metzmacher [Thu, 22 Sep 2016 15:51:49 +0000 (17:51 +0200)]
Revert "profiles"

This reverts commit 95c041553dcd3d786c44556db2ef70db98385ddf.

5 years agoprofiles
Stefan Metzmacher [Wed, 6 Mar 2013 10:14:27 +0000 (11:14 +0100)]
profiles

5 years agoprofiles... CONFLICT => was 1150460cfcd52357cbc60cd72e8e9bafd71db02f
Stefan Metzmacher [Wed, 6 Mar 2013 08:41:10 +0000 (09:41 +0100)]
profiles... CONFLICT => was 1150460cfcd52357cbc60cd72e8e9bafd71db02f

5 years agoregtree... sddl
Stefan Metzmacher [Wed, 6 Mar 2013 08:37:19 +0000 (09:37 +0100)]
regtree... sddl

5 years agoRevert "registry..."
Stefan Metzmacher [Tue, 5 Mar 2013 14:50:16 +0000 (15:50 +0100)]
Revert "registry..."

This reverts commit 575a35aece0f5ccc3eae44a89085c79955d9177c.

5 years agoregistry...
Stefan Metzmacher [Tue, 5 Mar 2013 14:50:04 +0000 (15:50 +0100)]
registry...

5 years agoRevert "test_event_fd1 error only on read"
Stefan Metzmacher [Thu, 28 Feb 2013 15:23:35 +0000 (16:23 +0100)]
Revert "test_event_fd1 error only on read"

This reverts commit 6b957a0aec98fa0d5bace8013567078d16f8f520.

5 years agotest_event_fd1 error only on read
Stefan Metzmacher [Thu, 28 Feb 2013 15:22:54 +0000 (16:22 +0100)]
test_event_fd1 error only on read

5 years agoRevert "TODO- s3:winbindd: use tevent_loop_wait() in the main loop"
Stefan Metzmacher [Thu, 17 May 2018 07:33:14 +0000 (09:33 +0200)]
Revert "TODO- s3:winbindd: use tevent_loop_wait() in the main loop"

This reverts commit 0a1fc22509040afee29a70e23b164634cd815922.

5 years agoRevert "TODO: nmbd... (doesn't compile yet)"
Stefan Metzmacher [Thu, 17 May 2018 07:32:54 +0000 (09:32 +0200)]
Revert "TODO: nmbd... (doesn't compile yet)"

This reverts commit 2c90822bc0ddf6d832ff5600f81e8cfd37f2eafe.

5 years agoTODO: nmbd... (doesn't compile yet)
Stefan Metzmacher [Wed, 27 Feb 2013 09:46:23 +0000 (10:46 +0100)]
TODO: nmbd... (doesn't compile yet)

5 years agoTODO- s3:winbindd: use tevent_loop_wait() in the main loop
Michael Adam [Tue, 26 Feb 2013 16:38:14 +0000 (17:38 +0100)]
TODO- s3:winbindd: use tevent_loop_wait() in the main loop

Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>

TODO: also child ...
TODO: let winbindd_tevent_trace_state be a stack variable,
      similar to 1d615ee923a2b46ffd7f943a9ba9e362b6322e5e
      and 9afc37bef4e60ea4a13db8ae68ba30d73b5b719c

5 years agoRevert "tevent zero..."
Stefan Metzmacher [Fri, 15 Feb 2013 11:13:45 +0000 (12:13 +0100)]
Revert "tevent zero..."

This reverts commit 0425ebb8848964f9c334d0b720ab470c75ba790f.

5 years agotevent zero...
Stefan Metzmacher [Fri, 15 Feb 2013 08:18:50 +0000 (09:18 +0100)]
tevent zero...

5 years agoRevert "HACK compile kqueue backend"
Stefan Metzmacher [Mon, 4 Mar 2013 08:48:17 +0000 (09:48 +0100)]
Revert "HACK compile kqueue backend"

This reverts commit 750ede72d084fd2b67b4908481fdb57f7cef4e18.

5 years agoHACK compile kqueue backend
Stefan Metzmacher [Sun, 17 Feb 2013 14:35:34 +0000 (15:35 +0100)]
HACK compile kqueue backend

5 years agoTODO/UNTESTED: tevent: add kqueue backend
Stefan Metzmacher [Sun, 17 Feb 2013 14:03:03 +0000 (15:03 +0100)]
TODO/UNTESTED: tevent: add kqueue backend

TODO add EBADF handling...

5 years agoRevert "TESTING ONLY: tevent: Force the poll backend"
Stefan Metzmacher [Thu, 14 Feb 2013 11:28:28 +0000 (12:28 +0100)]
Revert "TESTING ONLY: tevent: Force the poll backend"

This reverts commit 81485d356d19a97adb84d8db981c679a8afa3c54.

5 years agoTESTING ONLY: tevent: Force the poll backend
Volker Lendecke [Thu, 31 Jan 2013 13:35:57 +0000 (14:35 +0100)]
TESTING ONLY: tevent: Force the poll backend

5 years agoRevert "HACK epoll TEST_PANIC_FALLBACK"
Stefan Metzmacher [Wed, 20 Feb 2013 14:12:08 +0000 (15:12 +0100)]
Revert "HACK epoll TEST_PANIC_FALLBACK"

This reverts commit 0b9c1ee06465ba0edd0753a3b6b526fa045288a3.

5 years agoHACK epoll TEST_PANIC_FALLBACK
Stefan Metzmacher [Sun, 17 Feb 2013 15:43:49 +0000 (16:43 +0100)]
HACK epoll TEST_PANIC_FALLBACK

5 years agoRevert "HACK tevent_standard no epoll"
Stefan Metzmacher [Thu, 21 Feb 2013 07:41:29 +0000 (08:41 +0100)]
Revert "HACK tevent_standard no epoll"

This reverts commit db830ce72e82372fcd5b40a126eaade9d31cdbf8.

5 years agoHACK tevent_standard no epoll
Stefan Metzmacher [Thu, 21 Feb 2013 07:41:13 +0000 (08:41 +0100)]
HACK tevent_standard no epoll

5 years agoRevert "HACK force pthreadpool_sync.c"
Stefan Metzmacher [Thu, 17 May 2018 07:39:21 +0000 (09:39 +0200)]
Revert "HACK force pthreadpool_sync.c"

This reverts commit 8db6a9eb2dda868d7aad7f9151ebc5d78481a9bb.

5 years agoHACK force pthreadpool_sync.c
Stefan Metzmacher [Wed, 17 Aug 2016 12:32:34 +0000 (14:32 +0200)]
HACK force pthreadpool_sync.c

5 years agoSQ??? event vs. event_perf ??? tevent: Test tevent_immediate performance
Stefan Metzmacher [Mon, 22 Aug 2016 10:16:58 +0000 (12:16 +0200)]
SQ??? event vs. event_perf ??? tevent: Test tevent_immediate performance

5 years agoSQ??? event vs. event_perf ??? tevent: Test tevent_immediate performance
Volker Lendecke [Wed, 27 Jul 2016 11:27:44 +0000 (13:27 +0200)]
SQ??? event vs. event_perf ??? tevent: Test tevent_immediate performance

5 years agoSQ?? tevent: Test tevent_immediate performance
Stefan Metzmacher [Mon, 22 Aug 2016 10:15:04 +0000 (12:15 +0200)]
SQ?? tevent: Test tevent_immediate performance

5 years agotevent: Test tevent_immediate performance
Volker Lendecke [Wed, 27 Jul 2016 11:27:44 +0000 (13:27 +0200)]
tevent: Test tevent_immediate performance

I found no way to add this to "skip" as a subtest of local.event, so I created
a separate suite.

Signed-off-by: Volker Lendecke <vl@samba.org>
5 years agoRevert "TODO s4:libcli/raw: don't schedule idle handlers on a dead connection"
Stefan Metzmacher [Thu, 28 Feb 2013 09:50:11 +0000 (10:50 +0100)]
Revert "TODO s4:libcli/raw: don't schedule idle handlers on a dead connection"

This reverts commit 625f14f4b6aad030aa88fb5df02d50c642854b6b.

5 years agoRevert "TODO s4:libcli/smb2: don't schedule idle handlers on a dead connection"
Stefan Metzmacher [Thu, 28 Feb 2013 09:50:10 +0000 (10:50 +0100)]
Revert "TODO s4:libcli/smb2: don't schedule idle handlers on a dead connection"

This reverts commit d33f9ef8275959b506fe5aae99e301fe9d996fee.

5 years agoRevert "TODO s4:torture/raw: test_notify_tcp_dis trigger idle event every 0.25s"
Stefan Metzmacher [Thu, 28 Feb 2013 09:50:08 +0000 (10:50 +0100)]
Revert "TODO s4:torture/raw: test_notify_tcp_dis trigger idle event every 0.25s"

This reverts commit 0d8ac37c81a7f845bfc5235c628330b2c35346e9.

5 years agoRevert "TODO s4:torture/smb2: test_notify_tcp_dis trigger idle event every 0.25s"
Stefan Metzmacher [Thu, 28 Feb 2013 09:50:06 +0000 (10:50 +0100)]
Revert "TODO s4:torture/smb2: test_notify_tcp_dis trigger idle event every 0.25s"

This reverts commit 4efe85a486c33c4ce9e84496ba86f6cef925d7ff.

5 years agoTODO s4:torture/smb2: test_notify_tcp_dis trigger idle event every 0.25s
Stefan Metzmacher [Sun, 17 Feb 2013 21:45:32 +0000 (22:45 +0100)]
TODO s4:torture/smb2: test_notify_tcp_dis trigger idle event every 0.25s

This is 1000 times longer than before and is less likely to
change the timing behavior whe n running under valgrind.

5 years agoTODO s4:torture/raw: test_notify_tcp_dis trigger idle event every 0.25s
Stefan Metzmacher [Sun, 17 Feb 2013 21:43:49 +0000 (22:43 +0100)]
TODO s4:torture/raw: test_notify_tcp_dis trigger idle event every 0.25s

This is 1000 times longer than before and is less likely to
change the timing behavior whe n running under valgrind.

5 years agoTODO s4:libcli/smb2: don't schedule idle handlers on a dead connection
Stefan Metzmacher [Sun, 17 Feb 2013 21:41:00 +0000 (22:41 +0100)]
TODO s4:libcli/smb2: don't schedule idle handlers on a dead connection

5 years agoTODO s4:libcli/raw: don't schedule idle handlers on a dead connection
Stefan Metzmacher [Sun, 17 Feb 2013 21:39:40 +0000 (22:39 +0100)]
TODO s4:libcli/raw: don't schedule idle handlers on a dead connection

5 years agoRevert "HACK blackbox subunit print ok"
Stefan Metzmacher [Fri, 15 Feb 2013 11:14:37 +0000 (12:14 +0100)]
Revert "HACK blackbox subunit print ok"

This reverts commit 3c8f2cda9ff4db117b9fba5006052d52f235dcaa.

5 years agoHACK blackbox subunit print ok
Stefan Metzmacher [Thu, 14 Feb 2013 14:52:46 +0000 (15:52 +0100)]
HACK blackbox subunit print ok

TDB_NO_FSYNC=1 buildnice make -j test TESTS=LOCAL-WBCLIENT
...
less st/subunit

5 years agos3:lib/recvfile: make use of F_SETPIPE_SZ and reduce the splice syscalls.
Stefan Metzmacher [Tue, 5 Mar 2013 08:41:52 +0000 (09:41 +0100)]
s3:lib/recvfile: make use of F_SETPIPE_SZ and reduce the splice syscalls.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agomore...
Stefan Metzmacher [Thu, 28 Jul 2016 18:52:32 +0000 (20:52 +0200)]
more...

5 years agomore
Stefan Metzmacher [Thu, 28 Jul 2016 18:02:24 +0000 (20:02 +0200)]
more

5 years agoremove metze_thread_fn
Stefan Metzmacher [Thu, 28 Jul 2016 17:49:08 +0000 (19:49 +0200)]
remove metze_thread_fn

5 years agolib/tevent/testsuite.c
Stefan Metzmacher [Thu, 28 Jul 2016 17:41:35 +0000 (19:41 +0200)]
lib/tevent/testsuite.c

5 years agomore
Stefan Metzmacher [Thu, 28 Jul 2016 17:34:38 +0000 (19:34 +0200)]
more

5 years agomore
Stefan Metzmacher [Thu, 28 Jul 2016 16:57:58 +0000 (18:57 +0200)]
more

5 years agobla
Stefan Metzmacher [Thu, 28 Jul 2016 16:41:54 +0000 (18:41 +0200)]
bla

5 years agonext
Stefan Metzmacher [Thu, 28 Jul 2016 15:41:49 +0000 (17:41 +0200)]
next

5 years agosq lib/tevent/tevent_threadpool.c
Stefan Metzmacher [Thu, 28 Jul 2016 15:41:10 +0000 (17:41 +0200)]
sq lib/tevent/tevent_threadpool.c

5 years agoWIP tevent: API update tevent_threadpool_send()
Stefan Metzmacher [Tue, 26 Jul 2016 15:34:28 +0000 (17:34 +0200)]
WIP tevent: API update tevent_threadpool_send()

5 years agoWIP: job API
Ralph Boehme [Sun, 27 Sep 2015 10:00:52 +0000 (12:00 +0200)]
WIP: job API

5 years agoWIP: metzes attempt
Ralph Boehme [Sat, 26 Sep 2015 04:06:15 +0000 (06:06 +0200)]
WIP: metzes attempt

5 years agoWIP: add a test for tevent_threadpool_send/recv()
Ralph Boehme [Wed, 23 Sep 2015 05:41:17 +0000 (07:41 +0200)]
WIP: add a test for tevent_threadpool_send/recv()

Signed-off-by: Ralph Boehme <slow@samba.org>
5 years agoWIP: add pthreadpool and fncall_send to tevent
Ralph Boehme [Wed, 23 Sep 2015 05:39:03 +0000 (07:39 +0200)]
WIP: add pthreadpool and fncall_send to tevent

The idea is to use a pair of tevent_threadpool_send() and
tevent_threadpool_recv() to run a thread-safe function in a worker
thread.

Signed-off-by: Ralph Boehme <slow@samba.org>
5 years agoRevert "feature"
Stefan Metzmacher [Fri, 9 Mar 2018 10:03:34 +0000 (11:03 +0100)]
Revert "feature"

This reverts commit d8e50a901e1ebbe99fe5c586b98646dee91fded1.

5 years agofeature
Stefan Metzmacher [Mon, 5 Jan 2009 07:50:07 +0000 (08:50 +0100)]
feature

5 years agoRevert "eventfd-aio ..."
Stefan Metzmacher [Tue, 4 Oct 2016 12:54:35 +0000 (14:54 +0200)]
Revert "eventfd-aio ..."

This reverts commit e669001b5b45a9d5ec36c48dd906d3de8504fa07.

5 years agoeventfd-aio ...
Stefan Metzmacher [Tue, 6 Jan 2009 10:53:36 +0000 (11:53 +0100)]
eventfd-aio ...

5 years agoTODO: tevent: version 0.9.37
Stefan Metzmacher [Thu, 14 Aug 2014 19:51:09 +0000 (21:51 +0200)]
TODO: tevent: version 0.9.37

* add tevent_common_invoke_*_handler() functions
* add tevent_context_same_loop() function
* add tevent_context_wrapper_create() infrastructure

5 years agotevent: add tevent_context_wrapper_create() infrastructure
Stefan Metzmacher [Tue, 22 Jul 2014 14:51:38 +0000 (16:51 +0200)]
tevent: add tevent_context_wrapper_create() infrastructure

This allows to specify wrapper tevent_contexts which adds the ability
to run functions before and after the event handler functions.

This can be used to implement impersonation hooks
or advanced debugging/profiling hooks.

5 years agotevent: split out tevent_common_invoke_fd_handler()
Stefan Metzmacher [Tue, 22 Jul 2014 12:45:33 +0000 (14:45 +0200)]
tevent: split out tevent_common_invoke_fd_handler()

We'll remove _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: split out tevent_common_invoke_immediate_handler()
Stefan Metzmacher [Tue, 22 Jul 2014 11:08:42 +0000 (13:08 +0200)]
tevent: split out tevent_common_invoke_immediate_handler()

We'll remove _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: split out tevent_common_invoke_timer_handler()
Stefan Metzmacher [Tue, 22 Jul 2014 11:08:42 +0000 (13:08 +0200)]
tevent: split out tevent_common_invoke_timer_handler()

As side effect this avoids tricks with an extra
tevent_common_timed_deny_destructor().

We'll remove the _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: split out tevent_common_invoke_signal_handler()
Stefan Metzmacher [Tue, 22 Jul 2014 11:01:01 +0000 (13:01 +0200)]
tevent: split out tevent_common_invoke_signal_handler()

As side effect this avoids tricks with tevent_se_exists_destructor() to
figure out if the event handler removed itself.

We'll remove _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: simplify tevent_signal_destructor()
Stefan Metzmacher [Tue, 17 Apr 2018 14:43:54 +0000 (16:43 +0200)]
tevent: simplify tevent_signal_destructor()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: use talloc_zero() in tevent_signal.c
Stefan Metzmacher [Tue, 27 Mar 2018 12:30:20 +0000 (14:30 +0200)]
tevent: use talloc_zero() in tevent_signal.c

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: simplify tevent_cleanup_pending_signal_handlers()
Stefan Metzmacher [Tue, 22 Jul 2014 10:02:45 +0000 (12:02 +0200)]
tevent: simplify tevent_cleanup_pending_signal_handlers()

Calling tevent_signal_destructor() does the same as se->event_ctx is already
NULL.

This also makes sure we correctly cleanup the SA_SIGINFO array.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: add tevent_common_check_double_free() helper function
Stefan Metzmacher [Tue, 17 Apr 2018 14:33:47 +0000 (16:33 +0200)]
tevent: add tevent_common_check_double_free() helper function

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: add tevent_threaded_schedule_immediate_destructor that just aborts
Stefan Metzmacher [Fri, 23 Mar 2018 09:32:15 +0000 (10:32 +0100)]
tevent: add tevent_threaded_schedule_immediate_destructor that just aborts

5 years agotevent: use _tevent_schedule_immediate() to move events from a thread to the main_ev
Stefan Metzmacher [Fri, 23 Mar 2018 09:25:27 +0000 (10:25 +0100)]
tevent: use _tevent_schedule_immediate() to move events from a thread to the main_ev

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: use struct initializers for tevent_immediate
Stefan Metzmacher [Thu, 23 Oct 2014 05:15:14 +0000 (07:15 +0200)]
tevent: use struct initializers for tevent_immediate

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: use struct initializers for tevent_signal
Stefan Metzmacher [Thu, 23 Oct 2014 05:15:14 +0000 (07:15 +0200)]
tevent: use struct initializers for tevent_signal

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: use struct initializers for tevent_timer
Stefan Metzmacher [Thu, 23 Oct 2014 05:15:14 +0000 (07:15 +0200)]
tevent: use struct initializers for tevent_timer

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: use struct initializers for tevent_fd
Stefan Metzmacher [Thu, 23 Oct 2014 05:15:14 +0000 (07:15 +0200)]
tevent: use struct initializers for tevent_fd

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: make tevent_abort() available for backends
Stefan Metzmacher [Tue, 22 Jul 2014 13:10:00 +0000 (15:10 +0200)]
tevent: make tevent_abort() available for backends

We'll remove the _PRIVATE_ with the next release.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent: allow tevent_abort() to cope with ev == NULL
Stefan Metzmacher [Thu, 22 Mar 2018 15:51:01 +0000 (16:51 +0100)]
tevent: allow tevent_abort() to cope with ev == NULL

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent/testsuite: return after torture_fail()
Stefan Metzmacher [Thu, 23 Oct 2014 04:54:10 +0000 (06:54 +0200)]
tevent/testsuite: return after torture_fail()

Signed-off-by: Stefan Metzmacher <metze@samba.org>
5 years agotevent.h: improve tevent_req documentation
Ralph Boehme [Wed, 23 Sep 2015 02:27:53 +0000 (04:27 +0200)]
tevent.h: improve tevent_req documentation

Document tevent_req naming conventions.

Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
5 years agoHACK drsuapi less debug
Stefan Metzmacher [Tue, 9 Jan 2018 22:42:29 +0000 (23:42 +0100)]
HACK drsuapi less debug

5 years agoHACK!!!! _FAIL_IMMEDIATELY=1
Stefan Metzmacher [Wed, 13 Dec 2017 22:46:57 +0000 (23:46 +0100)]
HACK!!!! _FAIL_IMMEDIATELY=1

5 years agoTODO first check_user_ok admin_user
Stefan Metzmacher [Thu, 3 May 2018 13:04:30 +0000 (15:04 +0200)]
TODO first check_user_ok admin_user

5 years agoctdb: Drop configuration file ctdbd.conf
Martin Schwenke [Tue, 24 Apr 2018 05:55:11 +0000 (15:55 +1000)]
ctdb: Drop configuration file ctdbd.conf

Drop function loadconfig(), replacing uses with "load_system_config
ctdb".  Drop translation of old-style configuration to new
configuration file.  Drop export of debugging variables.  Drop
documentation and configuration examples.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
Autobuild-User(master): Amitay Isaacs <amitay@samba.org>
Autobuild-Date(master): Thu May 17 07:03:04 CEST 2018 on sn-devel-144

5 years agoctdb-tests: Switch local daemons to use new style configuration file
Martin Schwenke [Fri, 13 Apr 2018 09:25:56 +0000 (19:25 +1000)]
ctdb-tests: Switch local daemons to use new style configuration file

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-config: Add default ctdb.conf file
Martin Schwenke [Tue, 24 Apr 2018 09:58:23 +0000 (19:58 +1000)]
ctdb-config: Add default ctdb.conf file

Install it in RPM.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-docs: Add example configuration files
Martin Schwenke [Sun, 13 May 2018 05:42:31 +0000 (15:42 +1000)]
ctdb-docs: Add example configuration files

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-docs: Add ctdb.conf(5) cross references and documentation tweaks
Martin Schwenke [Sat, 21 Apr 2018 08:12:53 +0000 (18:12 +1000)]
ctdb-docs: Add ctdb.conf(5) cross references and documentation tweaks

Minor updates to other manual pages for compatibility.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-docs: Add ctdb.conf(5)
Martin Schwenke [Sun, 13 May 2018 05:41:38 +0000 (15:41 +1000)]
ctdb-docs: Add ctdb.conf(5)

This documents the new Samba-style configuration file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-tests: Clean up tests to not expose script options
Martin Schwenke [Wed, 2 May 2018 08:38:41 +0000 (18:38 +1000)]
ctdb-tests: Clean up tests to not expose script options

The tests still use the script options but the event scripts no longer
see them exported from the test infrastructure.  Testing now depends
on the event scripts successfully fetching the options from the
configuration file.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-scripts: Fetch recovery lock option from config file in 01.reclock
Martin Schwenke [Fri, 20 Apr 2018 02:20:34 +0000 (12:20 +1000)]
ctdb-scripts: Fetch recovery lock option from config file in 01.reclock

Put it in a function so it is easy to move to common code just in case
it is needed somewhere else.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-scripts: Fetch database options from config file in scripts
Martin Schwenke [Fri, 20 Apr 2018 02:15:26 +0000 (12:15 +1000)]
ctdb-scripts: Fetch database options from config file in scripts

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-scripts: Add function ctdb_get_db_options()
Martin Schwenke [Fri, 20 Apr 2018 02:12:44 +0000 (12:12 +1000)]
ctdb-scripts: Add function ctdb_get_db_options()

This pulls database options from the configuration file, caches then
and makes the values available in scripts.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-tests: Add ctdb-config wrapper stub for event script tests
Martin Schwenke [Wed, 2 May 2018 08:06:05 +0000 (18:06 +1000)]
ctdb-tests: Add ctdb-config wrapper stub for event script tests

Create a shim helper around that simply invokes ctdb-config via its
real location.

This is needed because the event script tests set CTDB_HELPER_BINDIR
to the stubs directory because all other helpers used by event script
testing are currently stubs.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-tests: Add setup of ctdb.conf recovery lock setting
Martin Schwenke [Wed, 2 May 2018 08:05:28 +0000 (18:05 +1000)]
ctdb-tests: Add setup of ctdb.conf recovery lock setting

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-tests: Add setup of ctdb.conf database directory settings
Martin Schwenke [Wed, 2 May 2018 02:37:21 +0000 (12:37 +1000)]
ctdb-tests: Add setup of ctdb.conf database directory settings

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-tests: Add new variable CTDB_SCRIPTS_HELPER_BINDIR
Martin Schwenke [Wed, 2 May 2018 08:03:20 +0000 (18:03 +1000)]
ctdb-tests: Add new variable CTDB_SCRIPTS_HELPER_BINDIR

This will always find a binary helper, as opposed to a script helper,
which currently lives under tools/ in the source tree.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-daemon: Drop most ctdbd command-line options
Martin Schwenke [Mon, 16 Apr 2018 04:23:00 +0000 (14:23 +1000)]
ctdb-daemon: Drop most ctdbd command-line options

All except -i/--interactive.  This remaining popt option is now neatly
wrapped to fit in 80 columns.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-scripts: Translate old style options into new configuration file
Martin Schwenke [Mon, 16 Apr 2018 03:20:36 +0000 (13:20 +1000)]
ctdb-scripts: Translate old style options into new configuration file

This allows the relevant command-line options to be removed from the
daemon while still leaving the old ctdbd.conf options file in place.
It is a temporary measure to enable testing in an old testing
environment.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-daemon: Integrate configuration file handling
Martin Schwenke [Fri, 13 Apr 2018 09:18:27 +0000 (19:18 +1000)]
ctdb-daemon: Integrate configuration file handling

Testing is now broken because command-line options are no longer
respected.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
5 years agoctdb-daemon: Implement ctdb configuration file loading
Martin Schwenke [Wed, 18 Apr 2018 10:21:07 +0000 (20:21 +1000)]
ctdb-daemon: Implement ctdb configuration file loading

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>