summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-protocol: Fix CID 1417430Amitay Isaacs2017-09-051-2/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix CID 1417433Amitay Isaacs2017-09-051-1/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* vfs_gpfs: Request DENY_DELETE sharemode when possibleChristof Schmitt2017-09-041-0/+9
| | | | | | | | Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> Autobuild-User(master): Ralph Böhme <slow@samba.org> Autobuild-Date(master): Mon Sep 4 14:08:45 CEST 2017 on sn-devel-144
* vfs_gpfs: Do not map DELETE sharemode access to WRITEChristof Schmitt2017-09-041-2/+2
| | | | | | | | | | A SMB client can deny the WRITE sharemode, but still grant the DELETE sharemode. Mapping the requested DELETE access to WRITE access breaks this case. Fix this by removing the incorrect mapping from DELETE access to WRITE access. Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
* ctdb-client: Use sock_client abstraction for eventd clientAmitay Isaacs2017-09-011-225/+72
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Fri Sep 1 12:49:27 CEST 2017 on sn-devel-144
* ctdb-common: Add sock_client abstractionAmitay Isaacs2017-09-013-1/+463
| | | | | | | | | | This sets up boilerplate required for a client code connecting to a server over unix domain socket. The communication between client and server is "request" from client to server and "reply" from server to client. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Drop struct ctdb_event_headerAmitay Isaacs2017-09-017-109/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Replace ctdb_event_header with sock_packet_headerAmitay Isaacs2017-09-017-22/+29
| | | | | | | | | This removes the static declaration and adds prototype declarations of ctdb_event_header marshalling functions to avoid compiler warnings. These functions will be removed. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add a generic packet headerAmitay Isaacs2017-09-017-1/+127
| | | | | | | | This will avoid duplication when new daemons (and new client-server protocols) are created out of the main ctdb daemon. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-common: Parse IPv4-mapped IPv6 addresses into IPv4 addressesMartin Schwenke2017-09-012-2/+26
| | | | | | | | | | | | | Tools like ctdb_killtcp can't route packets to IPv4-mapped IPv6 addresses so this works around that. Add a test case to confirm that this works. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Fri Sep 1 04:06:32 CEST 2017 on sn-devel-144
* ctdb-tests: Improve releaseip connection resetting testsMartin Schwenke2017-09-014-8/+12
| | | | | | | | Make the tests more general by setting up the IP address using a "takeip" event. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: Add tests to ensure reset of server end of connectionsMartin Schwenke2017-09-012-0/+188
| | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tools: Remove broken natgwlist commandMartin Schwenke2017-09-011-29/+0
| | | | | | | The replacement was documented for Samba 4.5, so this is not worth fixing. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: Drop onnode test README file and buggy onnode exampleMartin Schwenke2017-09-012-412/+0
| | | | | | | | These are of no value. The test system is documented elsewhere. An old version of onnode can always be retrieved from git. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb-tests: Shutdown local daemons unconditionallyAmitay Isaacs2017-09-012-4/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* pthreadpool: Test fork with an active threadVolker Lendecke2017-08-311-0/+114
| | | | | | | | | | Bug: https://bugzilla.samba.org/show_bug.cgi?id=13006 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Thu Aug 31 21:34:57 CEST 2017 on sn-devel-144
* pthreadpool: Fix fork behaviourVolker Lendecke2017-08-311-2/+65
| | | | | | | | | | | | | | | glibc's pthread_cond_wait(&c, &m) increments m.__data.__nusers, making pthread_mutex_destroy return EBUSY. Thus we can't allow any thread waiting for a job across a fork. Also, the state of the condvar itself is unclear across a fork. Right now to me it looks like an initialized but unused condvar can be used in the child. Busy worker threads don't cause any trouble here, they don't hold mutexes or condvars. Also, they can't reach the condvar because _prepare holds all mutexes. Bug: https://bugzilla.samba.org/show_bug.cgi?id=13006 Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* winbind: Rename winbindd_cm_conn->netlogon_creds to _ctxVolker Lendecke2017-08-305-22/+22
| | | | | | | | | | We have too many variables called _creds :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Aug 30 22:44:45 CEST 2017 on sn-devel-144
* winbind: Fix a signed/unsigned hickupVolker Lendecke2017-08-301-1/+1
| | | | | Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* ctdb-tests: Drop unused test templateAmitay Isaacs2017-08-301-19/+0
| | | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Autobuild-User(master): Martin Schwenke <martins@samba.org> Autobuild-Date(master): Wed Aug 30 18:55:42 CEST 2017 on sn-devel-144
* ctdb-protocol: Fix marshalling of ctdb_event_replyAmitay Isaacs2017-08-303-50/+15
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_requestAmitay Isaacs2017-08-303-43/+16
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_headerAmitay Isaacs2017-08-302-13/+24
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_reply_dataAmitay Isaacs2017-08-303-40/+20
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_reply_script_listAmitay Isaacs2017-08-302-5/+10
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshaling for ctdb_event_reply_statusAmitay Isaacs2017-08-302-5/+11
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_request_dataAmitay Isaacs2017-08-303-40/+31
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_request_script_disableAmitay Isaacs2017-08-302-5/+10
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_request_script_enableAmitay Isaacs2017-08-302-5/+10
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_request_statusAmitay Isaacs2017-08-302-5/+14
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_request_runAmitay Isaacs2017-08-302-5/+12
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_status_stateAmitay Isaacs2017-08-301-4/+8
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_event_commandAmitay Isaacs2017-08-301-12/+19
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_eventAmitay Isaacs2017-08-301-12/+16
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-tests: Add test templates for eventd protocol elementsAmitay Isaacs2017-08-301-0/+59
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-tests: Remove unused #definesAmitay Isaacs2017-08-301-7/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Add marshalling for ctdb_req_keepaliveAmitay Isaacs2017-08-309-0/+229
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_message_dataAmitay Isaacs2017-08-304-81/+116
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_messageAmitay Isaacs2017-08-306-32/+172
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_message_dataAmitay Isaacs2017-08-305-7/+231
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_reply_controlAmitay Isaacs2017-08-304-113/+200
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_controlAmitay Isaacs2017-08-304-99/+203
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_reply_control_dataAmitay Isaacs2017-08-303-40/+20
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_control_dataAmitay Isaacs2017-08-303-39/+29
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_reply_dmasterAmitay Isaacs2017-08-303-87/+183
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_dmasterAmitay Isaacs2017-08-303-90/+196
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_reply_errorAmitay Isaacs2017-08-303-79/+113
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_reply_callAmitay Isaacs2017-08-303-79/+112
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_callAmitay Isaacs2017-08-303-90/+204
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-protocol: Fix marshalling for ctdb_req_headerAmitay Isaacs2017-08-3012-74/+192
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>