metze/samba/wip.git
6 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.

6 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

6 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.

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

6 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.

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

6 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.

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

6 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

6 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

6 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

6 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>
6 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.

6 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.

6 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.

6 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.

6 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.

6 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.

6 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

6 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

6 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.

6 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

6 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>
6 years agomore...
Stefan Metzmacher [Thu, 28 Jul 2016 18:52:32 +0000 (20:52 +0200)]
more...

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

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

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

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

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

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

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

6 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

6 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()

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

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

6 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>
6 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>
6 years agoRevert "feature"
Stefan Metzmacher [Fri, 9 Mar 2018 10:03:34 +0000 (11:03 +0100)]
Revert "feature"

This reverts commit d8e50a901e1ebbe99fe5c586b98646dee91fded1.

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

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

This reverts commit e669001b5b45a9d5ec36c48dd906d3de8504fa07.

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

6 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

6 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.

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 years agoHACK drsuapi less debug
Stefan Metzmacher [Tue, 9 Jan 2018 22:42:29 +0000 (23:42 +0100)]
HACK drsuapi less debug

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

6 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

6 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

6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 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>
6 years agoctdb-tools: Add legacy config options to config tool
Martin Schwenke [Fri, 11 May 2018 12:49:46 +0000 (22:49 +1000)]
ctdb-tools: Add legacy config options to config tool

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-daemon: Define ctdbd legacy configuration file options
Martin Schwenke [Wed, 11 Apr 2018 10:36:45 +0000 (20:36 +1000)]
ctdb-daemon: Define ctdbd legacy configuration file options

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-tools: Add database config options to config tool
Martin Schwenke [Fri, 11 May 2018 12:42:42 +0000 (22:42 +1000)]
ctdb-tools: Add database config options to config tool

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-database: Define database configuration file options
Martin Schwenke [Fri, 20 Apr 2018 07:10:51 +0000 (17:10 +1000)]
ctdb-database: Define database configuration file options

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-tools: Add cluster config options to config tool
Martin Schwenke [Fri, 11 May 2018 12:26:16 +0000 (22:26 +1000)]
ctdb-tools: Add cluster config options to config tool

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-cluster: Define cluster configuration file options
Martin Schwenke [Fri, 20 Apr 2018 07:11:59 +0000 (17:11 +1000)]
ctdb-cluster: Define cluster configuration file options

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-tools: Add event daemon config options to config tool
Amitay Isaacs [Tue, 17 Apr 2018 02:38:30 +0000 (12:38 +1000)]
ctdb-tools: Add event daemon config options to config tool

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
6 years agoctdb-event: Add event daemon config file options
Amitay Isaacs [Mon, 23 Apr 2018 04:02:43 +0000 (14:02 +1000)]
ctdb-event: Add event daemon config file options

Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Martin Schwenke <martin@meltin.net>
6 years agoctdb-daemon: Drop ctdbd --max-persistent-check-errors option
Martin Schwenke [Tue, 15 May 2018 08:51:29 +0000 (18:51 +1000)]
ctdb-daemon: Drop ctdbd --max-persistent-check-errors option

Leave the code with an internal default of 0.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-scripts: Drop CTDB_MAX_PERSISTENT_CHECK_ERRORS option
Martin Schwenke [Tue, 15 May 2018 08:47:29 +0000 (18:47 +1000)]
ctdb-scripts: Drop CTDB_MAX_PERSISTENT_CHECK_ERRORS option

This must harken back to the days of yore when corrupt persistent
databases were an issue.  We haven't seen this used.  If CTDB fails to
start due to a corrupt persistent database then this database can be
removed by hand.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-daemon: Do not create database directories
Martin Schwenke [Tue, 15 May 2018 08:46:21 +0000 (18:46 +1000)]
ctdb-daemon: Do not create database directories

These should be created at installation or, if non-standard, by the
administrator.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-tests: Create database directories for local daemons
Martin Schwenke [Tue, 15 May 2018 08:45:10 +0000 (18:45 +1000)]
ctdb-tests: Create database directories for local daemons

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agoctdb-build: Create database directories during installation
Martin Schwenke [Mon, 14 May 2018 05:41:35 +0000 (15:41 +1000)]
ctdb-build: Create database directories during installation

Create and package.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
6 years agos4:torture: Do not leak file descriptor in smb2 oplock test
Andreas Schneider [Wed, 16 May 2018 09:46:22 +0000 (11:46 +0200)]
s4:torture: Do not leak file descriptor in smb2 oplock test

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu May 17 04:03:21 CEST 2018 on sn-devel-144

6 years agos4:torture: Do not leak memory in libsmbclient test
Andreas Schneider [Wed, 16 May 2018 09:44:00 +0000 (11:44 +0200)]
s4:torture: Do not leak memory in libsmbclient test

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
6 years agos3:libsmbclient: cleanup smbc_setWorkgroup() usage
David Disseldorp [Wed, 16 May 2018 14:50:55 +0000 (16:50 +0200)]
s3:libsmbclient: cleanup smbc_setWorkgroup() usage

It now takes a const char *. There's no need to use heap memory here.

Signed-off-by: David Disseldorp <ddiss@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
6 years agos3:libsmbclient: Use const for setting and getting strings
Andreas Schneider [Wed, 16 May 2018 12:49:55 +0000 (14:49 +0200)]
s3:libsmbclient: Use const for setting and getting strings

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
6 years agoctdb: Check return values of tevent_req_set_endtime()
Andreas Schneider [Wed, 16 May 2018 10:05:40 +0000 (12:05 +0200)]
ctdb: Check return values of tevent_req_set_endtime()

Found by Coverity.

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet@samba.org>
Autobuild-Date(master): Thu May 17 01:09:46 CEST 2018 on sn-devel-144