[SCM] CTDB repository - branch 1.13 created - ctdb-1.12-225-g05e75de

Ronnie Sahlberg sahlberg at samba.org
Wed Feb 29 18:57:20 MST 2012


The branch, 1.13 has been created
        at  05e75dea9eaa0decc2909e0c2cf1715c81374200 (commit)

- Log -----------------------------------------------------------------
commit 05e75dea9eaa0decc2909e0c2cf1715c81374200
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Mar 1 12:36:03 2012 +1100

    New version 1.13
    
    This will be the new long term stable branch for ctdb
    
    Main new features are
    
    read-only records: performance/scaling improvement for concurrent access to the same record from multiple nodes.
    
    fetch-lock-collapse: performance/scaling improvement for concurrent write access to the same record from multiple nodes.

commit 7417d994c2a159f71d27d4bcd2f53684862eece3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 29 16:09:24 2012 +1100

    READONLY: skip vacuuming or deleting records with readonly delegations.
    they are hot. wait until they have been revoked before we recall them.

commit 5ae94c6b9b3000a6c79fccaaea1e007ebd5be1a9
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 29 12:29:22 2012 +1100

    Vacuuming: change default timeout to 120 seconds

commit 49791db7dc74cffd7e88bd73091590cdc1909328
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 28 06:58:59 2012 +1100

    Add a tunable variable to control how long we defer after a ctdb addip until we force a rebalance and try to failback addresses onto this node
    Have it default to 300 seconds.

commit 4340263b219d75c39f8de22abe3f6f1c1ee63ea2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 28 06:56:04 2012 +1100

    When adding ips to nodes, set up a deferred rebalance for the whole node to trigger after 60 seconds in case the normal ipreallocated is not sufficient to trigger rebalance.

commit 02b62482164a3c69715949074feb7f191a29d534
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 27 07:18:19 2012 +1100

    Make KILLTCP structure a child of VNN so that it is freed at the same time
    the referenced VNN structure is.
    
    Also, remove the circular reference between the two objects KIPPCTP and VNN

commit a95c02da6c67dc4bd8716b75318a4188301df6f9
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 22 17:38:12 2012 +1100

    Eventscripts: remove the horrible horrible circular reference between state and callback since these two structures do not even share the same parent talloc context.
    Instead, tie them together via referencing a permanent linked list hung off the ctdb structure.

commit d306c3c9a53e012c412c96ab9743de6cd96826e0
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 22 16:07:17 2012 +1100

    change TDB to be valgrind nice

commit 0df433496f9c53a2c3759a62ebe355c35caff920
Author: Michael Adam <obnox at samba.org>
Date:   Tue Feb 21 17:56:45 2012 +0100

    server:update_record: remove some blood stains (trailing spaces...)

commit 400364a1d54404787cff48fb2c30c1b172a8b204
Author: Michael Adam <obnox at samba.org>
Date:   Tue Feb 21 17:55:07 2012 +0100

    server:update_record: make ctdb_childwrite static

commit a956fa3a27106d0154a3fb46987d61c0a6b7c768
Author: Michael Adam <obnox at samba.org>
Date:   Tue Feb 21 17:53:26 2012 +0100

    server: move the code for the update_record control to its own file
    
    It is very misleading in ctdb_persistent.c, since it is used for non-persistent
    dbs...

commit 67516f2eaf0b8b0f6aa4ecb0f1c44af53b992fbb
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 20 12:21:48 2012 +0100

    Fix some documentation typos
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit d8b400d76665f37ffd9de302eedcff9f23807225
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 19:02:36 2012 +1100

    when shutting down ctdb, allow it 30 seconds instead of 10 before will -9 the daemon

commit d3542d43141c1548bab356fbdef34dfedb4f167f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 19:00:33 2012 +1100

    Log the "Received SHUTDOWN ..." first in the shutown process instead of last.
    
    Sometimes ctdb is termnated ifrom the initscript if the shutdown takes too long an no message is logged.

commit 9b85aa1aa14091dc1de470a587f7c054b9e40078
Merge: 0fd3bf919b1b8e5aaa98444c306c6770a6a3209f 9e372a08c40087e6b5335aa298e94d88273566a5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 07:12:50 2012 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit 9e372a08c40087e6b5335aa298e94d88273566a5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 07:03:44 2012 +1100

    READONLY: only send a control to schedule fast-vacuuming from child context iff we have a connection open to the main daemon
    
    there are some child processes where we do not create a connection to the main daemon (switch_from_server_to_client()) because it is expensive to set up and we normally might not need to talk to the daemon at all via a domainsocket.
    but we might want to still call to ctdb_ltdb_store() from such chil processes.

commit b3307d78fd15f446b423f8cdd1e403f89fbe8ac8
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 06:54:09 2012 +1100

    READONLY: dont schedule for fast vacuum deletion if any of the readonly record flags are set

commit 5990fe65a9cc37933ceff15d4cb2ab3b3a0addb6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 21 06:49:18 2012 +1100

    Revert "ReadOnly: We can not use ctdb_ltdb_store from a client/child context since"
    
    This reverts commit 11dee7f3f881494cf5089d6c69fd40e74f07e670.
    
    Try to solve this a different way so that ctdb_ltb_store() becomes safe to use also from child context

commit 0fd3bf919b1b8e5aaa98444c306c6770a6a3209f
Merge: d3c54ae9cc83f74d15f40bbfff95404b270d2f80 11dee7f3f881494cf5089d6c69fd40e74f07e670
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 20 21:30:13 2012 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit 11dee7f3f881494cf5089d6c69fd40e74f07e670
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 20 21:22:56 2012 +1100

    ReadOnly: We can not use ctdb_ltdb_store from a client/child context since
    it sometimes (for empty records) needs to be able to initiate traffic unde rhte daemon context.
    
    This should furhter updated later to allow the use also from non-daemon context.

commit 303134cf10a08ce61954d5de9025d9bbcb5f75ef
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 20 21:13:46 2012 +1100

    ReadOnly: Make sure we dont try to fast-vacuum records that are set for readonly delegation

commit d3c54ae9cc83f74d15f40bbfff95404b270d2f80
Merge: 4ea05fef886b0680d0ad0936c239a51fd75bf000 650bb17335876f3e91e76a47b748c9236d0f3045
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 20 09:54:52 2012 +1100

    Merge branch 'master' of ssh://git.samba.org/data/git/ctdb

commit 650bb17335876f3e91e76a47b748c9236d0f3045
Author: Michael Adam <obnox at samba.org>
Date:   Sat Feb 18 12:29:49 2012 +0100

    Fix the build on freebsd9. (typo in flags?)

commit 4ea05fef886b0680d0ad0936c239a51fd75bf000
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Feb 16 10:19:15 2012 +1100

    TESTS: Add test for wipedb command

commit 89067e12b868974f9909b447ab5e202d612ac44f
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 6 12:50:05 2012 +0100

    Add common/system_freebsd.c
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit be5c3a57df39d85fbb7ee922924787340e2b0595
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 6 11:33:17 2012 +0100

    Add includes required on FreeBSD
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit d657af4fb68ce3f7c462856f2934f6bf169e120b
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 6 11:01:47 2012 +0100

    FreeBSD does not define s6_addr32, only s6_addr
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit be8a153346ca7d40f09a6d03aad655aaa5c4a903
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Feb 13 13:24:37 2012 +0100

    Make CTDB_CURRENT_NODE work with CTDB_REQ_MESSAGE
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit a7e7fa2169ee12f817336f6d03d5bb72df7ec020
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 13 11:16:24 2012 +1100

    READONLY: add test for creating and revoking delegations

commit f4d395165816f74839ed48860e3210e05bc16d3d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 13 11:06:45 2012 +1100

    READONLY: Update the fetch-readonly-once test tool to use CTDB_SOCKET if set

commit f0bc1760c36c8589f58354c50b23880946cb57c6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 13 10:34:41 2012 +1100

    READONLY: document the command to activate readonly record support

commit 3c2117e8e4156e0048fbd2c94546112f0c588522
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 13 10:27:59 2012 +1100

    READONLY:  allow specifying the db name for setdbreadonly instead of just the hash

commit 496e8f8540f78606ef23ee8fa100eb2b2cf3f106
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Feb 4 14:32:06 2012 +0100

    Load platform dependent objs instead of Linux one
    
    This fix compilation on Gnu/Hurd and kFreeBSD
    
    See also:
    https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=hurd-i386&ver=1.12%2Bgit20120201-1&stamp=1328211119
    https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=kfreebsd-amd64&ver=1.12%2Bgit20120201-1&stamp=1328214761
    https://buildd.debian.org/status/fetch.php?pkg=ctdb&arch=kfreebsd-i386&ver=1.12%2Bgit20120201-1&stamp=1328215875

commit 751ed46197661eb841042ab6a02855a51dd0b17c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 8 15:29:27 2012 +1100

    ReadOnly: add per-database statistics to view how much delegations/revokes we have

commit b098bcf8007be63889aaed640a951b0eeaa9d191
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 8 13:42:30 2012 +1100

    STATISTICS: add total counts for number of delegations and number of revokes
    
    Everytime we give a delegation to another node we count this as one delegation.
    If the same record is delegated to several nodes we count one for each node.
    
    Everytime a record has all its delegations revoked we count this as one revoke.

commit 3e5d2b61fcb4d0062d2573d99724f630a4fc4622
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 8 08:59:53 2012 +1100

    TESTS: Add a test that verifies that RecoverPDBBySeqNum works as expected.
    
    If this tunable is set to 1 AND the persistent database contains a record "__db_sequence_number__" then we will recover the whole database as-is instead of doing the record by record recovery

commit c6433e43ad2481d84e8d9a1ee1c6e29b90423a86
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 7 12:14:57 2012 +1100

    Ad test tool to store data and ctdb header into a local tdb file

commit 25d797f61c3b5b7090fb662adde6ed9e434e8a61
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 7 10:53:49 2012 +1100

    TFETCH add verbose flag to print also the record ltdb heaer

commit 70d22efdf104db1fc951263cedfbdb95b0b44342
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Feb 7 10:21:12 2012 +1100

    CTDB: update tfetch so we can specify a hexadecimal string as key

commit 4fa3f109b7ddc40e79c5fbb9688e0e830c0a655e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 6 17:32:34 2012 +1100

    TESTS: ctdb_fetch needs to allow tevent nesting

commit 5f660e5bf321ae5332bf1d32c8af36d6cc2569f4
Merge: 4948f34676d5bdaaf1ddf8879df618a76013ea1e 4aa4a5790ea9ad20e4d25404760c449b358b5260
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 6 16:34:02 2012 +1100

    Merge remote branch 'martins/tests'

commit 4948f34676d5bdaaf1ddf8879df618a76013ea1e
Merge: 6127515ea62173ff1574d1217129ec05a8fbeb3f eed3f4988290bbe317a7aaa6f61826676dd8365a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 6 16:30:49 2012 +1100

    Merge remote branch 'martins/takeover'

commit eed3f4988290bbe317a7aaa6f61826676dd8365a
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Jan 15 15:03:02 2012 +1100

    Test - IP allocation simulation - add -e option to run the daemon's algorithm
    
    A recent change in the deamon's (i.e. real) IP allocation algorithm
    uses qsort(3).  This makes it very difficult to get the same results
    in Python, since qsort's behaviour on identical keys is undefined.
    
    Add a -e option to run "../bin/ctdb_takeover_tests ctdb_takeover_run_core"
    instead of the internal Python algorithm.  We pass the current cluster
    state and read it back from the output of the test program.
    
    This is currently a rough hack.  Perhaps it'll be improved later...
    :-)
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c378a059b35fcc9955215a0095826c919d42153c
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Jan 15 15:01:27 2012 +1100

    Tests - IP allocation simulation - LCP2 => non-deterministic
    
    The default in this script is still deterministic IPs.  The LCP2
    option should really turn off deterministic IPs.
    
    Also fix a typo...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 4aa4a5790ea9ad20e4d25404760c449b358b5260
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Nov 21 13:44:30 2011 +1100

    Tests: eventscripts - fix breakage in some NFS tests
    
    1341329f6125d491b82c873f793af819e677f714 either contains typos or
    attempts to influence the test depending on the host system.  Whatever
    the cause, a test system (e.g. my laptop) might not have
    /etc/sysconfig/nfs, so that can't be used to cause the stub
    etc/sysconfig/nfs to be loaded.
    
    We make the tests work by default again, leaving in some flexibility
    over configuration file location.
    
    If the goal is to force a Debian-style test mode then:
    
    * The tests are currently probably quite RHEL-centric anyway, so more
      work is probably needed.
    
    * Use an environment variable to indicate the distro test mode and
      make functions like setup_nfs() remove all of the various
      configuration files and create one in the distro-specific location.
    
    I won't do this now... ENOTIME...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 48cb55aae47d11487bdf004a79df56779d1825a0
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Nov 21 13:43:07 2011 +1100

    Tests: eventscripts - make init test pass with recent change to 10.interface
    
    e646142f4d28b5401235cd5edee325f7a29f8193 changes the output on the
    init event.  This accommodates that change.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit a63e603cb7e21a7334c6a07bc4415ff089dab3c1
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Oct 18 14:48:55 2011 +1100

    Tests: new test to check that "ctdb delip" removes the IP from interface.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 6127515ea62173ff1574d1217129ec05a8fbeb3f
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Feb 6 15:59:08 2012 +1100

    Tests - ctdb tool - add verbose option and output filtering
    
    Need to filter dates before comparing...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 47e86c33d768816d03817124481bb6aa967bf2a6
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Feb 6 15:58:15 2012 +1100

    Tests - ctdb tool - fix "ctdb status" test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit fa00bbf7d7378eecb5ba77684d01db90c9370bca
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Feb 6 15:57:13 2012 +1100

    Tests - let run_tests.sh take a list of tests to run
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 47e9975fa75a7bb2628a751dc19d35e2c5c57ce3
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Jan 15 14:55:52 2012 +1100

    Tests: initial ctdb tool testcases
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ca1d2bb62e61b7d723a648b3a9b146e258efcabb
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Jan 15 14:55:15 2012 +1100

    Tests: fix usage message in ctdb_tool_libctdb
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f96954b42b03f810f7b1732b5fe00c5dab2d8cb8
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Jan 15 14:54:14 2012 +1100

    Tests: libctdb stubs should fail when current node disconnected
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 6c79b951c3ae68238f8dbd836ceca6c1187eaabe
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Dec 15 11:26:57 2011 +1100

    Tests - add a version of the ctdb tool that compiles against libctdb stubs
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 7339e87019c0ab44522bf160234307472c05dc14
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Dec 15 11:26:09 2011 +1100

    ctdb tool - free some memory used by popt
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 6f29c39d666485fddef60e9d87bf94082d179ebb
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Dec 15 11:21:34 2011 +1100

    Tests - allow tools/ctdb.c:main() to be used
    
    We'll need stubs somewhere else...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 25a0136bd773e7ed8dfda635471f0498d4a7afe9
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 13 16:48:10 2011 +1100

    Tests - more libctdb stub test infrastructure
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 9bfc3b04ffeca056d8507d1cc8bc20f56c8e1572
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 13 15:44:22 2011 +1100

    Tests - more libctdb stubs and supporting state faking functions
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit abe9985e503d998cf597933a594b445de8d3cec6
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Dec 12 17:19:00 2011 +1100

    ctdb tool - convert control_status() over to use just libctdb()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f6039eaece4224b866a98dd49010f278a7b3f015
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Dec 12 16:48:10 2011 +1100

    libctdb - add ctdb_getvnnmap()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit d597020af01dfcdf0d39e1cf579bf33f43f87dda
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Dec 7 14:04:54 2011 +1100

    Tests - update test code for ctdb tool code and libctdb stubs
    
    Rename ctdb_parse_nodestring.c to ctdb_tool_libctdb.c.  It can contain
    many tests.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit bc4d5d5f0048487776f9f5d9f04a0af2e5d45aac
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 6 19:50:40 2011 +1100

    ctdb tool - Fix parse_nodestring() related issues
    
    An old, buggy version of this code was merged.  This fixes it.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 4f4fbd4080a3a7226d3b82637f803c4b71217d39
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Feb 6 12:07:08 2012 +1100

    Add a hoook to the ctdb initscript that we can call out to for applications that want to
    track and produce audit logs when someone runs "service ctdb <something>"
    
    S1033891

commit e1da34874f22ec3de0c4abe50b703dd637f1fa98
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 1 13:47:49 2012 +1100

    ReadOnly  update documentation

commit f53c66a5e0dc5351b86b81dc5b1faea757981d4c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Feb 1 09:32:02 2012 +1100

    ReadOnly: update the loop test tool to print number of fetches per second

commit 444a7bac4e9a854b06c1ad4cb36c2b58a72001fa
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Jan 31 17:20:35 2012 +1100

    Niceify the readonlyrecord API. Dont force clients to be exposed to the featch_with_header function
    
    We dont strictly need to force clients to use CTDB_FETCH_WITH_HEADER instead of CTDB_FETCH when they ask for readonly records.
    Have ctdbd internally remap this internally to FETCH_WITH_HEADER and map the reply back to CTDB_FETCH_FUNC or CTDB_FETCH_WITH_HEADER_FUNC based on what the client initially asked for.
    
    This removes the need for the client to know about the CTDB_FETCH_WITH_HEADER_FUNC function and simplifies the client code.
    Clients that do not care what the header after the request is can just continue using the old CTDB_FETCH_FUNC call and ctdbd will do all the difficult stuff.

commit ee3ef9004be8feeefa6e450eb5bb084cc6812370
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Tue Dec 6 22:24:26 2011 +0100

    Define ETIME on non-supporting platforms
    
    e.g. kFreeBSD, NetBSD, ...

commit c75e4ad9b566e47dec66d25988da4cee861c2357
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Tue Dec 6 22:26:42 2011 +0100

    Add kFreeBSD support

commit 488de939b78125ac38822760102e05298a5e70c5
Author: Volker Lendecke <vl at samba.org>
Date:   Wed Jan 18 12:06:01 2012 +0100

    Fix a cut&paste error
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit 85879edd09ffa26f87c566954cbd2c14f1e331ed
Author: Michael Adam <obnox at samba.org>
Date:   Tue Jan 10 10:30:22 2012 +0100

    server: fix a comment typo

commit d0f85478c37828eb8a24315d4326eb4eaedb9afc
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Jan 4 21:41:12 2012 +1100

    explain why we use FIONREAD

commit 15d8ae8b0f80f95d7839528b8ac60aa0e2485c77
Merge: adcb076612c56f92cfb6f3ba90721981a067a494 809d1f3b8a9232fce0376cb47e4f633b49237529
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Jan 3 12:40:15 2012 +1100

    Merge branch 'master' of ssh://git.samba.org/data/git/ctdb

commit adcb076612c56f92cfb6f3ba90721981a067a494
Merge: 00373958a5d5fb8c9b99548d5b9f327e78669162 726b598076132a5a73f9259d6b65ee2a4012099f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Jan 3 12:31:37 2012 +1100

    Merge remote branch 'martins/nodestatus'

commit 809d1f3b8a9232fce0376cb47e4f633b49237529
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 17:23:07 2011 +0100

    vacuum: improve logging in remove_record_from_delete_queue()

commit 40ca781b3305d9f0bfee5b109d4eefde461a3f13
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 17:22:46 2011 +0100

    vacuum: improve logging in delete_record_traverse()

commit db59ac2ee6a9f5f7f088ebbc5e2800d9e57aae17
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 17:10:20 2011 +0100

    vacuum: improve logging in insert_record_into_delete_queue()

commit 2c44c6dc583872c603a399afb01936abcbb05158
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 17:08:28 2011 +0100

    vacuum: improve debugging in delete_queue_traverse()

commit ae78e8d991636a3a79dd9fbcefc15032afb08f55
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 15:14:06 2011 +0100

    vacuum: add debug message to insert_record_into_delete_queue() for failed insert

commit 6e6aaba28ac560d51d7450ebcf99babf868d0aea
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 10:37:25 2011 +0100

    vacuum: improve debugging in insert_record_into_delete_queue()

commit 772e08c29ef70a4cc73f7887939e5071a90a98cb
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 23 00:14:18 2011 +0100

    vacuum: initialize (to zero) the vacuum fetch list in ctdb_vacuum_init_vacuum_data()

commit bec2ff46402b6d90521c75e8d46b9f6f2f47239a
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 15:46:49 2011 +0100

    vacuum: add statistics output for processing of the delete list

commit 4f23976fad3de63a47cf81d26dff1973d025e262
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:48:38 2011 +0100

    doc:ctdb.1: add generated files after update

commit 4ed94279f243729d521d365a44607fd086ae7c41
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 13:05:26 2011 +0100

    doc:ctdb.1: explain that "ctdb listvars" does not list obsolete tunables any more

commit 583cbf1bf8f6b1a805d77a2a1d521015868c7828
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:47:42 2011 +0100

    doc:ctdb.1: adapt example output of "ctdb listvars" to current state

commit 295168d99183d2d21f27a8ac6825d421fa866b28
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 12:13:10 2011 +0100

    ctdb-tool: adapt formatting of "listvars" output to lenght of longest name

commit d8ab86f0eb11437e50d18183858dd3177a8f61e6
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 12:52:55 2011 +0100

    tunables: don't list obsolete tunables in the list_tunables control

commit 1a7d9b25fdcf7b59598618d406c2a681c90d9163
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 12:46:04 2011 +0100

    tunables: add a bool obsolete flag to the tunable_map list

commit 07f1ba54b1617fadd6fe83826dd8e76f37cea071
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 20 15:58:34 2011 +0100

    vacuum: add a comment explaining a race in the vacuum code.

commit 1963e33859e9dc51e9e88664c6d95e62c7c8b8be
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 20 15:50:51 2011 +0100

    vacuum: factor out initialization of the vacuum data from ctdb_vacuum_db()
    
    for readability

commit 11f52ba18370f1dda983f2263f9af82045b4fdea
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 23:16:27 2011 +0100

    vacuum: streamline ctdb_process_delete_list()
    
    Reducing indentiation and improving use of talloc.

commit cf68b762432a18e4a3cda137591b3f005c196906
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 23:15:51 2011 +0100

    vacuum: factor processing of the delete list out of ctdb_vacuum_db()

commit 905fc9cd7126ab84c23d4a803c59e32b9c54e6f0
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 17:00:07 2011 +0100

    vacuum: factor processing of vacuum fetch lists out of ctdb_vacuum_db()

commit e31594e0c13899e88013ce7eb7e3dc434c2f0723
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 11:04:13 2011 +0100

    vacuum: factor out full vacuum run out of ctdb_vacuum_db() as ctdb_vacuum_db_full()

commit 6596f2c4a6b4783b6498502fbbf50f87d4f59085
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 10:59:26 2011 +0100

    vacuum: factor out the fast vacuuming run into ctdb_vacuum_db_fast()
    
    for readability

commit f686bc440560074c1ce866f2037ae3671f182185
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 10:53:26 2011 +0100

    vacuum: rename delete_tree to delete_list
    
    It is not important for the user that this is implemented as a tree.

commit 09c55b76c96c4ab3fe812763007b81cf0a2ac86c
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 10:49:41 2011 +0100

    vacuum: appropriately rename vdata.list to vdata.vacuum_fetch_list

commit 019106e035520e6b3e5702b6e76d910626c3df13
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 10:46:54 2011 +0100

    vacuum: introduce a helper variable for the vacuum fetch list in ctdb_vacuum_db()

commit 48fe56ea27e3649ae7a67257fdce54f973e7c3c5
Author: Michael Adam <obnox at samba.org>
Date:   Fri Dec 16 10:43:06 2011 +0100

    vacuum: introduce a helper variable in add_record_to_vacuum_fetch_list() to reduce verbosity

commit e71afbf731f06a3b89b64220c7fd1b1ea5492d4a
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 17:43:58 2011 +0100

    tools/ctdb: allow the "ctdb vacuum" stub to be run without the daemon running.

commit 8fc4d5018ee6eee8856634095694d3ad0de5b4ae
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 17:43:10 2011 +0100

    tools/ctdb: remove functionality of "ctdb vacuum", just keeping a stub.

commit ea3e640a28178ddcb85285f4efec62ccba2483d9
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 17:32:45 2011 +0100

    vacuum: locally delete the records in the delete_tree that have be deleted remotely
    
    This way, especially records added in the fast vacuuming runs
    are deleted direclty instead of being handed back to the
    repack run which will probably not hit because of the vacuum limit.

commit 536aad024d52f2c32dd397fc86294c963b91341b
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 17:30:39 2011 +0100

    vacuum: improve vacuuming statistics for handling the delete_tree.
    
    Track the number of records failed to delete remotely with the
    TRY_DELETE_RECORDS control.
    And add a number of records left to delete locally.

commit 0ed349c24c7399b3b440c1f5d573db77ddb988b3
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 16:05:05 2011 +0100

    vacuum: fix and improve a comment

commit 7c5b27bc8dce9e30f2aff05297113da981f7b9a3
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 15:59:38 2011 +0100

    vacuum: appropriately rename delete_traverse()  to delete_marshall_traverse()

commit 970b8fc60857ad2f18f45312d355c571fb2f0246
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 15:58:52 2011 +0100

    vacuum: initialize the delete_count in the vacuum data

commit a5a29bf92b23e9b5a1523b06461eced422b22ffe
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:21:04 2011 +0100

    vacuum: fix the VacuumInterval tunable's type to uint32_t in get_vacuum_interval()

commit 78530f40338f511a7cd1d33ada450905742bfa8f
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:33:08 2011 +0100

    vacuum: add new tunable VacuumInterval and mark Vacuum{Default,Min,Max}Interval obsolete
    
    And use VacuumInterval instead of VacuumDefaultInterval in the code.

commit 1f62afbe1ae0b3e7dbad4081d1b51e3ab6ee5c39
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:36:35 2011 +0100

    vacuum: remove struct vacuum_tuning_data (unused)

commit e40fa9efd1c77aa35c917aba6e6e4d21d9c5cdea
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:32:12 2011 +0100

    vacuum: use get_vacuum_interval() in ctdb_vacuum_event()
    
    (instead of using the tunable directly)

commit 621c3ce957cb946ca05a2d527c037746ae2f01d3
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:16:23 2011 +0100

    vacuum: change get_vacuum_interval() to simply return the VacuumDefaultInterval tunable

commit d93750ea3f5cb854e5893e53795fd08656e7c12c
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 13 14:06:09 2011 +0100

    vacuum: remove update_tuning_db()

commit 489148e465e2b8aed87ea836e3518f43490671ca
Author: Michael Adam <obnox at samba.org>
Date:   Thu Apr 7 12:17:42 2011 +0200

    ctdb_ltdb_store_server: when storing a record that is not to be scheduled for deletion, remove it from the delete queue
    
    Pair-Programmed-With: Stefan Metzmacher <metze at samba.org>

commit a5065b42a98c709173503e02d217f97792878625
Author: Michael Adam <obnox at samba.org>
Date:   Thu Apr 7 12:17:16 2011 +0200

    vacuum: add ctdb_local_remove_from_delete_queue()
    
    Pair-Programmed-With: Stefan Metzmacher <metze at samba.org>

commit 8b0caaeed154d26c67a73659d3bbbdd63b21be11
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 18:09:36 2011 +0100

    rb_tree: fix possible access-after-free-error in trbt_traversearray32_node
    
    When the traverse callback frees the current node, the traverse of the
    rbtree can fail (the next node->right fails since node is not there any more...).
    This is fixed by introducing variables to store the right (and left)
    pointers before the callback is called.

commit 6c4d1b768ccade344a7462ecad7cf5cbbf3873d4
Author: Michael Adam <obnox at samba.org>
Date:   Thu Dec 22 17:18:38 2011 +0100

    fix zero-initialization of header in _ctdbd_allocate_pkt to the correct size

commit 00373958a5d5fb8c9b99548d5b9f327e78669162
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Nov 21 14:15:01 2011 +1100

    Tests: eventscripts - add tests for CTDB_DELETE_UNEXPECTED_IPS="yes"
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 3f471da605b9c43d5e1206452f238c2a91dc02f7
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Dec 14 14:23:53 2011 +1100

    DOC: Update the manpage to describe all relevant tunables

commit 8fc71ad4da746e28406c06a95928052b29803062
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Dec 14 12:52:35 2011 +1100

    typo

commit 726b598076132a5a73f9259d6b65ee2a4012099f
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Dec 7 18:40:55 2011 +1100

    Tests - make a comment more accurate
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 5b11f990404c26c279c9ae389483e560f1c01a81
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Dec 7 14:04:54 2011 +1100

    Tests - test code for parse_nodestring() function
    
    This function is fairly complex so here is some test code.
    
    This reworks Makefile a bit and also provides test stubs for some
    libctdb functions.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 54377ef8b992f92d3a4ece42ee72e37d22cd2de6
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Dec 7 13:40:24 2011 +1100

    Rename struct traverse_state to allow tools C files to be #included.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 2c1baf5ddd3c2cdd2a3f98b8e208d3a48530d1d1
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Dec 7 13:35:49 2011 +1100

    ctdb tool - remove verify_node() function
    
    parse_nodestring() checks what this used to check.  parse_nodestring()
    already has the nodemap.
    
    It was a 50-50 decision to decide whether to update verify_node() to
    check against a nodemap that is passed in or to delete it.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    
    Conflicts:
    
    	tools/ctdb.c
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 355685a14be17bf4648788f8a72c54790fe03502
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 6 20:17:02 2011 +1100

    ctdb tool - new command "ctdb nodestatus [nodestring]"
    
    This is very much like "ctdb status" but actually returns the status
    for use in scripts.
    
    This can be used in 2 modes:
    
    * An optional nodestring is passed directly to the command without
      using -n.  In this mode the current node is asked for the status of
      all listed nodes.
    
    * The nodestring is passed via -n.  In this mode the designated nodes
      will be asked for their status.  This is like "ctdb status".
    
    These modes can be mixed.  For example:
    
      ctdb nodestatus 1,2,3 -n 0
    
    asks node 0 for the status of nodes 1, 2 and 3, returning the bitwise
    OR of their statuses.
    
    This version uses the auto_all functionality, so the output isn't
    necessarily pretty.  An improved version that does its own -n
    processing may appear soon.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit fade71539482e8276f57ba3c003fe004d8666ce7
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 6 20:10:34 2011 +1100

    ctdb tool - factor out status printing functions
    
    Create 2 new functions: control_status_1_machine() and
    control_status_1_human() that contain chunks of code from
    control_status().  We're about to find another purpose for these
    functions.
    
    This should be a no-op.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 920e3a732eb9e09004edde6cfb3c7db8a004016f
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Dec 6 19:50:40 2011 +1100

    ctdb tool - generalise nodestring parsing for -n
    
    Centralise -n nodestring parsing and add the ability to pass a
    comma-separated list of node numbers.  Listing a node that is
    disconnected or deleted results in failure, similar to the way passing
    a single node currently works.  All of the auto_all commands inherit
    this functionality.  For now, the non-auto_all commands do not inherit
    this - they need to be individually tweaked.  Therefore, we haven't
    updated the documentation to advertise this feature.
    
    Implemented via a new function parse_nodestring() that parses an
    optional (pass NULL when not available to indicate "current node")
    comma-separated list of node numbers or "all".  parse_nodestring() can
    be told to be non-fatal for disconnected/deleted nodes so it can also
    be used in other contexts (yes, coming soon).  main() is changed to
    call this function.
    
    A new magic PNN value CTDB_MULTICAST is added and along with a
    corresponding option.nodes structure member (a talloc-ed array of
    PNNs).  This is also populated for "all" as well.
    
    control_status() has new function pretty_print_flags() factored out so
    pretty-printed flags can be used in error/debug messages.  New
    function is_partially_online() is also factored out - this simplifies
    some of the logic.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit faf25e8a2fdf80a016048e1f698a014ceb5e604f
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 6 10:38:04 2011 +0100

    libctdb: fix libctdb's traverse after changes in the core
    
    In 8281bb210858ed04992eacea7f6d02261e0fc1b1, I forgot to change
    this hunk back when hiding the wire changes done in commit
    ddc5da3a0df7701934404192a0a0aa659a806acb behind a new control
    CTDB_CONTROL_TRAVERSE_START_EXT.

commit f60de23e0a8307b5baaa9c4b8406b2b223487a48
Author: Michael Adam <obnox at samba.org>
Date:   Tue Dec 6 10:42:43 2011 +0100

    Revert "Fix the build that broke in 8281bb210858ed04992eacea7f6d02261e0fc1b1"
    
    This reverts commit 08e06176feab1ec244496e62a916fbb77817239f.
    
    I wanted to fix this differently, not using the extended traverse_start
    control...

commit 57fb074a65dc56168fc3813b79a5bab4b3727cf3
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 29 15:18:45 2011 +1100

    ctdb tool - move parsing of nodestring to where it is needed
    
    This puts the parsing and checking logic close together.  This makes
    it easy to change the parsing code.  Changed parsing code can now
    easily use both old client code and libctdb since both are guaranteed
    to be setup.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit bf1174ef699b06485b36ee8ae70412be0759e142
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 29 15:17:09 2011 +1100

    ctdb tool - replace fprintf with DEBUG
    
    It's the only one in the file.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f93ffeee7b9e9ca5dd116655bdc7f89fc987ed8a
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 29 14:38:39 2011 +1100

    ctdb tool - short circuit most of the logic in main for non-daemon commands
    
    This allows all that logic to be hacked a little more easily.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c4b72683eb046007fbc2e60b4a54bc91faf4cf7e
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 29 14:25:31 2011 +1100

    ctdb tool - commands that don't use the daemon can't take -n/--node
    
    It just doesn't make sense!
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 8527396b7290cfc8378779631e91d2ae09e2a106
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 29 14:20:26 2011 +1100

    ctdb tool - simplify main() by taking most code out of a loop
    
    Most of the action in main() happens inside a for loop and an if
    statement.  This causes 2 levels of extra indent for the code and
    makes it harder to read.
    
    Instead, the current body of the loop is put below the loop and its
    corresponding failure check.
    
    To see how small this change really is, view with "diff -w".  ;-)
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 0f15a2c65db8f8b4ac0d5ad2755b9aa3c2a8b279
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Dec 6 13:15:41 2011 +1100

    Return the peer_pid properly to the caller

commit 77dc0c7351071243d9096d3607d7499c82f46ec0
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Dec 6 13:11:13 2011 +1100

    LibCTDB: Add support for the 'get interfaces' control and update the ctdb tool to use this interface

commit 00212e5c7dd229e7f8975a165d5ab8875d4917cc
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Fri Nov 25 20:58:49 2011 +0100

    GNU/Hurd support
    
    CTDB has the following limitations on GNU Hurd:
    
    - The pid of a peer is not get from the socket [1]. As a consequence, the peer
      process is not killed when releasing IP [2].
    
    - Gratuitous arp are not yet supported [3]
    
    - network interfaces are always considered present [4]
    
    [1]: ctdb_get_peer_pid() in common/system_gnu.c
    [2]: release_kill_clients() in server/ctdb_takeover.c
    [3]: ctdb_sys_send_arp() in common/system_gnu.c
    [4]: ctdb_sys_check_iface_exists() in common/system_gnu.c

commit 2fd1067a075fe0e4b2a36d4ea18af139d03f17bf
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Nov 5 19:04:40 2011 +0100

    Move platform-specific code to common/system_*
    
    This removes #ifdef AIX and ease the addition of new platforms.

commit e6d1dd3ec4a078e5f32bc52a4a9e4b7d9a2e2d16
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Nov 5 17:26:40 2011 +0100

    Remove zero-length gnu_printf format string in ctdb_daemon.c (gcc warning)
    
    server/ctdbd.c: In function ‘main’:
    server/ctdb_daemon.c:943:7: warning: zero-length gnu_printf format string [-Wformat-zero-length]

commit 667b174d605646b53f4855e9aaf5f8ce4fdde532
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Fri Nov 25 21:12:43 2011 +0100

    Fix ctdb-crash-cleanup sysconfig handling

commit 08e06176feab1ec244496e62a916fbb77817239f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Dec 6 11:29:49 2011 +1100

    Fix the build that broke in 8281bb210858ed04992eacea7f6d02261e0fc1b1
    
    The traverse control has changed wireformat so update also libctdb to use the correct
    version of the wire structure and compile

commit 8281bb210858ed04992eacea7f6d02261e0fc1b1
Author: Michael Adam <obnox at samba.org>
Date:   Sat Dec 3 02:15:30 2011 +0100

    traverse: fix traversing with empty records by adding a new (internal) control CTDB_CONTROL_TRAVERSE_START_EXT
    
    By this, the original CTDB_CONTROL_TRAVERSE_START control that is
    used by e.g. samba's smbstatus, is not changed, so that samba
    continues working without code change.
    
    The  CTDB_CONTROL_TRAVERSE_START currently just adds the "withemptyrecords"
    flag to the state and processon on as CTDB_CONTROL_TRAVERSE_START_EXT.

commit 6489d0d9b8ec14c7764a1865618faf659800bcc3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 30 10:05:59 2011 +1100

    DOC: document the check_srvids debugging command

commit 36105b7283df729946e0a2ed61a696a14221efa6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 30 10:00:27 2011 +1100

    ctdb: use libctdb version of check-srvids call

commit c32604fd0016de0df14845a2f222edaa3c52a4fa
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 30 10:00:07 2011 +1100

    LibCTDB: add support for the check-srvids control

commit e9250775f5a1234f27a1a62caa902d7b86194285
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 30 09:50:12 2011 +1100

    check_srvids: remove the <pnn> from the commandline so that we only specify the list of <srvids>
    
    Specifying the pnn can be done via '-n <pnn>'

commit 92a391a81d0697956b96e96e39bb1b9d13e18097
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Oct 31 16:21:54 2011 +0100

    Add "ctdb check_srvid"

commit ad64ef2c40a2a12b37dbf39142e95c6781c2fc3b
Author: Volker Lendecke <vl at samba.org>
Date:   Mon Oct 31 13:29:13 2011 +0100

    Add CTDB_CONTROL_CHECK_SRVID

commit 86d956170d4806065f1470fc44710c085c57f17a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 30 08:59:03 2011 +1100

    DOC: describe the RecoverPDBBySeqNum tunable

commit 502150c764298a9fa8c4d8aa445bf7d85d4ee9dc
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Nov 28 13:56:30 2011 +1100

    Recover Persistent database DB by DB and not record by record
    
    Add a new tunable that changes the mode how persistent databases are recovered.
    RecoveryPDBBySeqNum
    
    When set to 1, persistent databases will be recovered in whole from the node which
    has the highest "__db_sequence_number__" record.
    This record is managed by samba for those databases where we do persistent writes and have
    inter-record relations.
    For these databases we do not want the usual "blend records from all nodes based
    on individual record RSN" but instead a mode where we pick one instance of the persistent database.
    
    If no node was found with a "__db_sequence_number__" record at all, we fail back to the original "recover records independently based on record RSN".
    Some persistent databases do not contain record interrelations and as such does not
    contain this special record at all.

commit 6e96a62494bbb2c7b0682ebf0c2115dd2f44f7af
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Nov 28 16:30:46 2011 +1100

    LibCTDB: add get persistent db seqnum control

commit 1fea9ef55a6a9d201ad1b49583451ac3e6b1c66d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Nov 28 10:41:17 2011 +1100

    DB Seqnum: must provide a ctdb_ltdb_header when calling ctdb_ltdb_fetch()

commit 3b6ef3442f0b62d65ec0f9be67a2b1dbf7e4af67
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:42:40 2011 +0100

    doc: commit generated ctdb.1 manpages after xml change

commit 5b527e6127a649fa80dcf9a7599b22bcb7cd3640
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:41:16 2011 +0100

    doc: document the "--print-recordflags" parameter to "ctdb"

commit 2d2ce07c51055d9400b22cd3c1fd682597cb921c
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 10:24:52 2011 +0100

    ctdb: add an option --print-recordflags to trigger printing record flags in catdb and dumpdbbackup
    
    This changes the default behaviour to not print record flags.

commit 0e26774f32d7ea0ce9d034c331730f5324f6b092
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:39:37 2011 +0100

    doc: commit generated ctdb.1 manpages after xml change

commit 998b7f4450026051867525d91c6d8dcbd2326ab5
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:39:08 2011 +0100

    doc: document the "--print-hash" parameter to "ctdb".

commit efc033c28ade97f9884794256d59a4553e052d5f
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 00:56:23 2011 +0100

    ctdb: add an option --print-hash to enable printing of record hashes when dumping dbs

commit 7f46671fc912c969c5c87e50b77e2e3a7d6c8904
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:37:29 2011 +0100

    doc: commit generated ctdb.1 manpages after xml change

commit 7e7d86ac9b05f8b67414200adc8ac87cfccf26cf
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:36:38 2011 +0100

    doc: document the "--print-lmaster" parameter to "ctdb"

commit 326f88ef622620cb9e0569c4497bc0e86124beaa
Author: Michael Adam <obnox at samba.org>
Date:   Mon Nov 28 17:36:03 2011 +0100

    ctdb: add an option --print-lmaster to enable printing of lmaster in "ctdb catdb"

commit 6f8e7480dadf15d1639355fdb61d5bef025a0325
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:35:02 2011 +0100

    doc: commit generated ctdb.1 manpages after xml change

commit 9e8045a5b0d8bd9ab2e0343b329de9f45b883531
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:31:11 2011 +0100

    doc: document the "--print-datasize" parameter to "ctdb"

commit dd866116041e71cbf91e7fd91edcc9501634051d
Author: Michael Adam <obnox at samba.org>
Date:   Mon Nov 28 17:19:03 2011 +0100

    ctdb: add an option --print-datasize to only print datasize instead of dumping data in db dumps
    
    Used in catdb, cattdb and dumpdbbackup.

commit 079f12dfc1edeac9748af15f652f2f1a6ed35548
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:32:25 2011 +0100

    doc: commit generated ctdb.1 manpages after xml change

commit 7b4663dd2454b798841815044f898dead9b734e2
Author: Michael Adam <obnox at samba.org>
Date:   Tue Nov 29 13:28:35 2011 +0100

    doc: document the --print-emptyrecords switch in the "ctdb" manpage.

commit 6ec68a2e667f66d2b194fe48cb75229a2777842e
Author: Michael Adam <obnox at samba.org>
Date:   Mon Nov 28 17:11:16 2011 +0100

    ctdb: add an option --print-emptyrecords to enable printing of empty records in dumping databases
    
    this option is used with the commands catdb, cattdb and dumpdbbackup.

commit 4ada4bfc4510886c5c7fcf49e09711b9d2dcb75d
Author: Michael Adam <obnox at samba.org>
Date:   Wed Dec 22 12:45:06 2010 +0100

    client: add version ctdb_traverse_ext() of ctdb_traverse() that can list empty records.

commit ddc5da3a0df7701934404192a0a0aa659a806acb
Author: Michael Adam <obnox at samba.org>
Date:   Sun Nov 27 23:16:33 2011 +0100

    traverse: add a flag to enable transferring empty records in cluster wide traverse
    
    This will be useful for also printing information about empty/deleted
    records in "ctdb catdb", e.g. for debugging vacuuming issues.

commit ccd67cf7f26713e695000d89d9ce8cfa78bfe00f
Author: Stefan Metzmacher <metze at samba.org>
Date:   Tue Jun 21 15:49:30 2011 +0200

    recoverd: try to become the recovery master if we have the capability, but the current master doesn't
    
    metze
    (cherry picked from commit 6ba8af28f8a8f79db65120a97d7157dcc5c7e083)
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit c19cb751077b78cf4b6e28a1e3746d4ffedbfd68
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Nov 29 14:38:02 2011 +1100

    This breaks the build since the recovery loop is different in master
    compared to old 1.0 branches
    This must have been mistakenly applied to master when you intended to push
    for a different branch i guess.
    
    Revert "recoverd: try to become the recovery master if we have the capability, but the current master doesn't"
    
    This reverts commit a97d417aba85e901540147a4dff4794249442939.

commit a97d417aba85e901540147a4dff4794249442939
Author: Stefan Metzmacher <metze at samba.org>
Date:   Tue Jun 21 15:49:30 2011 +0200

    recoverd: try to become the recovery master if we have the capability, but the current master doesn't
    
    metze

commit ef5b47d1183ee99c39ae63045a994d35255ac829
Author: Stefan Metzmacher <metze at samba.org>
Date:   Tue Jun 21 15:46:34 2011 +0200

    recoverd: let async_getcap_callback() also update ctdb->capabilities
    
    metze

commit a95b524e57b861416f65baef7a0235bf7e394cef
Author: Michael Adam <obnox at samba.org>
Date:   Sat Nov 26 01:06:13 2011 +0100

    vacuum: update (C) from vacuum rewrite

commit 6b9d308985ef2363c62fde6340ad37d56f6d7702
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:55:20 2011 +0100

    vacuum: write a big and up-to-date explaining comment for ctdb_vacuum_db()

commit 88ad1e75c686cd47aec18b0a8eb93c3b125f0e97
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:54:48 2011 +0100

    vacuum: fix a comment typo in vacuum_traverse()

commit 0f070a65a322bd6d3240ca96a9e5c3633ef647bf
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:35:05 2011 +0100

    vacuum: fix horrible indentation/whitespacing for ctdb_vacuum_event()

commit 39a5c0d8cca4ce5e8bc7055739a6377fb2dc36e0
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:34:15 2011 +0100

    vacuum: fix a comment typo in vacuum_traverse()

commit 4ae564e415560cde7e4cd4c5a1d7699f3d49621b
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:25:27 2011 +0100

    vacuum: fix an abundance of indentation white spaces in ctdb_vacuum_db()

commit 057023f5843c91d1cf8512f3675a01a119ea6157
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 13:23:23 2011 +0100

    vacuum: rename "size" to "freelist_size" for clarity

commit 66af6659eaffaeafbfa58779162aabe915d1c50f
Author: Michael Adam <obnox at samba.org>
Date:   Sat Sep 3 01:30:08 2011 +0200

    build: add target libctdb.so.0 and symlink libctdb.so

commit 7d4809ba343114e435830c7c1ab047dc4ce5ff0e
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 17:07:24 2011 +0100

    build: add socket_wrapper objects to test binaries

commit 8d65d7f399ba2e6a4162eed5e84a58c7cb024187
Author: Michael Adam <obnox at samba.org>
Date:   Thu Oct 20 14:17:45 2011 +0200

    build: add option --enable-socket-wrapper to build binaries with socket wrapper support

commit 99ce8a9de648babdfb1b1ea0219ee184c9718048
Author: Michael Adam <obnox at samba.org>
Date:   Thu Oct 20 14:17:25 2011 +0200

    add socket_wrapper from samba

commit 8dd377b6a4d188af086f9a5b41a1b48e44eda6f3
Author: Andreas Schneider <asn at redhat.com>
Date:   Fri Feb 19 12:44:07 2010 +0100

    libutil: Remove obsolete signal type cast.

commit 5e45a176031e973e97450296c28ddfb0a779e00b
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:29:44 2011 +0100

    build: add libreplace network checks to configure

commit 17bcffab19fdbb435b4745ff90c327342bbbf0f8
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:36:40 2011 +0100

    update lib/replace to current upstream version (samba master)

commit 11bebd5367102fcd02b17c44ac87bf50d4c68785
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 17:01:58 2011 +0100

    system_linux: correctly cast sockaddr_in6 to sockaddr for sendto() in ctdb_sys_send_tcp()

commit cc60df5a3edebfdf50fcd22ebfaad35736f90379
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:59:51 2011 +0100

    system_linux: correctly cast sockaddr_in to sockaddr in ctdb_sys_send_tcp()

commit 7420d9991e30575219c919ce2a8edce20ad3eb63
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:42:53 2011 +0100

    logging: properly cast sockaddr_in to sockaddr for sendto() in ctdb_syslog_log()

commit b283be8658d6229314b9265ed8659d2cac573073
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:41:59 2011 +0100

    logging: some whitespace cleanup in ctdb_syslog_log()

commit add2506caf3340118be05a21b05dd71b822b1516
Author: Michael Adam <obnox at samba.org>
Date:   Fri Nov 25 16:40:52 2011 +0100

    logging: properly cast sockaddr_in to sockaddr for bind in start_syslog_daemon()

commit 8959d15804bb5901356d7beec1ecddb1cabbca52
Merge: c4ff223096e7dae2e67692825a78c520d30211e0 88f88d86b0d08240f749fb721b8c401c2eeb1099
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Nov 18 15:01:13 2011 +1100

    Merge remote branch 'martins/eventscripts'

commit c4ff223096e7dae2e67692825a78c520d30211e0
Merge: 6a57c64c58c77fd9dc7c7a1583d402c3ce0313b1 3084220e2aac3664511969f10cad206e505150a0
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Nov 18 14:46:45 2011 +1100

    Merge remote branch 'martins/scriptstatus'

commit 6a57c64c58c77fd9dc7c7a1583d402c3ce0313b1
Merge: 0f6991010cf4e1f0dd9f39243bcc8fff5dcc0524 8c4a93e77c7d7d0cec6b2afd42c22475f1b5ccdc
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Nov 18 14:45:56 2011 +1100

    Merge remote branch 'martins/ctdb_control_oom'

commit 0f6991010cf4e1f0dd9f39243bcc8fff5dcc0524
Merge: 58a1e25e1c563ebede57eea2e8f4e2c5785d01bf d0e9e8554614bd49ffb9ec3509feaa0e80d0f65d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Nov 18 14:42:10 2011 +1100

    Merge remote branch 'martins/hashinclude'

commit 58a1e25e1c563ebede57eea2e8f4e2c5785d01bf
Merge: a15ec57c26d1bc82af85f74eebae0bd8abde3233 79638bdd884caaf899c1b41984a5f0cf638207b5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Nov 18 14:36:45 2011 +1100

    Merge remote branch 'martins/warnings'

commit a15ec57c26d1bc82af85f74eebae0bd8abde3233
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Nov 17 13:34:29 2011 +1100

    Eventscripts: Add special -ECANCELED status for monitor events that are cancelled
    
    When a monitor event is canceled by a higher priority script, make sure we return
    status -ECANCELED to the callback in ctdB_monitor.c
    Also treat -ECANCELED as a simple "try monitor event again" and skip modifying any HEALTHY/UNHEALTHY flags when this happens

commit 88f88d86b0d08240f749fb721b8c401c2eeb1099
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 17 16:47:00 2011 +1100

    Eventscripts - add facility to 10.interface to delete unmanaged IPs
    
    For a number of reasons (delip failure, admin stupidity, ...) an
    interface that hosts public addresses can also contain spurious,
    unmanaged addresses.
    
    Add functionality to 10.interfaces, controlled by new configuration
    variable CTDB_DELETE_UNEXPECTED_IPS, to delete these addresses when
    encountered as part of a monitor event.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit bfa0fe70db195413a6d7a98f46f7a1270aba678c
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Oct 14 15:55:12 2011 +1100

    Eventscripts - remove $0 from error messages in 40.fs_use
    
    The script name is now prepended to output by ctdbd.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c5ef0d1440f1d952784cc67946c414d149722d01
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Oct 14 15:52:12 2011 +1100

    Eventscripts: Make 40.fs_use use less processes and arguably clearer.
    
    * $fs can be parsed using shell prefix and suffix removal.
    
    * df output can be parsed with a single call to sed.
    
      Failure is indicated by empty output from sed, so we check for that
      as the error condition, changing the associated message
      appropriately.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 8c4a93e77c7d7d0cec6b2afd42c22475f1b5ccdc
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 16 15:25:14 2011 +1100

    Relax an out of memory message.
    
    The call to ctdb_transport_allocate() can fail for 2 reasons:
    
    * Unable to allocate memory.
    
    * The transport is down, perhaps because CTDB is shutting down.
    
    Either cause will be appropriately logged.
    
    The current use of CTDB_NO_MEMORY_VOID() prints an "out of memory"
    message regardless of what happened in ctdb_transport_allocate() and
    this could be misleading.
    
    Change this to print a more relaxed message.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit d0e9e8554614bd49ffb9ec3509feaa0e80d0f65d
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 14:41:47 2011 +1100

    Make some ctdb_takeover.c functions static
    
    These were intentionally not static so they could be linked to in unit
    test programs.  However, using the CCAN-style unit tests where
    relevant code is just included, this is no longer necessary.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 41869d42194b74db43a176a068e96e411007e5f2
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 14:15:52 2011 +1100

    Tests: change ctdb_takeover_tests.c to include ctdbd code
    
    Do this instead of linking to it.  This means that, after previous
    cleanups, we can fix ctdb_takeover.c to use static functions when
    appropriate and simply include all the code we need to run tests.
    
    To make this reusable in other tests, new file ctdbd_tests.c does all
    of the relevant including.  ctdb_takeover_tests.c just includes that
    file.
    
    Test objects built in this way can depend on new Makefile macro
    $(CTDB_TEST_C), which contains ctdbd_tests.c and everything it
    includes.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit d17efacb3aa6fac61d89f4c88ca17579341c335f
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 14:06:21 2011 +1100

    Rename ctdb_control_get_stat_history() local variable to avoid shadowing.
    
    Local variable stat generates a warning because it shadows a global
    declatation, presumably stat(2).  Rename it to s.
    
    This is in the context of wanting to run CCAN-style tests where most
    of the ctdbd code is just included in the test program.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 668358057c1e6b9bbad7209212f9135c5e6241a0
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 14:03:59 2011 +1100

    Rename ctdb_ctrl_getscriptstatus() parameter to avoid shadowing a global
    
    Rename parameter script_status to scripts to avoid shadowing a global
    function with the same name in eventscript.c.
    
    This is in the context of wanting to run CCAN-style tests where most
    of the ctdbd code is just included in the test program.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 82f6108bfbc7e48ca88650297c6a1c6ede0e1c9c
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 14:02:09 2011 +1100

    Rename ctdb_control_destructor() to ctdb_client_control_destructor()
    
    This avoids a name clash with a slightly different function in
    ctdb_control.c.
    
    This is in the context of wanting to run CCAN-style tests where most
    of the ctdbd code is just included in the test program.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 126cb0d369b2b1aed63801dc4ba0554399e8b7e4
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 13:56:46 2011 +1100

    Move some common functions to common/ctdb_ltdb.c
    
    Move identical copies of ctdb_null_func(), ctdb_fetch_func(),
    ctdb_fetch_with_header_func() from ctdb_client.c and
    ctdb_ltdb_server.c to somewhere common.
    
    This is in the context of wanting to run CCAN-style tests where most
    of the ctdbd code is just included in the test program.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit fdca12c25e6fce6206135b994dedf44265e4eb09
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Nov 11 12:41:24 2011 +1100

    Added some #ifndefs to stop files being included multiple times.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 79638bdd884caaf899c1b41984a5f0cf638207b5
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 15:12:25 2011 +1100

    Clean up warnings: rpcgen output contains unused variable.
    
    Grep it out in the Makefile.  This should be very obvious if the
    output changes and the grep breaks something.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit aaf1ddfc83cf2ede29288baf04a1aa1c69a5cab5
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 15:07:55 2011 +1100

    Fix lib/replace
    
    Warnings are generated when compiling strptime.c.  Why is it being
    compiled on Linux?  strptime(3) has been in glibc for 15 years!
    
    It turns out that some of the test fragments were being looked for in
    lib/replace/test/ and some in lib/replace/tests/.  In addition,
    test*/strptime.c was missing.
    
    Move the tests to lib/replace/test/ for consistency with upstream
    (Samba) and copy in test/strptime.c from Samba.  Tweak repdir.m4 to
    handle the directory rename.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ac9236e64bd0b61740cc787819a1222bc6a67d4a
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 14:16:42 2011 +1100

    Clean up warnings: popt sure does some strange things
    
    popt generates 4 compiler warnings with GCC 4.6.  There are 2
    different types:
    
    * 3 instances of:
    
        warning: cast discards ‘__attribute__((const))’ qualifier from pointer target type [-Wcast-qual]
    
      One occurs in the _free() hack that is used to try and avoid a
      compiler warning.  I guess GCC got smarter?  ;-)
    
      The other is where an array of constant strings is passed to
      execvp(2), which arguably has the wrong type, since it has no need
      to modify the strings.
    
      Both of these can be worked around by casting to intptr_t before
      casting to the desired argument type.
    
      In poptReadConfigFile() the variable file is declared to be a
      constant string.  However, it is then passed to read(2) straight
      away and an attempt is made to cast away the "const".  However, to
      protect the value the of file is assigned to (const char *) chptr
      before it is passed to any other functions, so this protects the
      value anyway.  I'm not sure exactly what the thinking was
      here... but there seems to be no use having file be constant.
    
    * 1 instance of:
    
        warning: variable ‘rc’ set but not used [-Wunused-but-set-variable]
    
      for the result of an execvp(2) call.  Recast the return type to
      void.  However, due to some #if-fu in the function, that can make rc
      unused in this function.  So we also need to wrap the declaration of
      rc in some corresponding #if-fu to make it disappear if not used.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 3084220e2aac3664511969f10cad206e505150a0
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 15:41:03 2011 +1100

    Fix ctdb scriptstatus -n all
    
    This didn't have auto_all set as true.  However, there's no special
    code to handle "-n all" and it just fails.  If auto_all works for
    status then it might as well work for scriptstatus.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 23c164926c5ec4da6d90a5bdcbf2d0100729b451
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 14:10:21 2011 +1100

    Clean up warnings: add -Wno-format-zero-length to CFLAGS
    
    There's an empty string passed to ctdb_event_script_callback() for
    eventscript option arguments in ctdb_start_daemon() and this generates
    a warning.
    
    This type of warning seems pointless so let's switch it off.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 080edee3d053d770466ebcc976eb1135c80feef8
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Nov 10 14:08:59 2011 +1100

    Clean up warnings: -Wunused-but-set-variable in tevent_signal.c
    
    Have sent this upstream to Samba.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c22e201be15e7d5b788c2f5f7916b553e0faaa2a
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 15:47:30 2011 +1100

    Clean up warnings: remove unused function dump_packet()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 79d31660c7e612f0290fd085203856ad9e70b26f
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 15:37:24 2011 +1100

    Clean up warnings: remove unused variable alen from scsi_io
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit d0244fec8d0dd2abd31a8677e2c2b254b030c47b
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 15:36:09 2011 +1100

    Clean up warnings: remove set but unused variable from rb_test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1932466c76de2b184c2a257120768ab8c9d6c12a
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 15:20:07 2011 +1100

    Clean up warnings: log some unchecked return codes from function calls
    
    In a few places functions are called, the return code is assigned into
    a variable but it is not checked.  This generates a compiler warning
    like this:
    
      warning: variable ‘ret’ set but not used [-Wunused-but-set-variable]
    
    Instead we remove the warning by checking the return code variable and
    log a warning at DEBUG level if the return code indicates an error.
    The justification is that there may have been a future intent to check
    the return code but it hasn't been important enough to follow-up.  If
    it matters, it will be logged for easy debugging.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f40101a615f8b9826a484e4697bfea6ee2b9ba88
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 14:55:07 2011 +1100

    Fix typo in ctdb_ltdb_store_server()
    
    The if statement uses ret but means to use ret2.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 3e4fa518f02db75e4e4a7f326a71df226913f8a8
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 14:45:01 2011 +1100

    Clean up warnings: remove changed_flags in monitor_helper
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 788cdbddbc902a5b076d23473450065b551d274d
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Nov 9 14:41:17 2011 +1100

    Clean up warnings: ‘tevent_loop_allow_nesting’ is deprecated
    
    CTDB wants to use these functions but Samba's tevent wants to mark
    them deprecated.  This adds a #define to shut up the warnings and sets
    it in CFLAGS.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 5de9ec2bdf8067406165bc470becdca87f458ae9
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 9 08:12:44 2011 +1100

    SRVID ranges: Change the ranges for SRVIDs to allow 8 bit prefixes
    
    Update the ranges used for SRVID allocation to allow 8 bit prefixes and thus
    56 user-defined bits.
    Define the defacto-use of the 0x00 prefix as a SRVID used to register a process id
    Upgrade SAMBA/iSCSI/NFS/TEST from a 32 bit prefix each ot a 8 bit prefix each
    for private use.

commit df1ac1cfd65f32743ca2588edfdad46ce5a4f03f
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Nov 5 16:39:55 2011 +0100

    Nagios plugin for CTDB
    
    This plugin is GPL2 or greater as generally found in Nagios.
    (this is obviously compatible with GPL3 or greater).

commit b6a9dacefd8f031677702f0fbf6b321beb4c4d54
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Oct 15 19:50:12 2011 +0200

    config can be in /etc/default/ instead of /etc/sysconfig/ (ctdb_gnostics part)

commit 1341329f6125d491b82c873f793af819e677f714
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Oct 15 19:42:45 2011 +0200

    config can be in /etc/default/ instead of /etc/sysconfig/
    
    ... on Debian system and derivated.
    
    (ctdb_diagnostics still hardcodes /etc/sysconfig/)

commit 56160eccb62178f645b017b1257677a1e854b2bc
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Thu Oct 13 20:26:05 2011 +0200

    config/functions: CTDB_VARDIR is /var/lib/ctdb on Debian-like systems

commit bda24b7f313289404b68ce8b9177fbd6b6a05dd7
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Nov 8 16:20:09 2011 +1100

    New version 1.12
    
    * Tue Nov 8 2011 : Version 1.12
     - Add new tunable : AllowClientDBAttach that can be used to stop
       client db access during maintenance operations
     - Updated logging for interfaces that are missing or dont exist but are
       configured to be used.
     - Add timeout argument to ctdb_cmdline_client
     - PDMA support
     - Initial support for 'readonly' delegations for ctdb databases
       This will when finished greatly improve performance for contended hot
       records that are used for just read-access.
     - New 'ctdb cattdb' command
     - Massive updates to tests and eventscripts
     - LCP2 ip allocation algorithm
     - Record Fetch collapse. Collapse multiple fetch-lock requests from cients
       to a single network fetch and defer other concurrent requests until the
       initial fetch completes, and then service the deferred calls locally.
       This will greatly improve performance for contended hot records
       where clients request write-locks.

commit 82d6946ad8b3348e8b9d3d971f24925ade02d1be
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Nov 8 06:55:46 2011 +1100

    Record Fetch Collapse: Collapse multiple fetch request into one single request.
    
    When multiple clients fetch the same record concurrently, send only one single
    fetch across the network and deferr all other fetches locally.
    This improves performance for hot records and reduces cpu load on ctdb.

commit 7c02d242af552aa732f5c70ea4eeefbc8a8542e2
Merge: d772743e9a4d4d40eb95cd8d5178708e77057b79 9a6f918bf6db79c1f8c53c0df23d47b73c117ea2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Nov 8 14:06:30 2011 +1100

    Merge remote branch 'martins/lcp2fix'

commit d772743e9a4d4d40eb95cd8d5178708e77057b79
Merge: f24e943eb7d8b86ce6b32ae37e3884ec4af0f7df 8ab0c63ad36cfbbb1e5fed46a1f4c47b1fdb581f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Nov 8 14:01:22 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit 8ab0c63ad36cfbbb1e5fed46a1f4c47b1fdb581f
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Nov 2 13:33:28 2011 +1100

    RB_TREE: Add mechanism to abort a traverse
    
    This patch changes the callback signature for traversal
    functions to allow a client to abort a traverse before it finishes.
    Updates to all callers and examples as well as rb-test tool.

commit f24e943eb7d8b86ce6b32ae37e3884ec4af0f7df
Author: Volker Lendecke <vl at samba.org>
Date:   Tue Nov 1 14:34:35 2011 +0100

    Fix some typos
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit 9a6f918bf6db79c1f8c53c0df23d47b73c117ea2
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 20:56:50 2011 +1100

    Tests - IP allocation - add some extra output due to recent fix
    
    A recent fix made the LCP2 algorithm try harder find a candidate
    source node.  The debug output shows extra output because it is trying
    harder so we accommodate that.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 574091d5aced5e87aefad52f8bc47aa75c25fbf6
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 20:52:57 2011 +1100

    LCP IP allocation algorithm - try harder to find a candidate source node
    
    There's a bug in LCP2.  Selecting the node with the highest imbalance
    doesn't always work.  Some nodes can have a high imbalance metric
    because they have a lot of IPs.  However, these nodes can be part of a
    group that is perfectly balanced.  Nodes in another group with less
    IPs might actually be imbalanced.
    
    Instead of just trying the source node with the highest imbalance this
    tries them in descending order of imbalance until it finds one where
    an IP can be moved to another node.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1d26e7cff6292fcbf63efc4628ffbb63b6f1f73c
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 19:59:29 2011 +1100

    Tests - IP allocation - new test that shows current LCP2 failure
    
    There are 4 IPs across 2 nodes and 2 addresses across 2 other nodes.
    If one of the latter nodes is unhealthy and then becomes healthy
    again, an IP isn't failed back.  This is because the nodes in the 1st
    group are >= unbalanced then the nodes in the 2nd group.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ed83604da82ebe566d6eb330ab7119e861e853c8
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 19:54:28 2011 +1100

    Tests - Allow some tests in ctdb_takover_tests to specify allowed nodes
    
    This mainly applies to ctdb_takeover_run_core when you might want to
    specify that some IPs can only be hosted by some nodes.
    
    Syntax on each line is now:
    
    IP current_pnn  allowed_pnns
    
    where allowed_pnns is a comma-separated list.
    
    allowed_pnns is optional.  If not specified then address can be
    assigned to all nodes that aren't included in an allowed_pnns list.
    Just think of it as all PNNs and that the behaviour is undefined when
    you only specify allowed_pnns for some IPs.  ;-)
    
    current_pnn is optional and defaults to -1.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit a97f19d1281eaf9874e64995a43524aeed315515
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 19:54:01 2011 +1100

    Tests - IP allocation tests - must export CTDB_LCP2.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 75718c5768b5bb5c0bcd7dd90e0327c6ed22a63d
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Nov 1 19:49:38 2011 +1100

    LCP IP allocation algorithm - new function lcp2_failback_candidate()
    
    There's a bug in LCP2.  Selecting the node with the highest imbalance
    doesn't always work.  Some nodes can have a high imbalance metric
    because they have a lot of IPs.  However, these nodes can be part of a
    group that is perfectly balanced.  Nodes in another group with less
    IPs might actually be imbalanced.
    
    Factor out the code from lcp2_failback() that actually takes a node
    and decides which address should be moved to which node.
    
    This is the first step in fixing the above bug.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 6dbbc86f36a1fd07d90ca947a35ad7b1f8554636
Merge: bdcaf531e07ad5a08841aab2f396849c554a0fa6 dcf150f8165316fefd53f9eecb1437195e631da6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 31 20:25:16 2011 +1100

    Merge remote branch 'ddiss/master_pmda_namespace'

commit bdcaf531e07ad5a08841aab2f396849c554a0fa6
Merge: 996aa01af9b402d2cd07c6942fdcc5ffc111ca85 18b6969dd1760521f839e5a928f1c7e9b3c34d4e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 16:04:55 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit 18b6969dd1760521f839e5a928f1c7e9b3c34d4e
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 15:50:44 2011 +1100

    Tests: convert test tool for fetching a readonly lock to libctdb

commit 996aa01af9b402d2cd07c6942fdcc5ffc111ca85
Merge: 0474a9244c6721f85955efcbdd630c0e5990e76c c930a44731d24b3bb51851864c7cdd0061483c0b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 13:51:46 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit c930a44731d24b3bb51851864c7cdd0061483c0b
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 13:38:32 2011 +1100

    libctdb: dont allow ctdb_writerecord() for readonly records

commit 0474a9244c6721f85955efcbdd630c0e5990e76c
Merge: 0452f212f2ddc1089dce83339bad0d73763f238f e6003e52617385f731ccf93b13d21d5403534a78
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 12:56:24 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit e6003e52617385f731ccf93b13d21d5403534a78
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 12:41:27 2011 +1100

    ReadOnly: If record does not exist, upgrade to write-lock
    
    If we attempt a readonly lock request for a record that do not exist (yet)
    in the local TDB, then upgrade the request to ask for a write lock and force a
    request for migrate the record onto the local node.
    This allows the "only request record on second local request for known contended records"
    heuristics to try to avoid creating readonly delegations unless we have good reason to
    assume it is a contended record.

commit 0452f212f2ddc1089dce83339bad0d73763f238f
Merge: 0a2ea7e1a1e034a9a17debff763084a0936b0515 fb50a45a21ff56480d76acd1c33c13c323cbf5e2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 12:10:38 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit fb50a45a21ff56480d76acd1c33c13c323cbf5e2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 11:55:46 2011 +1100

    ReadOnly: add readonly record lock requests to libctdb
    
    Initial readonly record support in libctdb.
    New records are not yet created by the library but extising records will be delegated as readonly records.
    This needs a bit more tests before we can drop the "old style" implementation of client
    code in client/ctdb_client.c

commit 8814d8bc159a5e368afaa236ac7d865165db04b2
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Oct 28 11:44:19 2011 +1100

    ReadOnly: fix bug writing incorrect amount of data in delegated record
    
    Fix bug when ctdbd updates the local copy of a delegated record to write the correct
    amount of data to the record.

commit 0a2ea7e1a1e034a9a17debff763084a0936b0515
Merge: 99de5bceb788ba56ebc052c05d29a834ba2496fa b44ded0e0771c87321b568588c08195222a026c3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 24 13:30:28 2011 +1100

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit b44ded0e0771c87321b568588c08195222a026c3
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 24 13:19:30 2011 +1100

    ReadOnly DOCS: update the docs for readonly delegations to remove the passage that records are written/updated by the client

commit bf1d429227dc4f5818263cc39401d0a22663cdba
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 24 13:14:26 2011 +1100

    ReadOnly: Dont update the record header from the calling client. While it is convenient since it avoids having to create a child process from the main dameon for writing the updated record it makes the cleitn more complex.
    
    Remove the code in the example client code that writes the record to the local tdb.
    Add code to the local ctdbd processing of replies to check if this reply contain a ro delegation and if so, spawn a child process to lock the tdb and then write the data.

commit db0fdc2281c4742113c92d697371c37815db35a0
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 24 12:21:55 2011 +1100

    Remove debug message

commit 99de5bceb788ba56ebc052c05d29a834ba2496fa
Merge: 02184bd5b9ab94cdf2b9ff92e56a509f92f9e4aa 2d6a800a789ca59fdab92422f98a4e05ba55f34c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Oct 18 11:54:55 2011 +1100

    Merge remote branch 'martins/tests'

commit 02184bd5b9ab94cdf2b9ff92e56a509f92f9e4aa
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Oct 7 14:59:46 2011 +1100

    onnode: unset EXTRA_SSH_OPTS when using fakessh
    
    This case was never tested and fakessh obviously won't handle the
    extra arguments.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c774e17c78f181833ca688aa48b42e7b90c822d8
Author: Martin Schwenke <martin at meltin.net>
Date:   Sun Sep 25 14:48:25 2011 +1000

    Web - add me as a developer.  :-)
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit dd9f82dbe2346c7143b0229e3611c402ee8c4025
Merge: 8c3b6427dbaade87e1a0f5590f0894c2e69b31a3 1198df0fd2c90cbca86d0499b43562fac4f25731
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Oct 17 15:08:39 2011 +1100

    Merge branch 'master' of ssh://git.samba.org/data/git/ctdb

commit 8c3b6427dbaade87e1a0f5590f0894c2e69b31a3
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Oct 7 15:00:42 2011 +1100

    Make ctdb_diagnostics more resilient to uncontactable nodes.
    
    Current behaviour is for onnode to timeout (for about 20s) for each
    attempted ssh to a down node.  With 40 or 50 invocations of onnode
    this takes a long time.
    
    2 changes to work around this:
    
    * If EXTRA_SSH_OPTS (which is passed to ssh by onnode) does not
      contains a ConnectTimeout= setting then add a setting for a 5 second
      timeout.
    
    * Filter the nodes before starting any diagnosis, taking out any "bad
      nodes" that are uncontactable via onnode.
    
      In the nodes summary at the beginning of the output, print
      information about any "bad nodes".
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1198df0fd2c90cbca86d0499b43562fac4f25731
Author: Michael Adam <obnox at samba.org>
Date:   Wed Oct 12 22:36:38 2011 +0200

    doc: update compiled manpages of ctdb.1 after change to xml

commit d9859540c2000864bc6c58be5afe19aa3b1064b2
Author: Gregor Beck <gbeck at sernet.de>
Date:   Tue Sep 27 11:41:29 2011 +0200

    ltdbtool: ignore empty (deleted) records per default.
    
    Add option -e to get the old behaviour and process empty records too.
    
    Signed-off-by: Michael Adam <obnox at samba.org>

commit 137299fadd0537612701c5902517857028236ed7
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Oct 12 20:11:28 2011 +1100

    Merge branches 'master' and 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit f4d5a5810f1a840a41c3541a3b822fce44d41e9a
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Wed Sep 21 21:49:34 2011 +0200

    Fix bashism in 40.fs_use
    
    Also, add -P to df, to avoid multiline on Linux when device name is long (this is the case with LVM)

commit dd9e508c947613cc7a5046a35c80fbeced408803
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Tue Jul 26 00:08:59 2011 +0200

    Typo deamon -> daemon
    
    Thanks to lintian

commit 8b9ac5cd8d867ff4866ac464c570d9293d03a91e
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Mon Jul 25 23:35:49 2011 +0200

    apache's service name is not always httpd
    
    Solution 2 of <https://bugzilla.samba.org/show_bug.cgi?id=8317>

commit e646142f4d28b5401235cd5edee325f7a29f8193
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Sat Mar 26 21:32:34 2011 +0100

    Less verbosity when there is no public addresses file
    
    This partialy reverts 81eff51, but still avoid spam.

commit 29474420606e802c83b53ef5f8e372c8eeac83c1
Author: Mathieu Parent <math.parent at gmail.com>
Date:   Wed Mar 23 22:20:15 2011 +0100

    Fix broken readdir
    
    Submited by Lorenzo De Liso on <http://bugs.debian.org/603155>
    (originaly named 99-fix-broken-readdir-test.diff). Also reported as
    <https://bugzilla.samba.org/show_bug.cgi?id=7032>.

commit 2d6a800a789ca59fdab92422f98a4e05ba55f34c
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Sep 2 13:20:50 2011 +1000

    Tests - simple integration - do a "ctdb sync" after restarting the cluster
    
    There looks to be a minor race where IPs haven't yet been reallocated
    but the cluster is healthy.  This should fix it.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 3922225ddff90281189ebdab77620b560d233e04
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Sep 15 17:09:36 2011 +1000

    Tests - IP allocation - initial unit tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1f1534435b9d5f464604e28a8cce2cd0a779ef68
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Sep 15 17:08:18 2011 +1000

    Tests - IP allocation - allow more interesting node states to be specified
    
    Node states on the command line are now comma-separated hex numbers,
    so all flag states can be expressed.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit b82524f240bf21769dd7624ca6026763d38b9396
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 22 15:13:26 2011 +1000

    One of the entry points to release an ip reset the pnn field before invoking the eventscript.
    this triggered a check for "only run the eventscript if we host the address" to trigger and shortcir=cuit calling the eventscript.
    
    An effect of this would be that 'ctdb delip' would remove the ip from ctdb, but fail to delete it from the interface.
    
    S1028798

commit b963f5e40b1e73a60363568da88557cad9e58a28
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Sep 21 15:41:28 2011 +1000

    Change the 'This Node' column of the machinereadable output for 'ctdb status -Y' to Y/N instead of 1/0
    
    1/0 is unsuitable since it can be useful to check 'if a column is "1" there is something wrong with that node'

commit 3d37be3e2bfb61ede824028aeebaa18ba304faae
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Wed Sep 21 11:42:19 2011 +1000

    when checking that the interfaces exist in ctdb_add_public_address()
    cant talloc off vnn since it is not yet initialized and might not always be NULL

commit dcf150f8165316fefd53f9eecb1437195e631da6
Author: David Disseldorp <ddiss at suse.de>
Date:   Wed Sep 14 12:54:04 2011 +0200

    pmda: Use upstream assigned PCP domain id
    
    Also use saner PMIDs in the pmns file.

commit 8a86ac72088ad9f64ca83218c704f84c9abe00b6
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 13 18:47:18 2011 +1000

    ReadOnly: revokechild_active is a list, not a context.
    
    Dont reset the pointer to NULL after deleting the first entry, loop deleting one entry
    at a time until they are all gone or we will leak some memory and possibly a process.

commit 71bf1260b1cac5ce83a92b4b944096b631ca87d8
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 13 18:44:13 2011 +1000

    Document 'cattdb' more clearly that it dumps the content of the local TDB and not the CTDB database

commit dbfd5abafbe66c20c413a4335b2cdbd9cc24052a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 13 18:41:34 2011 +1000

    fix some compiler warnings for the test tools

commit 94a5ce4e08e7891f07dbfe4c822ca4be5ab10965
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 13 18:38:20 2011 +1000

    ReadOnly: Rename the function ctdb_ltdb_fetch_readonly() to ctdb_ltdb_fetch_with_header() since this is what it actually does.

commit f6a47197dbb64cc7705fc564fa8dc78e958226c4
Author: Michael Adam <obnox at samba.org>
Date:   Mon Sep 12 15:04:46 2011 +0200

    Fix a typo in a message in ctdb backupdb.

commit 14656eaa01a8951693fa146b3d35258f7daaafd5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 12 09:44:06 2011 +1000

    Fix additional breakage from the merge for change in signature for ctdb_cmdline_client() and ctdb_attach()

commit 0fedef0ffba4178126eee9544c5e2db52f5db893
Merge: 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562 1a766382d7d774aa3444e07401575e51d3704dba
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 12 09:34:34 2011 +1000

    Merge branch 'master-readonly-records' into foo
    
    Conflicts:
    
    	Makefile.in
    	tools/ctdb.c

commit 3ce1d3d6c8b8fd3097b8efd2c75797ed7682a562
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 8 09:28:33 2011 +1000

    Drop loglevel for a tevent message from FATAL to ERROR
    
    CQ S1028400

commit 7bebfc7bad8f36e54003b8e25372fdaf54836e21
Merge: a3e8784bb107f7acd2a95913c1e6def52ce96105 2165a6f5117a71f9f97f46be9708fa34c037e17c
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 8 11:22:53 2011 +1000

    Merge remote branch 'ddiss/master_pmda_and_client_timeouts'

commit 2165a6f5117a71f9f97f46be9708fa34c037e17c
Author: David Disseldorp <ddiss at suse.de>
Date:   Fri Sep 2 17:34:19 2011 +0200

    pmda: handle struct latency_counter and add num_recoveries
    
    Rebase the CTDB PMDA from 1.0.114 to master:
    - Add tevent and ctdb_protocol includes
    - Handle latency metrics now stored under struct latency_counter
    - Add new metric for the num_recoveries counter

commit b63333fb81aadc451df47c0c3c038e6165f0eac2
Author: David Disseldorp <ddiss at suse.de>
Date:   Fri Sep 2 17:43:13 2011 +0200

    pmda: document in README how to add a new metric

commit 80ad2979804f5bba29020ace46e114a45fa6cb66
Author: David Disseldorp <ddiss at suse.de>
Date:   Fri Sep 2 13:26:04 2011 +0200

    pmda: Use CTDB_PATH macro for default socket path
    
    Also includes some code cleanup changes.

commit 137b498c75c55c966999cd788f12ed9010cfed3a
Author: David Disseldorp <ddiss at suse.de>
Date:   Mon Aug 8 11:15:06 2011 +0200

    pmda: Pull ctdb statistics once per fetch
    
    Currently ctdb statistics are pulled in the PMDA fetch callback, which
    results in a CTDB_CONTROL_STATISTICS call for each metric.
    Do this once per fetch instead, and have the per-metric callbacks pull
    data from the last counter cache.

commit 28df6fbf1273b8d095a2bc38dca6a6c35c5c31bd
Author: David Disseldorp <ddiss at suse.de>
Date:   Wed Aug 3 10:38:27 2011 +0200

    pmda: Attempt reconnects while ctdbd is unavailable
    
    Attempt to reconnect to ctdbd on fetch while it is unreachable.
    
    We must provide our own queue callback wrapper, as ctdb_client_read_cb()
    exits on transport failure.

commit fe7f69d6fc37661c2f1caa11de4ed3a7940d0a2f
Author: David Disseldorp <ddiss at suse.de>
Date:   Wed Jul 13 18:11:23 2011 +0200

    pmda: Initial ctdb pmda check-in
    
    The CTDB Performance Metrics Domain Agent (PMDA) is compiled when
    Performance Co-Pilot (PCP) header files are present.
    
    The CTDB PMDA periodically requests runtime counters from ctdbd (similar
    to ctdb statistics) and exports these values via PCP for capture and
    charting etc.

commit 3885141f37724b3dea61b45fbac38489ec356588
Author: David Disseldorp <ddiss at suse.de>
Date:   Wed Aug 24 11:34:56 2011 +0200

    client: flag local node in ctdb -Y status output
    
    Regular "ctdb status" output flags which node is the local node, do the
    same for machine readable output.

commit 9e178671560cb95121e11d718a76b05380ecd6c5
Author: David Disseldorp <ddiss at suse.de>
Date:   Mon Aug 8 16:35:56 2011 +0200

    client: add timeout argument to ctdb_attach
    
    Rather than using a fixed 2 second CTDB_CONTROL_GETDBPATH timeout.

commit 0634d0305f42f17048b6830733767e8dc300e11c
Author: David Disseldorp <ddiss at suse.de>
Date:   Mon Aug 8 14:09:46 2011 +0200

    client: add req timeout argument to ctdb_cmdline_client
    
    Following connection to the local ctdbd, ctdb_cmdline_client() currently
    issues a CTDB_CONTROL_GET_PNN request with a fixed 3 second timeout.
    
    The ctdb cmd line client accepts a --timelimit argument for specifying
    a per request timeout, pass this value through to ctdb_cmdline_client()
    for use as a CTDB_CONTROL_GET_PNN request timeout.

commit a3e8784bb107f7acd2a95913c1e6def52ce96105
Merge: 32320ee278d1eec9aef18b400c0ddaa445d4211e 9abf9c919a7e6789695490e2c3de56c21b63fa57
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 6 17:29:30 2011 +1000

    Merge branch 'master' of 10.1.1.27:/shared/ctdb/ctdb-master

commit 9abf9c919a7e6789695490e2c3de56c21b63fa57
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 6 17:02:19 2011 +1000

    Interface monitoring: add a event to trigger every 30 seconds to check that all interfaces referenced by the public address list actually exists.
    
    This will make it much easier to root-cause problems such as
    S1029023
    when an external application deleted the interface while it is still is in use by ctdbd.

commit cd33bbe6454b7b0316bdfffbd06c67b29779e873
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Sep 6 16:11:00 2011 +1000

    Check interfaces:  when reading the public addresses file to create the vnn list
    check that the actual interface exist, print error and fail startup if the interface does not exist.

commit 32320ee278d1eec9aef18b400c0ddaa445d4211e
Merge: ddfeecda87955b4e46777599f678e6926d37f4c4 9bded1832179fbadc8bc94c5328ffa6c45a6d2ab
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Mon Sep 5 16:42:49 2011 +1000

    Merge branch 'master' of ssh://git.samba.org/data/git/ctdb

commit ddfeecda87955b4e46777599f678e6926d37f4c4
Author: Michael Adam <obnox at samba.org>
Date:   Fri Sep 2 16:42:10 2011 +0200

    Add a tunable "AllowClientDBAttach" with default value 1.
    
    When set to 0, clients will not be able to attach to databases
    via the db_attach control. This might can be useful for maintenance
    where ctdb should be kept running but clients should not be able
    to modify databases.

commit 9bded1832179fbadc8bc94c5328ffa6c45a6d2ab
Author: Michael Adam <obnox at samba.org>
Date:   Fri Sep 2 16:23:22 2011 +0200

    tools/ctdb: fix a typo in a debug message

commit cdbc800a776f213cfd0ed543cee85b0d1714a186
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Sep 2 13:31:41 2011 +1000

    tests:ctdb_fetch_lock_once   we must link with @POPT_OBJ@ in case -lpopt is not available

commit 9118b9cf1634866266fbf0a9bf857a622f994a1a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Sep 2 13:21:33 2011 +1000

    tests: Link ctdb_fetch_lock_once with @TDB_OBJ@ not -ltdb so we dont create an unneeded dependency on having a standalone tdb library installed

commit ee9bf1565383bcca70950e9c20fe6b4d0181ce8d
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 1 12:30:00 2011 +1000

    New version 1.11

commit 71080adfe0828e15bf2f4b0bee7d52e06fff3449
Merge: 1bb814f012cb6ce436f8748b06602e8d6fae8822 999c68948da1492ac4d728c6bf79ad4921d9e840
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 1 08:55:23 2011 +1000

    Merge remote branch 'martins/tests'

commit 1bb814f012cb6ce436f8748b06602e8d6fae8822
Merge: a779d83a6213e2ba21621f7e090964428f89422d dda44d026e0c1b02feb02185b8c200a542be341a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Thu Sep 1 08:52:48 2011 +1000

    Merge remote branch 'martins/eventscripts'

commit 999c68948da1492ac4d728c6bf79ad4921d9e840
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Aug 31 17:29:14 2011 +1000

    Tests - eventscripts - add some multievent tests
    
    Running "./run_tests -s simple/* multievent/*" results in a stupid
    summary.  Will need to work on that...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f527ffb55b514b5cb4df3471a0e17ab71307e8a1
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Aug 31 17:27:05 2011 +1000

    Tests - eventscripts - allow "ctdb scriptstatus" output to be primed
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1c9dadf02ca649e3f09d9edd778bf13e001aa849
Merge: edc34d01a1ad83b1335c976593a006166b196569 dda44d026e0c1b02feb02185b8c200a542be341a
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Aug 31 15:38:55 2011 +1000

    Merge branch 'eventscripts' into tests

commit dda44d026e0c1b02feb02185b8c200a542be341a
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Aug 31 15:34:43 2011 +1000

    Eventscripts - enhance ctdb_replay_monitor_status()
    
    Print useful output and return a suitable exit code.
    
    The DISABLED and TIMEDOUT statuses use fake negative return codes, and
    these can't be faked from the shell.  So we map DISABLED to OK and
    TIMEDOUT to ERROR - this should avoid nearly all surprises.  When we
    do this we add a note to the beginning of the output.  The alternative
    is to "fix" ctdbd to use only codes that can actually be returned by
    shell scripts.  However, the reason for using negative codes is
    probably to distinguish them from real ones...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit edc34d01a1ad83b1335c976593a006166b196569
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 16:27:04 2011 +1000

    Tests - eventscripts - ctdb stub - implement scriptstatus, tweaks
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 698af79545986cf788686feb06c4677a10eec770
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 16:25:13 2011 +1000

    Tests - eventscripts - formatting tweak in simple_test()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 69e240e15488e228c0232fdc8804af778cb4e6fc
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 14:21:02 2011 +1000

    Tests - eventscripts - new function simple_test_event()
    
    Just like simple_test() but 1st arg is the event name.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 8f8dc5636436db28ce7d0edd706a4adf2624e71b
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 14:20:38 2011 +1000

    Tests - eventscripts - output format tweaks
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 80f14e590242b14829c6309ee908af0f2d33be1e
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 14:19:09 2011 +1000

    Tests - eventscripts - add extra filename format for multi-event tests
    
    $event may not be set so we need to test for it.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 0446eaa7798fd0ddf8d8f067c56d19892a13a317
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 14:16:28 2011 +1000

    Tests - eventscripts - add die() function and use it
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit c490024aba39cf94cbc9f8f41ecb3d336b1c82a8
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 13:35:43 2011 +1000

    Tests - eventscripts - remove undefined argument in some simple_test calls
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f7de037e3be2e9910bee644dd1e93bae4912a194
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 23 13:53:39 2011 +1000

    Tests - evenscripts - add symlink to ctdb.sysconfig
    
    Some of the tests expect the default to be
    
      CTDB_SERVICE_AUTOSTARTSTOP=yes
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 20885d592040eb3945524c558b593a1d50a57b43
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 23 13:52:42 2011 +1000

    Tests - eventscripts - Samba TCP port checking fixes
    
    Expect "ctdb checktcpport" to exit with 1 if not implemented.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit b231aa629b909a7dfd071236c7e730e3cc4a1a54
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:41:01 2011 +1000

    Tests - eventscripts - TCP port checking, no working checkers
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 0a08068f736efe56b4799e1f1f90539d257deb71
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:37:22 2011 +1000

    Tests - eventscripts - new Samba TCP port checking test - no nmap
    
    This one should fall back to netstat.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 47f2843b4db767bcc724d8f972e0c2a850d5826f
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:14:55 2011 +1000

    Tests - eventscripts - nmap and netstat stubs can pretend they weren't found
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 9e3e6ab3edf0f79d5973eb39ed843d3c369c665d
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:10:44 2011 +1000

    Tests - eventscripts - new Samba tests to test TCP port checking
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 3852c091f5e0ecba06b7131ca04b73a0cd632f23
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:06:16 2011 +1000

    Tests - eventscripts - add a new ctdb_not_implemented() function
    
    This allowed a single ctdb command to be defined as not-implemented
    and provided the associated output from the ctdb stub in
    $ctdb_not_implemented.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ef6131ecb068f7d8402cc782359509ba54b5adb0
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:00:52 2011 +1000

    Tests - eventscripts - new function setup_nmap_output_filter()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit a1d424045c53f5b148952eade6161af8248ed4df
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 16:07:36 2011 +1000

    Tests - eventscripts - add some output filtering
    
    This allows $OUT_FILTER to be set to one or more sed commands to
    filter eventscript output.  This allows expected output to be
    generalised.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit fcf40500c2158dfbe2390fad7bf0614cc575df14
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 15:59:20 2011 +1000

    Tests - eventscripts - ctdb default default level is 0.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1d02e3c6a7fb5ad5edb21298deba415ba9519f3d
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 15:58:23 2011 +1000

    Tests - eventscripts - add output for "not implemented" in ctdb stub
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 6ff9545a0fd58f0728b769c7b36d3b6ab7366321
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 22 15:56:57 2011 +1000

    Tests - eventscripts - add an nmap stub
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 59a1d54bcc15058f7b69e8596b32b26427a3ae57
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 16:51:08 2011 +1000

    Tests - eventscripts - stop timeouts waiting for backgrounded testparm
    
    Not sleeping at all speeds up the tests.  However, it can also cause
    timeouts.  Therefore, every time sleep is run we force the stub to do
    a short 0.1s sleep instead of whatever is specified.  This should be
    enough to avoid races.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 9c6fd7d21c99e605e20620c5c6b4e695c02af771
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 13:54:49 2011 +1000

    Tests - add getdebug and checktcpport to ctdb eventscripts stub
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit e9bdfd43af3ed28a7f69a36e3fb037f252a23869
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 13:54:20 2011 +1000

    Tests - add hooks to simulate ctdb commands that aren't implemented
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit aedff41ee1df0a1a573476844993fa8eda2f34bf
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 13:53:05 2011 +1000

    Tests - add eventscripts testing stub for sleep command.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit f19ba38e382034fba769145d0bfc81b2c2941563
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 11:35:38 2011 +1000

    Tests - Change variable used to fake listening TCP ports.
    
    Change from $FAKE_NETSTAT_TCP_LISTEN to $FAKE_TCP_LISTEN.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ea0db472c2ce138c723aa7e633b72ac9d8b8a6a3
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 11:24:56 2011 +1000

    Tests - new NFS share checking tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit fb3e123b097d9e36d281c3ab4f3e9a4799fa27bc
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 11:22:51 2011 +1000

    Tests - eventscripts exportfs stub should splits lines
    
    The real exportfs splits lines longer than 15 characters.  The stub
    should do that too...
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 08eeb788523afe19760b00f40339b702eb193712
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 11:21:33 2011 +1000

    Tests - add -T (trace) option to eventscripts run_test.sh
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit a779d83a6213e2ba21621f7e090964428f89422d
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 16:37:04 2011 +1000

    Tools - fix "ctdb scriptstatus -Y" output
    
    Lines in machine readable output always start with a colon (':').
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 5be904fb1fbd546618d25509b41ab836db62a70a
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 30 16:31:17 2011 +1000

    Eventscripts - use ctdb scriptstatus -Y when replaying status
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 220578bfd3507152b29ba4c28942f9d5e8733886
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon May 16 14:23:28 2011 +1000

    Eventscripts: add a synchronous synthetic reconfigure event.
    
    In the current code services can only be reconfigured asynchronously.
    This means that configuration file changes can be made, an asychronous
    reconfigure event can be triggered, and it always succeeds.  Some time
    later when a service is actually reconfigured then a failure may be
    seen
    
    This adds a synthetic reconfigure event that reconfigures a service
    synchronously so that any failure is reported on exit.
    
    ctdb_service_check_reconfigure() is essentially reimplemented.
    
    If a reconfigure event is in flight and an ipreallocated or monitor
    event occurs then any scheduled asynchronous reconfigure is deferred
    until the next monitor cycle.  This is to avoid reconfigures trampling
    on each other.  In this case a monitor event will also replay the
    previous status to try to avoid exposing any temporary instability.
    
    If a reconfigure event collides with another reconfigure event it will
    exit with status 2, indicating that the reconfigure should be retried.
    
    The reconfigure event is implemented using a subprocess to control the
    exit from the synthetic event.
    
    As before, if a monitor event causes a scheduled synchronous
    reconfigure to occure then it will replay the previous status for the
    service, given that a reconfigure can cause temporary instability.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 0564717fcc1e21688ae5dacbd437fd493bcb8853
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 23 16:43:53 2011 +1000

    Eventscripts - call ctdb_check_args() in 00.ctdb
    
    This is the first eventscript.  Sanity check as early as possible and
    everyone benefits.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit cc5bc1948dcbe8b8b25185260927b94a4b529174
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 23 16:36:19 2011 +1000

    Eventscripts - call ctdb_check_args() instead of doing hand checking
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 36de7e7fd6dfeed61ef9977b8d5b568f90a9707b
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Aug 23 16:32:34 2011 +1000

    Eventscripts - new function ctdb_check_args()
    
    Pass this "$@" to do common eventscript argument checking.
    
    For regular use putting this in 00.ctdb would be enough.  However, for
    developer testing it can be useful to call this in other eventscripts.
    For example, 10.interfaces and 13.per_ip_routing currently check these
    by hand.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit e8d9c0b251c84d6fdf6ea7d972e5f7d1d0222f9b
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 14:20:58 2011 +1000

    Eventscripts - ctdb_check_tcp_ports() bug fix.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 61000e38d6016e58f67e292393756d0bd5262ae5
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Aug 19 13:55:55 2011 +1000

    Eventscripts - fix debugging buglet in ctdb_check_tcp_ports_ctdb()
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit ef71b8290ae49117d7bcc7166598b77cb64cc8a0
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Aug 8 13:13:59 2011 +1000

    Eventscripts: New configuration variable CTDB_SERVICE_AUTOSTARTSTOP.
    
    Some of the current auto-start/stop logic is broken, particularly for
    Samba.  Fixing it is non-trivial.
    
    If $CTDB_SERVICE_AUTOSTARTSTOP is "yes" then auto-start/stop services
    when told to newly manage or no longer manage them.  This defaults to
    "yes".
    
    However, if using a canned configuration file that doesn't set
    $CTDB_SERVICE_AUTOSTARTSTOP then this stops the auto-start-stop logic
    from working.  Therefore, this works around CQ S1026685 - on the
    system in question another daemon controls service auto-start/stop and
    CTDB just gets in the way.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 1ccdae79b64b236fc27f4653606429d73c9c3595
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Aug 17 17:42:07 2011 +1000

    Eventscripts - in 60.nfs uniquify the share check directory list
    
    There are sites that have multiple entries for the same export.  This
    optimises the share check in this case.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 392363c04185f47a826fc6ed95038342be2150bf
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Fri Aug 26 09:39:25 2011 +1000

    Logging:  when we log stdout/stderr messages from eventscripts to the system log, prefix every line of output with the name of the eventscript.
    
    CQ S1028412

commit 750a31cf95c356a0ee071967537eb615dce35845
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 16:35:08 2011 +1000

    LibCTDB : update the ctdb tool to use libctdb to read the recovery mode

commit 81c14c8625a6d5670b8795a655d7a3f3318009e5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 16:32:38 2011 +1000

    LibCTDB : uptade the ctdb tool to use libctdb to query for the recmaster

commit 2cc48be3219b887b85649a14db311af0549041cf
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 16:15:34 2011 +1000

    LibCTDB : initialize ctdb->pnn to -1 when we create a new context
    but before we learn the pnn of the local node

commit cd1080726d7787b335ab4bfb64a7991237ab92f5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 15:13:40 2011 +1000

    LibCTDB : change the ctdb_fetch_lock_once test tool to use libctdb instead of the old client

commit b663f286ea8edd64c0405a1ab45b6ef1da501bf5
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 15:00:27 2011 +1000

    LibCTDB : add support for getrecmode

commit 8d89bfdfd1f55dfeb22890b8bb0f08f31d1fa91a
Author: Ronnie Sahlberg <ronniesahlberg at gmail.com>
Date:   Tue Aug 23 12:43:16 2011 +1000

    LibCTDB: add commands where an application can query how many commands are active
    and we have not yet received a reply to.
    Applications may use this command to query if it is "safe" to stop the event system and sleep
    or whether it should first wait for all activity to ctdb daemons to cease first.

-----------------------------------------------------------------------


-- 
CTDB repository


More information about the samba-cvs mailing list