[SCM] Samba Shared Repository - branch master updated

Amitay Isaacs amitay at samba.org
Mon Jul 25 23:22:07 UTC 2016


The branch, master has been updated
       via  3cb659e WHATSNEW: CTDB updates
       via  0e1ff5f ctdb-tests: Add database related tool tests
       via  6a01251 ctdb-tests: Implement database related controls in fake_ctdbd
       via  74989b1 ctdb-tools: Simplify "ctdb getdbseqnum" output format
       via  41d1347 ctdb-tests: Add "ctdb disable/enable" tool tests
       via  58f3bd3 ctdb-tests: Implement MODIFY_FLAGS control in fake_ctdbd
       via  ae07e3b ctdb-tests: Add "ctdb ban/unban" tool tests
       via  3d6c23e ctdb-tests: Implement SET_BAN_STATE control in fake_ctdbd
       via  bd17dae ctdb-tests: Add "ctdb stop/continue" tool tests
       via  8deb57b ctdb-tests: Implement TAKEOVER_RUN message in fake_ctdbd
       via  f7a9d59 ctdb-tests: Implement STOP_NODE and CONTINUE_NODE controls in fake_ctdbd
       via  8ef7168 ctdb-tests: Add "ctdb getreclock" tool tests
       via  0e8416d ctdb-tests: Implement GET_RECLOCK_FILE control in fake_ctdbd
       via  98f5172 ctdb-tests: Add "ctdb getmonmode/disablemonitor/enablemonitor" tool tests
       via  87bf242 ctdb-tests: Add monitoring related controls in fake_ctdbd
       via  7303d7b ctdb-tools: Simplify "ctdb getmonmode" output format
       via  c0d1e9c ctdb-tests: Add "ctdb setifacelink" tool tests
       via  435cf16 ctdb-tests: Implement SET_IFACE_LINK_STATE control in fake_ctdbd
       via  5d63d8d ctdb-tests: Add "ctdb listvars/getvar/setvar" tool tests
       via  be0db16 ctdb-tests: Implement controls related to tunables in fake_ctdbd
       via  abd5d7c ctdb-daemon: Use refactored tunable code
       via  f79be2e ctdb-common: Refactor tunable related functions
       via  37d321c ctdb-tests: Add "ctdb runstate" tool tests
       via  eb2544e ctdb-tests: Implement GET_RUNSTATE control in fake_ctdbd
       via  cf5d70c ctdb-tests: Add "ctdb setdebug" tool tests
       via  e7e3342 ctdb-tests: Implement GET_DEBUG and SET_DEBUG controls in fake_ctdbd
       via  6ee5136 ctdb-tool: Improve error output in "ctdb setdebug"
       via  b6623fe ctdb-tools: Simplify "ctdb getdebug" output format
       via  4af127c ctdb-tests: Add "ctdb pnn" tool test
       via  c3c106e ctdb-tools: Simplify "ctdb pnn" output format
       via  d6e1e69 ctdb-tests: Add "ctdb getpid" tool test
       via  accd1ca ctdb-tools: Simplify "ctdb getpid" output format
       via  032c9f1 ctdb-tests: Add "ctdb process-exists" tool test
       via  339da22 ctdb-tool: Simplify "ctdb process-exists"
       via  bde3f95 ctdb-tests: Add "ctdb uptime" tool test
       via  467356d ctdb-tool: Improve "ctdb uptime" output format
       via  55040c5 ctdb-tests: Add "ctdb recmaster" tool tests
       via  d30143d ctdb-tests: Add "ctdb ping" tool test
       via  48ed5f7 ctdb-tests: Add "ctdb ifaces" tool test
       via  e1aa2bb ctdb-tests: Fix "ctdb status" test
       via  1c44436 ctdb-tests: Drop a "ctdb reloadnodes" tool test
       via  1bb1b63 ctdb-tool: Fix a log message in "ctdb reloadnodes"
       via  fc7968d ctdb-tool: Exit with 1 on failure instead of -1
       via  02709c7 ctdb-tool: Drop arbitrary exit codes
       via  eafa12e ctdb-tests: Drop ctdb tool debug level to NOTICE
       via  2b2a7a9 ctdb-tool: Log a message at INFO level
       via  c77a50d ctdb-tests: Error on invalid destnode in fake_ctdbd
       via  046e566 ctdb-tests: Have fake_ctdbd log request IDs
       via  80f7fd1 ctdb-tests: Allow secondary tool commands to be tested
       via  752c70b ctdb-tests: Allow fake_ctdbd and tool to be run under valgrind in tool tests
       via  779a8d8 ctdb-tests: Clean up temporary files in tool tests
       via  c6f36b5 ctdb-tests: Require setup_ctdbd() call in tool tests
       via  2a85590 ctdb-doc: Document limitation of "ctdb reloadips"
       via  f427fe8 ctdb-doc: Update allowed debug levels to include "ERROR"
       via  99e41e8 ctdb-doc: Drop documentation for "ctdb xpnn"
       via  a66b83d ctdb-doc: Drop documentation for "ctdb setmonmode"
       via  fbce266 ctdb-build: Add missing dependency on samba-util
       via  9187f26 ctdb-locking: Remove ctdb_db_prio_iterator function
       via  b5ede50 ctdb-freeze: Remove ctdb_db_prio_frozen() function
       via  2852397 ctdb-locking: Remove API for locking databases with priority
       via  b81824e ctdb-locking: Remove API for locking all databases
       via  3927603 ctdb-daemon: Remove priority field from ctdb_db_context
       via  a7dd60e ctdb-protocol: Deprecate controls SET/GET_DB_PRIORITY
       via  7c8e933 ctdb-protocol: Drop marshalling code for set/get_db_priority
       via  b7233e3 ctdb-client: Remove code to set/get_db_priority from new client code
       via  bdb17fc ctdb-client: Remove client code for set/get_db_priority
       via  dc0bfcd ctdb-daemon: Remove implementation of SET/GET_DB_PRIORITY
       via  70d10ce ctdb-tool: Remove setdbprio and getdbprio commands
       via  2ac9d0a dbwrap_ctdb: Remove setting of database priority from samba
       via  6693fa5 ctdb-recoverd: Remove code that updates database priorities during recovery
       via  4a48b6a ctdb-protocol: Remove CTDB_NUM_DB_PRIORITIES
       via  8630cc3 ctdb-client: Remove ctdb_ctrl_freeze_priority() function
       via  5944a9b ctdb-freeze: Drop function thaw_priority()
       via  79b6b4b ctdb-daemon: Drop priorites from freeze/thaw code
       via  9338443 ctdb-recovery: Remove serial database recovery code
       via  a376ba8 ctdb-vacuum: Do not use freeze_mode outside freeze code
       via  f03d39d ctdb-client: Mark ctdb_ctrl_freeze_priority static
       via  c346204 ctdb-client: Drop unused functions ctdb_ctrl_freeze_send/recv
       via  0e0331a ctdb-client: Reimplement ctdb_ctrl_freeze_priority() using ctdb_control()
       via  5dedf66 ctdb-protocol: Drop marshalling code for THAW control
       via  0191305 ctdb-client: Remove function ctdb_ctrl_thaw() from new client API
       via  d5bc917 ctdb-client: Remove functions ctdb_ctrl_thaw_priority() and ctdb_ctrl_thaw()
       via  3c933b1 ctdb-tool: Remove ctdb thaw command
       via  d5e4a7a ctdb-locking: Drop code for Samba 3.x compatibility
       via  df9c801 ctdb-web: Remove ctdb webpages from source
      from  f5e7494 Wrap krb5_cc_copy_creds and krb5_cc_copy_cache

https://git.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 3cb659e1edbcad5293ee4a9eb9ab10d51a802a8c
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue May 31 15:50:25 2016 +1000

    WHATSNEW: CTDB updates
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>
    
    Autobuild-User(master): Amitay Isaacs <amitay at samba.org>
    Autobuild-Date(master): Tue Jul 26 01:21:57 CEST 2016 on sn-devel-144

commit 0e1ff5f156f9e5822775075fde1c62b320e69f7c
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 16:45:48 2016 +1000

    ctdb-tests: Add database related tool tests
    
    Pair-programmed-with: Amitay Isaacs <amitay at gmail.com>
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 6a01251b578721ed642d0196666e0487dcd4ef2c
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 16:45:01 2016 +1000

    ctdb-tests: Implement database related controls in fake_ctdbd
    
    Pair-programmed-with: Amitay Isaacs <amitay at gmail.com>
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 74989b1eec4f65229fe05e500baf5f6340a3b4f7
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 15:02:24 2016 +1000

    ctdb-tools: Simplify "ctdb getdbseqnum" output format
    
    Print the sequence number without preamble.  Print it in hex to match
    the logs.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 41d13470cb71ab835ce55e029a6f5ddf67ac35c8
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 14:53:04 2016 +1000

    ctdb-tests: Add "ctdb disable/enable" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 58f3bd38b6c882c96ca9f74b497346eeec10b3f1
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 14:52:13 2016 +1000

    ctdb-tests: Implement MODIFY_FLAGS control in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit ae07e3b8159d5dc02880463561a6412b9ea59b79
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 12:45:44 2016 +1000

    ctdb-tests: Add "ctdb ban/unban" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 3d6c23ef8e7ffe1d36ccb51790530db4e72147f8
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 12:44:48 2016 +1000

    ctdb-tests: Implement SET_BAN_STATE control in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit bd17dae3a0a66e2f6782dab667e5b0800ecdcab4
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Jul 20 21:37:50 2016 +1000

    ctdb-tests: Add "ctdb stop/continue" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 8deb57b855dff6b8f7df543f9dff41782f27f518
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Jul 20 21:35:18 2016 +1000

    ctdb-tests: Implement TAKEOVER_RUN message in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit f7a9d59f7272e7e7dd1f9f65a7e1d3447430de15
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Jul 20 21:34:05 2016 +1000

    ctdb-tests: Implement STOP_NODE and CONTINUE_NODE controls in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 8ef71685f40544220a813b4d3e4793de64dc5da7
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 20:10:34 2016 +1000

    ctdb-tests: Add "ctdb getreclock" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 0e8416d9a74dae23e2ec419fae98353125b92f65
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 20:08:19 2016 +1000

    ctdb-tests: Implement GET_RECLOCK_FILE control in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 98f51727c3d6fff420a62c50577083723719fb15
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 17:21:59 2016 +1000

    ctdb-tests: Add "ctdb getmonmode/disablemonitor/enablemonitor" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 87bf2424ebf7cc16c3a18ef47271ed4839433b46
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 17:53:16 2016 +1000

    ctdb-tests: Add monitoring related controls in fake_ctdbd
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 7303d7ba868450f3b978835a6f08b31a6f2c0ab3
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 15:40:00 2016 +1000

    ctdb-tools: Simplify "ctdb getmonmode" output format
    
    No preamble, just print keyword ENABLED or DISABLED.  Fix the
    documentation to reflect this and remove the text that is simply
    wrong.
    
    Also remove output from "ctdb enablemonitor" and "ctdb disablemonitor"
    on success.  This is just noise.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit c0d1e9c90a5b6706ce6a25ce686f58264e74176e
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 17:12:32 2016 +1000

    ctdb-tests: Add "ctdb setifacelink" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 435cf16d1898f9e815d78d858e6e95122200a148
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 17:45:31 2016 +1000

    ctdb-tests: Implement SET_IFACE_LINK_STATE control in fake_ctdbd
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 5d63d8d3b87669ac118df42f6da0462821fed848
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 16:51:16 2016 +1000

    ctdb-tests: Add "ctdb listvars/getvar/setvar" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit be0db16526bc55d852f3769b68c00764606ada32
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 17:30:07 2016 +1000

    ctdb-tests: Implement controls related to tunables in fake_ctdbd
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit abd5d7c8fd1239beb2074415ab5e4593c4d59e71
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 17:04:32 2016 +1000

    ctdb-daemon: Use refactored tunable code
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit f79be2ee4c15f8dd8e786aed251caca13c4a12cd
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 16:49:40 2016 +1000

    ctdb-common: Refactor tunable related functions
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 37d321cb0bb0916b7697dbf868bfc97dd33b8186
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 16:12:26 2016 +1000

    ctdb-tests: Add "ctdb runstate" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit eb2544e4061de29ebab0dcc578d84ce21dc56576
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 15:54:27 2016 +1000

    ctdb-tests: Implement GET_RUNSTATE control in fake_ctdbd
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit cf5d70c3cac94b38941279f113e30e7c2a15fe53
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 15:51:00 2016 +1000

    ctdb-tests: Add "ctdb setdebug" tool tests
    
    They also test "ctdb getdebug".
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit e7e33420e60f41ebececae30e4947896d4817987
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 7 15:45:43 2016 +1000

    ctdb-tests: Implement GET_DEBUG and SET_DEBUG controls in fake_ctdbd
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 6ee513628614b9537af5c51e7544be115a2bd544
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:50:21 2016 +1000

    ctdb-tool: Improve error output in "ctdb setdebug"
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit b6623feb9ccc4e2ddfd029ba657b609ed5bad7e8
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 15:22:05 2016 +1000

    ctdb-tools: Simplify "ctdb getdebug" output format
    
    Print just the debug level as a description, for both human and
    machine readable.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 4af127cc3709f59de952e345164dc0096ffbff2a
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 16:22:28 2016 +1000

    ctdb-tests: Add "ctdb pnn" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit c3c106e41f4c16a21a11785b47147f89985a8f15
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 16:19:23 2016 +1000

    ctdb-tools: Simplify "ctdb pnn" output format
    
    Just print the PNN.
    
    Update dependent code.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit d6e1e69765d532c8519fc82e3f50962e0d526c5b
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 15:56:41 2016 +1000

    ctdb-tests: Add "ctdb getpid" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit accd1ca19f0b438b0aaeccc364004124fc00f454
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 15:13:27 2016 +1000

    ctdb-tools: Simplify "ctdb getpid" output format
    
    No preamble, just the PID.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 032c9f10ac9b91a848be95d939782ae294da4974
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 16:22:52 2016 +1000

    ctdb-tests: Add "ctdb process-exists" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 339da2295bd7da512e91d9941a8c2892a743bf55
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:31:07 2016 +1000

    ctdb-tool: Simplify "ctdb process-exists"
    
    Drop the PNN part of the argument, improve output.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit bde3f958aa789e2c1152337ad5d077af1b061ff6
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 7 16:11:06 2016 +1000

    ctdb-tests: Add "ctdb uptime" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 467356d0f85b100b2526ea6033e0992d315d45c4
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:57:10 2016 +1000

    ctdb-tool: Improve "ctdb uptime" output format
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 55040c51030e3a34372745120a2f32de4633280f
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 15:59:30 2016 +1000

    ctdb-tests: Add "ctdb recmaster" tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit d30143d88eef12f58471d2c94379bfa170d0a940
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 7 15:55:48 2016 +1000

    ctdb-tests: Add "ctdb ping" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 48ed5f7fe529b1d1eb5ec5c036ec779be0486423
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 17:04:50 2016 +1000

    ctdb-tests: Add "ctdb ifaces" tool test
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit e1aa2bbb2d79b99ce9bcf8996280d2840b0c29ba
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:55:12 2016 +1000

    ctdb-tests: Fix "ctdb status" test
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 1c4443684aefda562cbd3a6c3c4d359e1411fd08
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Jul 25 10:43:41 2016 +1000

    ctdb-tests: Drop a "ctdb reloadnodes" tool test
    
    Replacement for ctdb tool will not support multiple debug levels.
    This test could be modified to use the default debug level but that
    would make it identical to reloadnodes test #19.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 1bb1b636b623823c950a937bbf3829be9545cc39
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:38:56 2016 +1000

    ctdb-tool: Fix a log message in "ctdb reloadnodes"
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit fc7968dbea0ace98fe3660ff6944c6e7d9efbc4a
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:08:25 2016 +1000

    ctdb-tool: Exit with 1 on failure instead of -1
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 02709c7aaa17c2537fbddae0d9de01bdec1716d9
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 16:58:38 2016 +1000

    ctdb-tool: Drop arbitrary exit codes
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit eafa12ec228f8bdc9e9924ae5b83d0e18dadab0d
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 17:14:52 2016 +1000

    ctdb-tests: Drop ctdb tool debug level to NOTICE
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 2b2a7a9269a7031cd8d4840af2b9d8e74101f38d
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 16:54:27 2016 +1000

    ctdb-tool: Log a message at INFO level
    
    This message was useful when debugging during development but it isn't
    generally useful.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit c77a50dcfba6a0983b5a0e21a9206f7605bb9e68
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 21 11:52:18 2016 +1000

    ctdb-tests: Error on invalid destnode in fake_ctdbd
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 046e5663ff8cba9008d0624d5c6112f95e6adb3d
Author: Martin Schwenke <martin at meltin.net>
Date:   Wed Jul 20 21:33:34 2016 +1000

    ctdb-tests: Have fake_ctdbd log request IDs
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 80f7fd1ce7cc71647071e28449a3f7ca1f401deb
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 15 15:22:19 2016 +1000

    ctdb-tests: Allow secondary tool commands to be tested
    
    New function simple_test_other() allows other tool commands to be
    tested along with the main command.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 752c70b0217217355b9fc187eebc4dd4e6b4c6c0
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 20:10:10 2016 +1000

    ctdb-tests: Allow fake_ctdbd and tool to be run under valgrind in tool tests
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 779a8d8dc3b427dbb1fb0772d504b35c6198b98f
Author: Martin Schwenke <martin at meltin.net>
Date:   Tue Jul 19 15:50:33 2016 +1000

    ctdb-tests: Clean up temporary files in tool tests
    
    If CTDB_TESTS_VAR isn't cleaned up between runs then this can result
    in a lot of accumulated temporary files, so clean up the temporary
    files.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit c6f36b5b29e05c6dd78abdd122958bcbc208c80c
Author: Martin Schwenke <martin at meltin.net>
Date:   Thu Jul 7 16:22:59 2016 +1000

    ctdb-tests: Require setup_ctdbd() call in tool tests
    
    This makes the ctdbd setup explicit and allows multiple calls to
    simple_test() in the same test without ugly re-initialisation.
    
    While here drop any unneeded ctdbd initialisation, such as VNNMAP and
    IFACES.  These have often been needlessly present, cluttering the
    tests.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 2a855903de1a42bd4e806688ed9e4497e1728cfa
Author: Martin Schwenke <martin at meltin.net>
Date:   Mon Jul 4 14:36:31 2016 +1000

    ctdb-doc: Document limitation of "ctdb reloadips"
    
    This limitation can be removed with a reasonable amount of effort.  It
    probably isn't worth doing until the public IP address configuration
    is stored in a cluster-wide database.  That seems like the right time
    to change the API to handle the details that
    CTDB_CONTROL_GET_PUBLIC_IPS doesn't currently retrieve.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit f427fe81028f69c5be7931075c926a5f685df78c
Author: Martin Schwenke <martin at meltin.net>
Date:   Sat Jul 23 06:36:32 2016 +1000

    ctdb-doc: Update allowed debug levels to include "ERROR"
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit 99e41e8df3429ff84cd66d1844a1a110c93a7adf
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 20:24:12 2016 +1000

    ctdb-doc: Drop documentation for "ctdb xpnn"
    
    This command was deleted some time ago.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit a66b83d44bad6a1a1a40d6997a9570c9b88232c8
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri Jul 22 15:32:39 2016 +1000

    ctdb-doc: Drop documentation for "ctdb setmonmode"
    
    The actual command was removed nearly 10 years ago.
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>
    Reviewed-by: Amitay Isaacs <amitay at gmail.com>

commit fbce266c2393f79a737d51f6315dabbbe9c2a4bb
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Apr 22 17:30:31 2016 +1000

    ctdb-build: Add missing dependency on samba-util
    
    reqid.c uses idr, which requires samba-util.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 9187f26f99f02ceaf26cf8b051a0c1382a45fe84
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:53:34 2016 +1000

    ctdb-locking: Remove ctdb_db_prio_iterator function
    
    It is not used anymore.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit b5ede509ab9bd5da55ad1f43aad157ce02d670ba
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:56:15 2016 +1000

    ctdb-freeze: Remove ctdb_db_prio_frozen() function
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 28523976913bd92b022f623c7fdb1d3b4901f2ac
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:47:57 2016 +1000

    ctdb-locking: Remove API for locking databases with priority
    
    This is not used anymore.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit b81824e10d779977288181638fb7879444579b66
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:42:13 2016 +1000

    ctdb-locking: Remove API for locking all databases
    
    This has never been used.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 3927603ca2faa12b729db7f4a5eb43360ce9cdab
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:49:14 2016 +1000

    ctdb-daemon: Remove priority field from ctdb_db_context
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit a7dd60e38c1efed6456b68ef435c1d3e9687eae5
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 13:35:12 2016 +1000

    ctdb-protocol: Deprecate controls SET/GET_DB_PRIORITY
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 7c8e9331f696d3d94881363c258a742282ad3ea3
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 13:34:44 2016 +1000

    ctdb-protocol: Drop marshalling code for set/get_db_priority
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit b7233e3be2fddb29ccbfa695670d384a5584285f
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:37:40 2016 +1000

    ctdb-client: Remove code to set/get_db_priority from new client code
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit bdb17fc8a061676f3faedbec5cfb73505a68e92b
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:36:18 2016 +1000

    ctdb-client: Remove client code for set/get_db_priority
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit dc0bfcd7da32cc32162c46e58e03ad7501d01342
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:34:03 2016 +1000

    ctdb-daemon: Remove implementation of SET/GET_DB_PRIORITY
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 70d10cea7b6cf6e3583d5d3853f3f115d1a398de
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:25:15 2016 +1000

    ctdb-tool: Remove setdbprio and getdbprio commands
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 2ac9d0afa660930fe74a42153abf508a18040838
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:31:21 2016 +1000

    dbwrap_ctdb: Remove setting of database priority from samba
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 6693fa59dc33d8e0a19f537695dc071c5a16a761
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:28:19 2016 +1000

    ctdb-recoverd: Remove code that updates database priorities during recovery
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 4a48b6a9bbac594ce5c81f062519f84d77830030
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 14:44:44 2016 +1000

    ctdb-protocol: Remove CTDB_NUM_DB_PRIORITIES
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 8630cc37351ad9049f2d2665525fc2ab5029b222
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri Jul 22 15:00:14 2016 +1000

    ctdb-client: Remove ctdb_ctrl_freeze_priority() function
    
    ctdb_ctrl_freeze() now only needs to send a single control since there
    are no database priorities any more.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 5944a9bbcb17f345c56bd0dd170abf6dda03c83a
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 13:16:53 2016 +1000

    ctdb-freeze: Drop function thaw_priority()
    
    There are no database priorities anymore, so the function name does
    not make any sense.  Call the code in thaw_priority() directly from
    ctdb_control_thaw().
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 79b6b4b621eea131472ab645e9ada7cc2f732124
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:32:16 2016 +1000

    ctdb-daemon: Drop priorites from freeze/thaw code
    
    Parallel database recovery freezes databases in parallel and irrespective
    of database priority.  So drop priority from freeze/thaw code.
    Database priority will be dropped completely soon.
    
    Now FREEZE and THAW controls operate on all the databases.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 9338443a92f6310bca64fefdd1a174e29e5146f5
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:06:37 2016 +1000

    ctdb-recovery: Remove serial database recovery code
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit a376ba8b3496823f11d1a7d3720e6c7a5ed4c0f8
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:30:26 2016 +1000

    ctdb-vacuum: Do not use freeze_mode outside freeze code
    
    If the database is not frozen and recovery mode is not active, then
    vacuuming can continue.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit f03d39df5a1d5fa94fe9e92b11c45c196037a454
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:07:18 2016 +1000

    ctdb-client: Mark ctdb_ctrl_freeze_priority static
    
    It is not used outside ctdb_client.c
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit c346204f35e6df54c059002f055fc75bbc2a1bf5
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 12:53:56 2016 +1000

    ctdb-client: Drop unused functions ctdb_ctrl_freeze_send/recv
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 0e0331af855efaf57e2e8339db15e9f5d13f8bff
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 12:47:16 2016 +1000

    ctdb-client: Reimplement ctdb_ctrl_freeze_priority() using ctdb_control()
    
    This makes it easier to drop unused async implementation of the same.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 5dedf66436f3b38e7d4ee98ba4c8f3b88e95e80f
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu Jul 21 14:20:48 2016 +1000

    ctdb-protocol: Drop marshalling code for THAW control
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 01913050fc0132f8a4399ce0c646381fa511c962
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed Jul 20 17:44:46 2016 +1000

    ctdb-client: Remove function ctdb_ctrl_thaw() from new client API
    
    This function is not used anywhere.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit d5bc917e1a2469737ca6df2a54757a7c042272c4
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:18:31 2016 +1000

    ctdb-client: Remove functions ctdb_ctrl_thaw_priority() and ctdb_ctrl_thaw()
    
    These functions are not used anywhere.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit 3c933b14366658074499116e8ef682c230cbe1fe
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 17:17:04 2016 +1000

    ctdb-tool: Remove ctdb thaw command
    
    Databases should never be thawed manually.  A database recovery will
    correctly thaw all databases.  Otherwise there is a bug in the database
    recovery.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit d5e4a7abdcb624f8eb2f8a404a4ce627044182e5
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Tue Jul 19 16:50:43 2016 +1000

    ctdb-locking: Drop code for Samba 3.x compatibility
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

commit df9c801c048a0013b2e7b68ebbacb8989d1f43d1
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed Jul 13 16:22:53 2016 +1000

    ctdb-web: Remove ctdb webpages from source
    
    CTDB web pages are now tracked in a separate repo.  Most of the pages
    are outdated and will be removed soon with links to the wiki.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>
    Reviewed-by: Martin Schwenke <martin at meltin.net>

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

Summary of changes:
 WHATSNEW.txt                                       |   70 ++
 ctdb/client/client.h                               |   15 -
 ctdb/client/client_control_sync.c                  |   91 --
 ctdb/client/ctdb_client.c                          |  128 +--
 ctdb/common/tunable.c                              |  276 +++++
 ctdb/common/tunable.h                              |   32 +
 ctdb/config/functions                              |    2 +-
 ctdb/doc/ctdb.1.xml                                |   50 +-
 ctdb/include/ctdb_client.h                         |   22 -
 ctdb/include/ctdb_private.h                        |   29 +-
 ctdb/protocol/protocol.h                           |   12 +-
 ctdb/protocol/protocol_api.h                       |   13 -
 ctdb/protocol/protocol_client.c                    |   67 --
 ctdb/protocol/protocol_control.c                   |   32 -
 ctdb/protocol/protocol_private.h                   |    5 -
 ctdb/protocol/protocol_types.c                     |   28 -
 ctdb/server/ctdb_control.c                         |   17 +-
 ctdb/server/ctdb_freeze.c                          |  164 +--
 ctdb/server/ctdb_lock.c                            |  264 +----
 ctdb/server/ctdb_ltdb_server.c                     |   35 -
 ctdb/server/ctdb_recover.c                         |    7 +-
 ctdb/server/ctdb_recoverd.c                        |  836 +--------------
 ctdb/server/ctdb_tunables.c                        |  126 +--
 ctdb/server/ctdb_vacuum.c                          |    8 +-
 ctdb/tests/eventscripts/stubs/ctdb                 |    7 +-
 ctdb/tests/scripts/integration.bash                |    2 +-
 ctdb/tests/simple/06_ctdb_getpid.sh                |    3 +-
 ctdb/tests/simple/07_ctdb_process_exists.sh        |    4 +-
 ctdb/tests/simple/12_ctdb_getdebug.sh              |   14 +-
 ctdb/tests/simple/13_ctdb_setdebug.sh              |    5 +-
 ctdb/tests/src/fake_ctdbd.c                        | 1122 +++++++++++++++++++-
 ctdb/tests/src/protocol_client_test.c              |   44 -
 ctdb/tests/src/protocol_types_test.c               |   16 -
 ctdb/tests/tool/ctdb.ban.001.sh                    |   35 +
 ctdb/tests/tool/ctdb.ban.002.sh                    |   23 +
 ctdb/tests/tool/ctdb.ban.003.sh                    |   23 +
 ctdb/tests/tool/ctdb.continue.001.sh               |   23 +
 ctdb/tests/tool/ctdb.continue.002.sh               |   23 +
 ctdb/tests/tool/ctdb.continue.003.sh               |   24 +
 ctdb/tests/tool/ctdb.disable.001.sh                |   23 +
 ctdb/tests/tool/ctdb.disable.002.sh                |   23 +
 ctdb/tests/tool/ctdb.disable.003.sh                |   23 +
 ctdb/tests/tool/ctdb.disable.004.sh                |   15 +
 ctdb/tests/tool/ctdb.disablemonitor.001.sh         |   26 +
 ctdb/tests/tool/ctdb.enable.001.sh                 |   23 +
 ctdb/tests/tool/ctdb.enable.002.sh                 |   23 +
 ctdb/tests/tool/ctdb.enable.003.sh                 |   23 +
 ctdb/tests/tool/ctdb.enablemonitor.001.sh          |   32 +
 ctdb/tests/tool/ctdb.getcapabilities.001.sh        |   23 +-
 ctdb/tests/tool/ctdb.getcapabilities.002.sh        |   23 +-
 ctdb/tests/tool/ctdb.getcapabilities.003.sh        |   29 +-
 ctdb/tests/tool/ctdb.getcapabilities.004.sh        |   32 +-
 ctdb/tests/tool/ctdb.getdbmap.001.sh               |   30 +
 ctdb/tests/tool/ctdb.getdbseqnum.001.sh            |   31 +
 ctdb/tests/tool/ctdb.getdbseqnum.002.sh            |   28 +
 ctdb/tests/tool/ctdb.getdbstatus.001.sh            |   77 ++
 ctdb/tests/tool/ctdb.getdbstatus.002.sh            |   77 ++
 ctdb/tests/tool/ctdb.getmonmode.001.sh             |   15 +
 ctdb/tests/tool/ctdb.getpid.001.sh                 |   17 +
 ctdb/tests/tool/ctdb.getreclock.001.sh             |   16 +
 ctdb/tests/tool/ctdb.getreclock.002.sh             |   21 +
 ctdb/tests/tool/ctdb.getvar.001.sh                 |   35 +
 ctdb/tests/tool/ctdb.getvar.002.sh                 |   23 +
 ...b.getcapabilities.001.sh => ctdb.ifaces.001.sh} |   20 +-
 ctdb/tests/tool/ctdb.listnodes.001.sh              |    5 +-
 ctdb/tests/tool/ctdb.listnodes.002.sh              |    3 +-
 ctdb/tests/tool/ctdb.listvars.001.sh               |   21 +
 ctdb/tests/tool/ctdb.lvs.001.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.002.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.003.sh                    |   26 +-
 ctdb/tests/tool/ctdb.lvs.004.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.005.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.006.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.007.sh                    |   27 +-
 ctdb/tests/tool/ctdb.lvs.008.sh                    |   31 +-
 ctdb/tests/tool/ctdb.natgw.001.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.002.sh                  |   28 +-
 ctdb/tests/tool/ctdb.natgw.003.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.004.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.005.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.006.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.007.sh                  |   27 +-
 ctdb/tests/tool/ctdb.natgw.008.sh                  |   27 +-
 ctdb/tests/tool/ctdb.nodestatus.001.sh             |   22 +-
 ctdb/tests/tool/ctdb.nodestatus.002.sh             |   22 +-
 ctdb/tests/tool/ctdb.ping.001.sh                   |   24 +
 ctdb/tests/tool/ctdb.pnn.001.sh                    |   15 +
 ctdb/tests/tool/ctdb.process-exists.001.sh         |   22 +
 ctdb/tests/tool/ctdb.recmaster.001.sh              |   16 +
 ctdb/tests/tool/ctdb.recmaster.002.sh              |   16 +
 ctdb/tests/tool/ctdb.recover.001.sh                |    8 +-
 ctdb/tests/tool/ctdb.reloadnodes.001.sh            |   19 +-
 ctdb/tests/tool/ctdb.reloadnodes.002.sh            |   16 +-
 ctdb/tests/tool/ctdb.reloadnodes.003.sh            |   20 +-
 ctdb/tests/tool/ctdb.reloadnodes.011.sh            |   22 +-
 ctdb/tests/tool/ctdb.reloadnodes.012.sh            |   19 +-
 ctdb/tests/tool/ctdb.reloadnodes.013.sh            |   22 +-
 ctdb/tests/tool/ctdb.reloadnodes.014.sh            |   19 +-
 ctdb/tests/tool/ctdb.reloadnodes.015.sh            |   22 +-
 ctdb/tests/tool/ctdb.reloadnodes.016.sh            |   19 +-
 ctdb/tests/tool/ctdb.reloadnodes.017.sh            |   22 +-
 ctdb/tests/tool/ctdb.reloadnodes.018.sh            |   26 +-
 ctdb/tests/tool/ctdb.reloadnodes.019.sh            |   23 +-
 ctdb/tests/tool/ctdb.reloadnodes.020.sh            |   23 +-
 ctdb/tests/tool/ctdb.reloadnodes.021.sh            |   22 +-
 ctdb/tests/tool/ctdb.reloadnodes.022.sh            |   29 -
 ctdb/tests/tool/ctdb.reloadnodes.023.sh            |   19 +-
 ctdb/tests/tool/ctdb.reloadnodes.024.sh            |   18 +-
 ctdb/tests/tool/ctdb.runstate.001.sh               |   15 +
 ctdb/tests/tool/ctdb.runstate.002.sh               |   15 +
 ctdb/tests/tool/ctdb.runstate.003.sh               |   17 +
 ctdb/tests/tool/ctdb.runstate.004.sh               |   15 +
 ctdb/tests/tool/ctdb.runstate.005.sh               |   15 +
 ctdb/tests/tool/ctdb.setdbreadonly.001.sh          |   33 +
 ctdb/tests/tool/ctdb.setdbreadonly.002.sh          |   33 +
 ctdb/tests/tool/ctdb.setdbreadonly.003.sh          |   42 +
 ctdb/tests/tool/ctdb.setdbsticky.001.sh            |   33 +
 ctdb/tests/tool/ctdb.setdbsticky.003.sh            |   42 +
 ctdb/tests/tool/ctdb.setdebug.001.sh               |   23 +
 ctdb/tests/tool/ctdb.setdebug.002.sh               |   23 +
 ctdb/tests/tool/ctdb.setdebug.003.sh               |   32 +
 ctdb/tests/tool/ctdb.setifacelink.001.sh           |   76 ++
 ctdb/tests/tool/ctdb.setifacelink.002.sh           |   29 +
 ctdb/tests/tool/ctdb.setvar.001.sh                 |   49 +
 ctdb/tests/tool/ctdb.setvar.002.sh                 |   23 +
 ctdb/tests/tool/ctdb.status.001.sh                 |   32 +-
 ctdb/tests/tool/ctdb.status.002.sh                 |   32 +-
 ctdb/tests/tool/ctdb.stop.001.sh                   |   23 +
 ctdb/tests/tool/ctdb.stop.002.sh                   |   24 +
 ctdb/tests/tool/ctdb.stop.003.sh                   |   24 +
 ctdb/tests/tool/ctdb.unban.001.sh                  |   23 +
 ctdb/tests/tool/ctdb.unban.002.sh                  |   34 +
 ctdb/tests/tool/ctdb.unban.003.sh                  |   23 +
 ctdb/tests/tool/ctdb.uptime.001.sh                 |   36 +
 ctdb/tests/tool/scripts/local.sh                   |   35 +-
 ctdb/tools/ctdb.c                                  |  152 +--
 ctdb/tools/onnode                                  |    6 +-
 ctdb/web/bar1.jpg                                  |  Bin 2594 -> 0 bytes
 ctdb/web/building.html                             |   42 -
 ctdb/web/clamd.html                                |   78 --
 ctdb/web/configuring.html                          |  202 ----
 ctdb/web/ctdblogo.png                              |  Bin 10145 -> 0 bytes
 ctdb/web/documentation.html                        |   43 -
 ctdb/web/download.html                             |   50 -
 ctdb/web/footer.html                               |   39 -
 ctdb/web/ftp.html                                  |  102 --
 ctdb/web/header.html                               |   44 -
 ctdb/web/index.html                                |  141 ---
 ctdb/web/iscsi.html                                |  113 --
 ctdb/web/nfs.html                                  |   96 --
 ctdb/web/prerequisites.html                        |   30 -
 ctdb/web/samba.html                                |   97 --
 ctdb/web/testing.html                              |  112 --
 ctdb/wscript                                       |    5 +-
 source3/lib/dbwrap/dbwrap_ctdb.c                   |   16 -
 155 files changed, 3471 insertions(+), 4073 deletions(-)
 create mode 100644 ctdb/common/tunable.c
 create mode 100644 ctdb/common/tunable.h
 create mode 100755 ctdb/tests/tool/ctdb.ban.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.ban.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.ban.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.continue.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.continue.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.continue.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.disable.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.disable.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.disable.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.disable.004.sh
 create mode 100755 ctdb/tests/tool/ctdb.disablemonitor.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.enable.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.enable.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.enable.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.enablemonitor.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getdbmap.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getdbseqnum.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getdbseqnum.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.getdbstatus.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getdbstatus.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.getmonmode.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getpid.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getreclock.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getreclock.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.getvar.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.getvar.002.sh
 copy ctdb/tests/tool/{ctdb.getcapabilities.001.sh => ctdb.ifaces.001.sh} (57%)
 create mode 100755 ctdb/tests/tool/ctdb.listvars.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.ping.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.pnn.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.process-exists.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.recmaster.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.recmaster.002.sh
 delete mode 100755 ctdb/tests/tool/ctdb.reloadnodes.022.sh
 create mode 100755 ctdb/tests/tool/ctdb.runstate.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.runstate.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.runstate.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.runstate.004.sh
 create mode 100755 ctdb/tests/tool/ctdb.runstate.005.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdbreadonly.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdbreadonly.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdbreadonly.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdbsticky.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdbsticky.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdebug.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdebug.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.setdebug.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.setifacelink.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.setifacelink.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.setvar.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.setvar.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.stop.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.stop.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.stop.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.unban.001.sh
 create mode 100755 ctdb/tests/tool/ctdb.unban.002.sh
 create mode 100755 ctdb/tests/tool/ctdb.unban.003.sh
 create mode 100755 ctdb/tests/tool/ctdb.uptime.001.sh
 delete mode 100644 ctdb/web/bar1.jpg
 delete mode 100644 ctdb/web/building.html
 delete mode 100644 ctdb/web/clamd.html
 delete mode 100644 ctdb/web/configuring.html
 delete mode 100644 ctdb/web/ctdblogo.png
 delete mode 100644 ctdb/web/documentation.html
 delete mode 100644 ctdb/web/download.html
 delete mode 100644 ctdb/web/footer.html
 delete mode 100644 ctdb/web/ftp.html
 delete mode 100644 ctdb/web/header.html
 delete mode 100644 ctdb/web/index.html
 delete mode 100644 ctdb/web/iscsi.html
 delete mode 100644 ctdb/web/nfs.html
 delete mode 100644 ctdb/web/prerequisites.html
 delete mode 100644 ctdb/web/samba.html
 delete mode 100644 ctdb/web/testing.html
 mode change 100755 => 100644 ctdb/wscript


Changeset truncated at 500 lines:

diff --git a/WHATSNEW.txt b/WHATSNEW.txt
index ad10514..178c882 100644
--- a/WHATSNEW.txt
+++ b/WHATSNEW.txt
@@ -199,6 +199,76 @@ the domain controller, which allows the client to do NTLM based
 authentication on behalf of the user. It also allows on offline
 logon using a smartcard to work on Windows clients.
 
+CTDB changes
+------------
+
+* The use of real-time scheduling when taking locks has been narrowed
+  to limit potential performance impacts on nodes
+
+* CTDB_RECOVERY_LOCK now supports specification of an external helper
+  to take and hold the recovery lock
+
+  See the RECOVERY LOCK section in ctdb(7) for details.  Documentation
+  for writing helpers is provided in doc/cluster_mutex_helper.txt.
+
+* "ctdb natgwlist" has been replaced by a top level "ctdb natgw"
+  command that has "master", "list" and "status" subcommands
+
+* The onnode command no longer supports the "recmaster", "lvs" and
+  "natgw" node specifications
+
+* Faster resetting of TCP connections to public IP addresses during
+  failover
+
+* Tunables MaxRedirectCount, ReclockPingPeriod,
+  DeferredRebalanceOnNodeAdd are now obsolete/ignored
+
+* "ctdb listvars" now lists all variables, including the first one
+
+* "ctdb xpnn", "ctdb rebalanceip" and "ctdb rebalancenode" have been
+  removed
+
+  These are not needed because "ctdb reloadips" should do the correct
+  rebalancing.
+
+* Output for the following commands has been simplified:
+
+    ctdb getdbseqnum
+    ctdb getdebug
+    ctdb getmonmode
+    ctdb getpid
+    ctdb getreclock
+    ctdb getpid
+    ctdb pnn
+
+  These now simply print the requested output with no preamble.  This
+  means that scripts no longer need to strip part of the output.
+
+  "ctdb getreclock" now prints nothing when the recovery lock is not
+  set.
+
+* Output for the following commands has been improved:
+
+  ctdb setdebug
+  ctdb uptime
+
+* "ctdb process-exists" has been updated to only take a PID argument
+
+  The PNN can be specified with -n <PNN>.  Output also cleaned up.
+
+* LVS support has been reworked - related commands and configuration
+  variables have changed
+
+  "ctdb lvsmaster" and "ctdb lvs" have been replaced by a top level
+  "ctdb lvs" command that has "master", "list" and "status"
+  subcommands.
+
+  See the LVS sections in ctdb(7) and ctdbd.conf(5) for details,
+  including configuration changes.
+
+* Improved sample NFS Ganesha call-out
+
+
 
 REMOVED FEATURES
 ================
diff --git a/ctdb/client/client.h b/ctdb/client/client.h
index b7fa7fb..4cae477 100644
--- a/ctdb/client/client.h
+++ b/ctdb/client/client.h
@@ -336,11 +336,6 @@ int ctdb_ctrl_freeze(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 		     int destnode, struct timeval timeout,
 		     int priority);
 
-int ctdb_ctrl_thaw(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-		   struct ctdb_client_context *client,
-		   int destnode, struct timeval timeout,
-		   int priority);
-
 int ctdb_ctrl_get_pnn(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 		      struct ctdb_client_context *client,
 		      int destnode, struct timeval timeout,
@@ -553,16 +548,6 @@ int ctdb_ctrl_get_ban_state(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 			    int destnode, struct timeval timeout,
 			    struct ctdb_ban_state **ban_state);
 
-int ctdb_ctrl_set_db_priority(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-			      struct ctdb_client_context *client,
-			      int destnode, struct timeval timeout,
-			      uint32_t db_id, int priority);
-
-int ctdb_ctrl_get_db_priority(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-			      struct ctdb_client_context *client,
-			      int destnode, struct timeval timeout,
-			      uint32_t db_id, uint32_t *priority);
-
 int ctdb_ctrl_transaction_cancel(TALLOC_CTX *mem_ctx,
 				 struct tevent_context *ev,
 				 struct ctdb_client_context *client,
diff --git a/ctdb/client/client_control_sync.c b/ctdb/client/client_control_sync.c
index 9971c9a..923b717 100644
--- a/ctdb/client/client_control_sync.c
+++ b/ctdb/client/client_control_sync.c
@@ -760,35 +760,6 @@ int ctdb_ctrl_freeze(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 	return 0;
 }
 
-int ctdb_ctrl_thaw(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-		   struct ctdb_client_context *client,
-		   int destnode, struct timeval timeout,
-		   int priority)
-{
-	struct ctdb_req_control request;
-	struct ctdb_reply_control *reply;
-	int ret;
-
-	ctdb_req_control_thaw(&request, priority);
-	ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
-				  &request, &reply);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control THAW failed to node %u, ret=%d\n",
-		       destnode, ret));
-		return ret;
-	}
-
-	ret = ctdb_reply_control_thaw(reply);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control THAW failed, ret=%d\n", ret));
-		return ret;
-	}
-
-	return 0;
-}
-
 int ctdb_ctrl_get_pnn(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 		      struct ctdb_client_context *client,
 		      int destnode, struct timeval timeout,
@@ -2019,68 +1990,6 @@ int ctdb_ctrl_get_ban_state(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 	return 0;
 }
 
-int ctdb_ctrl_set_db_priority(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-			      struct ctdb_client_context *client,
-			      int destnode, struct timeval timeout,
-			      uint32_t db_id, int priority)
-{
-	struct ctdb_req_control request;
-	struct ctdb_reply_control *reply;
-	struct ctdb_db_priority db_prio;
-	int ret;
-
-	db_prio.db_id = db_id;
-	db_prio.priority = priority;
-
-	ctdb_req_control_set_db_priority(&request, &db_prio);
-	ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
-				  &request, &reply);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control SET_DB_PRIORITY failed to node %u, ret=%d\n",
-		       destnode, ret));
-		return ret;
-	}
-
-	ret = ctdb_reply_control_set_db_priority(reply);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control SET_DB_PRIORITY failed, ret=%d\n", ret));
-		return ret;
-	}
-
-	return 0;
-}
-
-int ctdb_ctrl_get_db_priority(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
-			      struct ctdb_client_context *client,
-			      int destnode, struct timeval timeout,
-			      uint32_t db_id, uint32_t *priority)
-{
-	struct ctdb_req_control request;
-	struct ctdb_reply_control *reply;
-	int ret;
-
-	ctdb_req_control_get_db_priority(&request, db_id);
-	ret = ctdb_client_control(mem_ctx, ev, client, destnode, timeout,
-				  &request, &reply);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control GET_DB_PRIORITY failed to node %u, ret=%d\n",
-		       destnode, ret));
-		return ret;
-	}
-
-	ret = ctdb_reply_control_get_db_priority(reply, priority);
-	if (ret != 0) {
-		DEBUG(DEBUG_ERR,
-		      ("Control GET_DB_PRIORITY failed, ret=%d\n", ret));
-		return ret;
-	}
-
-	return 0;
-}
-
 int ctdb_ctrl_transaction_cancel(TALLOC_CTX *mem_ctx, struct tevent_context *ev,
 				 struct ctdb_client_context *client,
 				 int destnode, struct timeval timeout,
diff --git a/ctdb/client/ctdb_client.c b/ctdb/client/ctdb_client.c
index 6748e69..bad38b6 100644
--- a/ctdb/client/ctdb_client.c
+++ b/ctdb/client/ctdb_client.c
@@ -2427,89 +2427,24 @@ int ctdb_ctrl_getpid(struct ctdb_context *ctdb, struct timeval timeout, uint32_t
 	return 0;
 }
 
-
-/*
-  async freeze send control
- */
-struct ctdb_client_control_state *
-ctdb_ctrl_freeze_send(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct timeval timeout, uint32_t destnode, uint32_t priority)
-{
-	return ctdb_control_send(ctdb, destnode, priority, 
-			   CTDB_CONTROL_FREEZE, 0, tdb_null, 
-			   mem_ctx, &timeout, NULL);
-}
-
-/* 
-   async freeze recv control
-*/
-int ctdb_ctrl_freeze_recv(struct ctdb_context *ctdb, TALLOC_CTX *mem_ctx, struct ctdb_client_control_state *state)
-{
-	int ret;
-	int32_t res;
-
-	ret = ctdb_control_recv(ctdb, state, mem_ctx, NULL, &res, NULL);
-	if ( (ret != 0) || (res != 0) ){
-		DEBUG(DEBUG_ERR,(__location__ " ctdb_ctrl_freeze_recv failed\n"));
-		return -1;
-	}
-
-	return 0;
-}
-
-/*
-  freeze databases of a certain priority
- */
-int ctdb_ctrl_freeze_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t priority)
-{
-	TALLOC_CTX *tmp_ctx = talloc_new(ctdb);
-	struct ctdb_client_control_state *state;
-	int ret;
-
-	state = ctdb_ctrl_freeze_send(ctdb, tmp_ctx, timeout, destnode, priority);
-	ret = ctdb_ctrl_freeze_recv(ctdb, tmp_ctx, state);
-	talloc_free(tmp_ctx);
-
-	return ret;
-}
-
 /* Freeze all databases */
-int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode)
-{
-	int i;
-
-	for (i=1; i<=NUM_DB_PRIORITIES; i++) {
-		if (ctdb_ctrl_freeze_priority(ctdb, timeout, destnode, i) != 0) {
-			return -1;
-		}
-	}
-	return 0;
-}
-
-/*
-  thaw databases of a certain priority
- */
-int ctdb_ctrl_thaw_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t priority)
+int ctdb_ctrl_freeze(struct ctdb_context *ctdb, struct timeval timeout,
+		     uint32_t destnode)
 {
 	int ret;
 	int32_t res;
 
-	ret = ctdb_control(ctdb, destnode, priority, 
-			   CTDB_CONTROL_THAW, 0, tdb_null, 
+	ret = ctdb_control(ctdb, destnode, 0,
+			   CTDB_CONTROL_FREEZE, 0, tdb_null,
 			   NULL, NULL, &res, &timeout, NULL);
 	if (ret != 0 || res != 0) {
-		DEBUG(DEBUG_ERR,(__location__ " ctdb_control thaw failed\n"));
+		DEBUG(DEBUG_ERR, ("ctdb_ctrl_freeze_priority failed\n"));
 		return -1;
 	}
 
 	return 0;
 }
 
-/* thaw all databases */
-int ctdb_ctrl_thaw(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode)
-{
-	return ctdb_ctrl_thaw_priority(ctdb, timeout, destnode, 0);
-}
-
 /*
   get pnn of a node, or -1
  */
@@ -4485,59 +4420,6 @@ int ctdb_ctrl_get_ban(struct ctdb_context *ctdb, struct timeval timeout,
 	return 0;
 }
 
-
-int ctdb_ctrl_set_db_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, struct ctdb_db_priority *db_prio)
-{
-	int ret;
-	int32_t res;
-	TDB_DATA data;
-	TALLOC_CTX *tmp_ctx = talloc_new(NULL);
-
-	data.dptr = (uint8_t*)db_prio;
-	data.dsize = sizeof(*db_prio);
-
-	ret = ctdb_control(ctdb, destnode, 0, 
-			   CTDB_CONTROL_SET_DB_PRIORITY, 0, data,
-			   tmp_ctx, NULL, &res, &timeout, NULL);
-	if (ret != 0 || res != 0) {
-		DEBUG(DEBUG_ERR,(__location__ " ctdb_control for set_db_priority failed\n"));
-		talloc_free(tmp_ctx);
-		return -1;
-	}
-
-	talloc_free(tmp_ctx);
-
-	return 0;
-}
-
-int ctdb_ctrl_get_db_priority(struct ctdb_context *ctdb, struct timeval timeout, uint32_t destnode, uint32_t db_id, uint32_t *priority)
-{
-	int ret;
-	int32_t res;
-	TDB_DATA data;
-	TALLOC_CTX *tmp_ctx = talloc_new(NULL);
-
-	data.dptr = (uint8_t*)&db_id;
-	data.dsize = sizeof(db_id);
-
-	ret = ctdb_control(ctdb, destnode, 0, 
-			   CTDB_CONTROL_GET_DB_PRIORITY, 0, data,
-			   tmp_ctx, NULL, &res, &timeout, NULL);
-	if (ret != 0 || res < 0) {
-		DEBUG(DEBUG_ERR,(__location__ " ctdb_control for get_db_priority failed\n"));
-		talloc_free(tmp_ctx);
-		return -1;
-	}
-
-	if (priority) {
-		*priority = res;
-	}
-
-	talloc_free(tmp_ctx);
-
-	return 0;
-}
-
 int ctdb_ctrl_getstathistory(struct ctdb_context *ctdb,
 			     struct timeval timeout, uint32_t destnode,
 			     TALLOC_CTX *mem_ctx,
diff --git a/ctdb/common/tunable.c b/ctdb/common/tunable.c
new file mode 100644
index 0000000..c3514ac
--- /dev/null
+++ b/ctdb/common/tunable.c
@@ -0,0 +1,276 @@
+/*
+   Tunables utilities
+
+   Copyright (C) Amitay Isaacs  2016
+
+   This program is free software; you can redistribute it and/or modify
+   it under the terms of the GNU General Public License as published by
+   the Free Software Foundation; either version 3 of the License, or
+   (at your option) any later version.
+
+   This program is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+   GNU General Public License for more details.
+
+   You should have received a copy of the GNU General Public License
+   along with this program; if not, see <http://www.gnu.org/licenses/>.
+*/
+
+#include "replace.h"
+#include "system/locale.h"
+#include "system/network.h"
+
+#include <talloc.h>
+
+#include "protocol/protocol.h"
+
+#include "common/tunable.h"
+
+static struct {
+	const char *label;
+	uint32_t value;
+	bool obsolete;
+	size_t offset;
+} tunable_map[] = {
+	{ "MaxRedirectCount", 3, true,
+		offsetof(struct ctdb_tunable_list, max_redirect_count) },
+	{ "SeqnumInterval", 1000, false,
+		offsetof(struct ctdb_tunable_list, seqnum_interval) },
+	{ "ControlTimeout", 60, false,
+		offsetof(struct ctdb_tunable_list, control_timeout) },
+	{ "TraverseTimeout", 20, false,
+		offsetof(struct ctdb_tunable_list, traverse_timeout) },
+	{ "KeepaliveInterval", 5, false,
+		offsetof(struct ctdb_tunable_list, keepalive_interval) },
+	{ "KeepaliveLimit", 5, false,
+		offsetof(struct ctdb_tunable_list, keepalive_limit) },
+	{ "RecoverTimeout", 30, false,
+		offsetof(struct ctdb_tunable_list, recover_timeout) },
+	{ "RecoverInterval", 1, false,
+		offsetof(struct ctdb_tunable_list, recover_interval) },
+	{ "ElectionTimeout", 3, false,
+		offsetof(struct ctdb_tunable_list, election_timeout) },
+	{ "TakeoverTimeout", 9, false,
+		offsetof(struct ctdb_tunable_list, takeover_timeout) },
+	{ "MonitorInterval", 15, false,
+		offsetof(struct ctdb_tunable_list, monitor_interval) },
+	{ "TickleUpdateInterval", 20, false,
+		offsetof(struct ctdb_tunable_list, tickle_update_interval) },
+	{ "EventScriptTimeout", 30, false,
+		offsetof(struct ctdb_tunable_list, script_timeout) },
+	{ "MonitorTimeoutCount", 20, false,
+		offsetof(struct ctdb_tunable_list, monitor_timeout_count) },
+	{ "EventScriptUnhealthyOnTimeout", 0, true,
+		offsetof(struct ctdb_tunable_list, script_unhealthy_on_timeout) },
+	{ "RecoveryGracePeriod", 120, false,
+		offsetof(struct ctdb_tunable_list, recovery_grace_period) },
+	{ "RecoveryBanPeriod", 300, false,
+		offsetof(struct ctdb_tunable_list, recovery_ban_period) },
+	{ "DatabaseHashSize", 100001, false,
+		offsetof(struct ctdb_tunable_list, database_hash_size) },
+	{ "DatabaseMaxDead", 5, false,
+		offsetof(struct ctdb_tunable_list, database_max_dead) },
+	{ "RerecoveryTimeout", 10, false,
+		offsetof(struct ctdb_tunable_list, rerecovery_timeout) },
+	{ "EnableBans", 1, false,
+		offsetof(struct ctdb_tunable_list, enable_bans) },
+	{ "DeterministicIPs", 0, false,
+		offsetof(struct ctdb_tunable_list, deterministic_public_ips) },
+	{ "LCP2PublicIPs", 1, false,
+		offsetof(struct ctdb_tunable_list, lcp2_public_ip_assignment) },
+	{ "ReclockPingPeriod", 60, true,
+		offsetof(struct ctdb_tunable_list,  reclock_ping_period) },
+	{ "NoIPFailback", 0, false,
+		offsetof(struct ctdb_tunable_list, no_ip_failback) },
+	{ "DisableIPFailover", 0, false,
+		offsetof(struct ctdb_tunable_list, disable_ip_failover) },
+	{ "VerboseMemoryNames", 0, false,
+		offsetof(struct ctdb_tunable_list, verbose_memory_names) },
+	{ "RecdPingTimeout", 60, false,
+		offsetof(struct ctdb_tunable_list, recd_ping_timeout) },
+	{ "RecdFailCount", 10, false,
+		offsetof(struct ctdb_tunable_list, recd_ping_failcount) },
+	{ "LogLatencyMs", 0, false,
+		offsetof(struct ctdb_tunable_list, log_latency_ms) },
+	{ "RecLockLatencyMs", 1000, false,
+		offsetof(struct ctdb_tunable_list, reclock_latency_ms) },
+	{ "RecoveryDropAllIPs", 120, false,
+		offsetof(struct ctdb_tunable_list, recovery_drop_all_ips) },
+	{ "VerifyRecoveryLock", 1, true,
+		offsetof(struct ctdb_tunable_list, verify_recovery_lock) },
+	{ "VacuumInterval", 10, false,
+		offsetof(struct ctdb_tunable_list, vacuum_interval) },
+	{ "VacuumMaxRunTime", 120, false,
+		offsetof(struct ctdb_tunable_list, vacuum_max_run_time) },
+	{ "RepackLimit", 10*1000, false,
+		offsetof(struct ctdb_tunable_list, repack_limit) },
+	{ "VacuumLimit", 5*1000, false,
+		offsetof(struct ctdb_tunable_list, vacuum_limit) },
+	{ "VacuumFastPathCount", 60, false,
+		offsetof(struct ctdb_tunable_list, vacuum_fast_path_count) },
+	{ "MaxQueueDropMsg", 1000*1000, false,


-- 
Samba Shared Repository



More information about the samba-cvs mailing list