summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* lib/replace: Replace BSD strtoull by wrapping strtoull instead of strtouqFelix Janda2015-10-311-6/+3
| | | | | | | | | | | Same as commit e50bf6d537ef09e936d19d6e0bf63f9bbc5d4818 but for strtoull instead of strtoll. Bug: https://bugzilla.samba.org/show_bug.cgi?id=11455 Signed-off-by: Felix Janda <felix.janda@posteo.de> Reviewed-by: Ralph Boehme <slow@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s4.torture.smb2/session: Add torture assert for closeAnoop C S2015-10-311-4/+9
| | | | | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Michael Adam <obnox@samba.org> Autobuild-Date(master): Sat Oct 31 15:52:22 CET 2015 on sn-devel-104
* s4.torture.smb2/session: Add torture assert for unlinkAnoop C S2015-10-311-1/+4
| | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s4.torture.smb2/session : Replace CHECK_STATUS with torture macrosAnoop C S2015-10-311-72/+145
| | | | | | Signed-off-by: Anoop C S <anoopcs@redhat.com> Reviewed-by: Michael Adam <obnox@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* smbd: Fix/simplify scavenger routinesVolker Lendecke2015-10-301-27/+20
| | | | | | | | | | Use read_data/write_data, "ofs" was not incremented Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Fri Oct 30 22:53:56 CET 2015 on sn-devel-104
* s3-smbd: Fix use after issue in smbd_smb2_request_dispatch()Andreas Schneider2015-10-301-7/+8
| | | | | | | | | | BUG: https://bugzilla.samba.org/show_bug.cgi?id=11581 Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org> Autobuild-Date(master): Fri Oct 30 19:49:47 CET 2015 on sn-devel-104
* ctdb-banning: Do not set recovery mode to ACTIVE in daemonAmitay Isaacs2015-10-301-2/+3
| | | | | | | | | | | | | | | | | | | | | When a node gets banned, it should go into recovery and freeze all databases. We rely on the recovery daemon to detect the banned state and put the node in recovery and freeze all databases. Recent change in b4357a79d916b1f8ade8fa78563fbef0ce670aa9 took explicit freezing out of banning code but left the setting of recovery mode to ACTIVE. Recovery daemon will freeze databases only if the recovery mode is NORMAL. Recovery mode set to ACTIVE is an indication that the freeze has started. Do not set the recovery mode to ACTIVE in banning. Let recovery daemon take care of it. 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 Oct 30 10:32:38 CET 2015 on sn-devel-104
* ctdb-include: Order function prototypes as per ctdb_client.cAmitay Isaacs2015-10-301-395/+451
| | | | | | | | | | | This makes sure that all function prototypes in ctdb_client.h are in the same order of functions defined in ctdb_client.c. 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 Oct 30 05:04:49 CET 2015 on sn-devel-104
* ctdb-include: Remove unused structures and prototypesAmitay Isaacs2015-10-302-68/+0
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Move client function prototypes to ctdb_client.hAmitay Isaacs2015-10-302-133/+134
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Move protocol structures from ctdb_private.h to ctdb_protocol.hAmitay Isaacs2015-10-302-218/+218
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Move protocol structures from ctdb_client.h to ctdb_protocol.hAmitay Isaacs2015-10-302-65/+65
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/eventscript.cAmitay Isaacs2015-10-301-19/+28
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_vacuum.cAmitay Isaacs2015-10-301-15/+15
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_uptime.cAmitay Isaacs2015-10-301-4/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_update_record.cAmitay Isaacs2015-10-301-3/+6
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_tunables.cAmitay Isaacs2015-10-301-7/+10
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_traverse.cAmitay Isaacs2015-10-301-16/+18
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_takeover.cAmitay Isaacs2015-10-301-60/+75
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_statistics.cAmitay Isaacs2015-10-301-6/+8
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_serverids.cAmitay Isaacs2015-10-301-9/+11
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_server.cAmitay Isaacs2015-10-302-27/+23
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_recoverd.cAmitay Isaacs2015-10-301-3/+5
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_recover.cAmitay Isaacs2015-10-301-38/+51
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_persistent.cAmitay Isaacs2015-10-301-16/+18
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_monitor.cAmitay Isaacs2015-10-301-12/+16
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_ltdb_server.cAmitay Isaacs2015-10-301-49/+56
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_logging_syslog.cAmitay Isaacs2015-10-302-2/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_logging_file.cAmitay Isaacs2015-10-302-1/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_logging.cAmitay Isaacs2015-10-302-18/+23
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_lock.cAmitay Isaacs2015-10-301-2/+3
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_keepalive.cAmitay Isaacs2015-10-301-2/+5
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_freeze.cAmitay Isaacs2015-10-301-24/+31
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_daemon.cAmitay Isaacs2015-10-301-36/+45
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_control.cAmitay Isaacs2015-10-301-12/+21
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_call.cAmitay Isaacs2015-10-302-26/+39
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from server/ctdb_banning.cAmitay Isaacs2015-10-301-7/+9
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Group function prototypes from tcp and ibAmitay Isaacs2015-10-301-2/+5
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Separate prototypes for common client/server functionsAmitay Isaacs2015-10-3054-131/+242
| | | | | | | | This groups function prototypes for common client/server functions in common/common.h and removes them from ctdb_private.h. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-common: Add missing prototype for ctdb_cmdline_client()Amitay Isaacs2015-10-301-0/+3
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-build: Calculate correct version when building from tarballAmitay Isaacs2015-10-303-3/+14
| | | | | | | | | | | When building standalone ctdb from git repo, samba_version_file correctly includes git sha in VERSION string. When building standalone ctdb from tarball, samba_version_file puts UNKNOWN in the VERSION string. Use the packaged include/ctdb_version.h file to set the correct git sha. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Remove unused header file include/internal/includes.hAmitay Isaacs2015-10-302-42/+17
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Remove dependency on includes.hAmitay Isaacs2015-10-3068-272/+781
| | | | | | | Instead of includes.h, include the required header files explicitly. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Stop using tevent compatibility definitionsAmitay Isaacs2015-10-3050-498/+605
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-include: Move include/internal/cmdline.h to common/Amitay Isaacs2015-10-305-4/+4
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Separate prototypes for system specific functionsAmitay Isaacs2015-10-3034-36/+102
| | | | | | | | This groups function prototypes for system specific functions in common/system.h and removes them from ctdb_private.h. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* KCC: allow --test-all-reps-from to work with --import-ldifDouglas Bagnall2015-10-291-4/+23
| | | | | | | | | | | | | | | | | | | | The ldif files lack information that a normal database has, which means the ldif import function has to use some trickery to set the local DSA. Once the local DSA is thus set, the fake database is a bit useless from the point of view of other DSAs. We get around this by re-importing it each time. This is doing something slightly different than the normal samdb --test-all-reps-from, in that the changes are not preserved between each DSA's run. With the samdb database (unless using --readonly), the later DSA's will see changes the early ones made. The ordering is arbitrary. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Autobuild-User(master): Andrew Bartlett <abartlet@samba.org> Autobuild-Date(master): Thu Oct 29 08:11:54 CET 2015 on sn-devel-104
* KCC: samba_kcc --tmpdb X won't run if X already existsDouglas Bagnall2015-10-291-0/+4
| | | | | | | | | Part of an ongoing safety campaign, making it harder to overwrite your valuable things while keeping it easy enough to test crazy schemes. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* KCC: with --import-ldif, don't default to standard DB urlDouglas Bagnall2015-10-291-1/+7
| | | | | | | | | | | Before samba_kcc would always assume `-H /usr/local/whatever`, and this interacted badly with the likes of `--test-all-reps-from` and `--forget-intersite-links`. When I say badly, I mean it crashed because the file is absent on my dev machine. Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
* KCC: kcc.import_ldif doesn't need credsDouglas Bagnall2015-10-293-6/+5
| | | | | | Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Garming Sam <garming@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>