[SCM] CTDB repository - branch master updated - ctdb-2.1-233-gac0892d

Amitay Isaacs amitay at samba.org
Wed May 29 21:39:22 MDT 2013


The branch, master has been updated
       via  ac0892d3a57adb0587a37de0f94fa686bed8970f (commit)
       via  78cff9d54f241fb6a2943e50346f9c2ad9decc78 (commit)
       via  82d61f77c01df0fbb42743593937b175ce22a445 (commit)
       via  506b27c944b4031e8a325816bd12abddd442a0bb (commit)
       via  bb3a32ec055432afc7225c9fd7504fb187694bda (commit)
       via  3bffca8c17e441364525df115ee2ac16b5969e24 (commit)
       via  db31dc48bd3135e9242af08bb79b67a17a2b1668 (commit)
       via  ca7ba26362eabfbcc329c66919d9c4da79c3b799 (commit)
       via  641f539ffc7dd9542e669a3ec20c004f8bbcbf1e (commit)
       via  fa757b49374e44c2380d4457e9b0eb3582981fac (commit)
       via  2cf95741fdab2ee5f724950a0b1ef257d6aeade7 (commit)
       via  1734562a7b3512853b9e0232880c42d50c1c2e4c (commit)
       via  0320bb4f8ca8171812ec7f41556aed847c74bfb4 (commit)
       via  2c19fa78ce0b25c3615b23664df32233bdbdea42 (commit)
       via  b091f09ea01482823bd850d1d4e2329e0a19c959 (commit)
      from  1b5968f6be084590667f4f15ff3bef13ed9a2973 (commit)

http://gitweb.samba.org/?p=ctdb.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit ac0892d3a57adb0587a37de0f94fa686bed8970f
Author: Martin Schwenke <martin at meltin.net>
Date:   Fri May 24 15:38:54 2013 +1000

    doc: Add release notes for 2.2
    
    Signed-off-by: Martin Schwenke <martin at meltin.net>

commit 78cff9d54f241fb6a2943e50346f9c2ad9decc78
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 15:14:42 2013 +1000

    build: Fix extra whitespaces
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 82d61f77c01df0fbb42743593937b175ce22a445
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 14:12:14 2013 +1000

    tevent: Sync to tevent 0.9.18 from upstream

commit 506b27c944b4031e8a325816bd12abddd442a0bb
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 14:44:03 2013 +1000

    replace: Sync to latest replace from upstream
    
    The latest commits affecting lib/replace remove autoconf build from
    Samba tree.  So using following commit as a sync point.
    
      commit 9ddfd7d8784e6f546628f48990b69ee2850be52d
      Author: Andrew Bartlett <abartlet at samba.org>
      Date:   Wed May 22 17:23:30 2013 +1000
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit bb3a32ec055432afc7225c9fd7504fb187694bda
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 14:05:50 2013 +1000

    tdb: Sync to tdb 1.2.11 from upstream

commit 3bffca8c17e441364525df115ee2ac16b5969e24
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 13:53:38 2013 +1000

    talloc: Sync to talloc 2.0.8 from upstream
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit db31dc48bd3135e9242af08bb79b67a17a2b1668
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 12:11:49 2013 +1000

    ctdbd: Log node state transitions at higher debug level
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit ca7ba26362eabfbcc329c66919d9c4da79c3b799
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 14:17:59 2013 +1000

    git: Ignore generated ctdb.spec file
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 641f539ffc7dd9542e669a3ec20c004f8bbcbf1e
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Wed May 29 14:17:00 2013 +1000

    git: Ignore ctdb_version.h file
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit fa757b49374e44c2380d4457e9b0eb3582981fac
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri May 24 15:25:52 2013 +1000

    build: Use REPLACE_OBJ and CTDB_EXTERNAL_OBJ to simplify build rules
    
    This fixes the build on AIX where libreplace is required to build
    ctdb_lock_helper, ctdb_fetch_lock_once, ctdb_fetch_readonly_once.
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 2cf95741fdab2ee5f724950a0b1ef257d6aeade7
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri May 24 15:14:20 2013 +1000

    build: Support for building on AIX xlc compiler
    
    xlc does not support -fPIC, -Wno-format-zero-length
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 1734562a7b3512853b9e0232880c42d50c1c2e4c
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu May 23 23:44:45 2013 -0500

    tests: Do not use err() to support AIX
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 0320bb4f8ca8171812ec7f41556aed847c74bfb4
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri May 24 14:52:09 2013 +1000

    tests: Include system/time.h to support building on AIX
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit 2c19fa78ce0b25c3615b23664df32233bdbdea42
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Fri May 24 14:51:46 2013 +1000

    libctdb: Do not include sys/time.h to support build on AIX
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

commit b091f09ea01482823bd850d1d4e2329e0a19c959
Author: Amitay Isaacs <amitay at gmail.com>
Date:   Thu May 23 23:42:23 2013 -0500

    util: Do not stop build if backtracing is not supported
    
    Signed-off-by: Amitay Isaacs <amitay at gmail.com>

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

Summary of changes:
 .gitignore                                         |    3 +-
 Makefile.in                                        |   44 +-
 NEWS                                               |   65 +
 lib/replace/Makefile.in                            |   70 -
 lib/replace/README                                 |    5 +-
 lib/replace/aclocal.m4                             |    1 -
 lib/replace/autogen-autotools.sh                   |   13 -
 lib/replace/autogen.sh                             |   13 -
 lib/replace/build_macros.m4                        |   14 -
 lib/replace/config.guess                           | 1561 ------------------
 lib/replace/config.h.in                            |  690 --------
 lib/replace/config.sub                             | 1686 -------------------
 lib/replace/configure.ac                           |   33 -
 lib/replace/getaddrinfo.m4                         |   32 -
 lib/replace/getifaddrs.m4                          |  101 --
 lib/replace/getpass.c                              |  218 ---
 lib/replace/getpass.m4                             |   24 -
 lib/replace/havenone.h                             |   51 -
 lib/replace/inet_ntop.m4                           |    1 -
 lib/replace/inet_pton.m4                           |    1 -
 lib/replace/libreplace.m4                          |  130 ++-
 lib/replace/libreplace_cc.m4                       |   22 +-
 lib/replace/libreplace_macros.m4                   |   15 +
 lib/replace/libreplace_network.m4                  |   24 +
 lib/replace/poll.c                                 |    8 +-
 lib/replace/replace-test.h                         |    4 -
 lib/replace/replace-testsuite.h                    |   10 +
 lib/replace/replace.c                              |  104 +-
 lib/replace/replace.h                              |  137 ++-
 lib/replace/samba.m4                               |   34 -
 lib/replace/snprintf.c                             |   17 +-
 lib/replace/strptime.c                             |    9 +-
 lib/replace/strptime.m4                            |    5 +-
 lib/replace/system/filesys.h                       |   74 +
 lib/replace/system/gssapi.h                        |   53 +
 lib/replace/system/kerberos.h                      |   18 +-
 lib/replace/system/passwd.h                        |    9 -
 lib/replace/system/printing.h                      |   50 -
 lib/replace/system/wait.h                          |    4 +
 lib/replace/test/incoherent_mmap.c                 |   83 +
 lib/replace/test/main.c                            |    4 +-
 lib/replace/test/testsuite.c                       |   13 +-
 lib/replace/wscript                                |  302 +++-
 lib/replace/xattr.c                                |  729 +++++++++
 lib/talloc/ABI/pytalloc-util-2.0.6.sigs            |    6 +
 lib/talloc/ABI/pytalloc-util-2.0.7.sigs            |    6 +
 lib/talloc/ABI/pytalloc-util-2.0.8.sigs            |    6 +
 .../ABI/{talloc-2.0.7.sigs => talloc-2.0.2.sigs}   |    0
 .../ABI/{talloc-2.0.7.sigs => talloc-2.0.3.sigs}   |    0
 .../ABI/{talloc-2.0.7.sigs => talloc-2.0.4.sigs}   |    0
 .../ABI/{talloc-2.0.7.sigs => talloc-2.0.5.sigs}   |    0
 .../ABI/{talloc-2.0.7.sigs => talloc-2.0.6.sigs}   |    0
 lib/talloc/ABI/talloc-2.0.8.sigs                   |   63 +
 lib/talloc/NEWS                                    |   13 +
 lib/talloc/compat/talloc_compat1.c                 |   51 +
 lib/talloc/compat/talloc_compat1.m4                |   14 +
 lib/talloc/compat/talloc_compat1.mk                |   21 +
 lib/talloc/doc/context.png                         |  Bin 0 -> 4715 bytes
 lib/talloc/doc/context_tree.png                    |  Bin 0 -> 6158 bytes
 lib/talloc/doc/mainpage.dox                        |    5 +
 lib/talloc/doc/stealing.png                        |  Bin 0 -> 6994 bytes
 lib/talloc/doc/tutorial_bestpractices.dox          |  192 +++
 lib/talloc/doc/tutorial_context.dox                |  198 +++
 lib/talloc/doc/tutorial_debugging.dox              |  116 ++
 lib/talloc/doc/tutorial_destructors.dox            |   82 +
 lib/talloc/doc/tutorial_dts.dox                    |  109 ++
 lib/talloc/doc/tutorial_introduction.dox           |   43 +
 lib/talloc/doc/tutorial_pools.dox                  |   93 ++
 lib/talloc/doc/tutorial_stealing.dox               |   55 +
 lib/talloc/doxy.config                             |  517 +++++--
 lib/talloc/pytalloc-util.pc.in                     |   11 +
 lib/talloc/pytalloc.c                              |  134 ++
 lib/talloc/pytalloc.h                              |   54 +
 lib/talloc/pytalloc_util.c                         |  118 ++
 lib/talloc/talloc.3.xml                            |   12 +-
 lib/talloc/talloc.c                                |  541 +++++--
 lib/talloc/talloc.h                                |  204 +++-
 lib/talloc/talloc.i                                |   31 +
 lib/talloc/talloc.pc.in                            |    2 +-
 lib/talloc/talloc_guide.txt                        |    8 +-
 lib/talloc/testsuite.c                             |  174 ++-
 lib/talloc/wscript                                 |  154 ++
 lib/tdb/ABI/tdb-1.2.1.sigs                         |   95 ++
 lib/tdb/ABI/tdb-1.2.11.sigs                        |   67 +
 lib/tdb/ABI/tdb-1.2.2.sigs                         |   60 +
 lib/tdb/ABI/tdb-1.2.3.sigs                         |   60 +
 lib/tdb/ABI/tdb-1.2.4.sigs                         |   60 +
 lib/tdb/ABI/tdb-1.2.5.sigs                         |   61 +
 lib/tdb/ABI/tdb-1.2.6.sigs                         |   61 +
 lib/tdb/ABI/tdb-1.2.7.sigs                         |   61 +
 lib/tdb/ABI/tdb-1.2.8.sigs                         |   61 +
 lib/tdb/ABI/tdb-1.2.9.sigs                         |   62 +
 lib/tdb/common/io.c                                |   32 +-
 lib/tdb/common/lock.c                              |    2 +-
 lib/tdb/common/open.c                              |   32 +-
 lib/tdb/common/rescue.c                            |  349 ++++
 lib/tdb/common/transaction.c                       |   17 +-
 lib/tdb/doxy.config                                | 1697 ++++++++++++++++++++
 lib/tdb/include/tdb.h                              |   22 +
 lib/tdb/libtdb.m4                                  |    2 +-
 lib/tdb/manpages/tdbbackup.8.xml                   |  136 ++
 lib/tdb/manpages/tdbdump.8.xml                     |   92 ++
 lib/tdb/manpages/tdbrestore.8.xml                  |   66 +
 lib/tdb/manpages/tdbtool.8.xml                     |  235 +++
 lib/tdb/pytdb.c                                    |  106 ++-
 lib/tdb/python/tests/simple.py                     |    9 +-
 lib/tdb/tdb.pc.in                                  |    2 +-
 lib/tdb/test/external-agent.c                      |  198 +++
 lib/tdb/test/external-agent.h                      |   41 +
 lib/tdb/test/jenkins-be-hash.tdb                   |  Bin 0 -> 696 bytes
 lib/tdb/test/jenkins-le-hash.tdb                   |  Bin 0 -> 696 bytes
 lib/tdb/test/lock-tracking.c                       |  146 ++
 lib/tdb/test/lock-tracking.h                       |   25 +
 lib/tdb/test/logging.c                             |   33 +
 lib/tdb/test/logging.h                             |   11 +
 lib/tdb/test/old-nohash-be.tdb                     |  Bin 0 -> 696 bytes
 lib/tdb/test/old-nohash-le.tdb                     |  Bin 0 -> 696 bytes
 lib/tdb/test/run-3G-file.c                         |  144 ++
 lib/tdb/test/run-bad-tdb-header.c                  |   58 +
 lib/tdb/test/run-check.c                           |   64 +
 lib/tdb/test/run-corrupt.c                         |  131 ++
 lib/tdb/test/run-die-during-transaction.c          |  231 +++
 lib/tdb/test/run-endian.c                          |   63 +
 lib/tdb/test/run-incompatible.c                    |  185 +++
 lib/tdb/test/run-nested-transactions.c             |   78 +
 lib/tdb/test/run-nested-traverse.c                 |   87 +
 lib/tdb/test/run-no-lock-during-traverse.c         |  113 ++
 lib/tdb/test/run-oldhash.c                         |   49 +
 lib/tdb/test/run-open-during-transaction.c         |  181 +++
 lib/tdb/test/run-readonly-check.c                  |   52 +
 lib/tdb/test/run-rescue-find_entry.c               |   50 +
 lib/tdb/test/run-rescue.c                          |  126 ++
 lib/tdb/test/run-rwlock-check.c                    |   45 +
 lib/tdb/test/run-summary.c                         |   64 +
 lib/tdb/test/run-transaction-expand.c              |  119 ++
 lib/tdb/test/run-traverse-in-transaction.c         |   86 +
 lib/tdb/test/run-wronghash-fail.c                  |  120 ++
 lib/tdb/test/run-zero-append.c                     |   40 +
 lib/tdb/test/run.c                                 |   49 +
 lib/tdb/test/rwlock-be.tdb                         |  Bin 0 -> 696 bytes
 lib/tdb/test/rwlock-le.tdb                         |  Bin 0 -> 696 bytes
 lib/tdb/test/tap-interface.h                       |   39 +
 lib/tdb/test/tap-to-subunit.h                      |  155 ++
 lib/tdb/test/tdb.corrupt                           |  Bin 0 -> 192512 bytes
 lib/tdb/tools/tdbdump.c                            |   65 +-
 lib/tdb/tools/tdbrestore.c                         |    2 -
 lib/tdb/wscript                                    |  224 +++
 lib/tevent/ABI/tevent-0.9.10.sigs                  |   73 +
 lib/tevent/ABI/tevent-0.9.11.sigs                  |   73 +
 lib/tevent/ABI/tevent-0.9.12.sigs                  |   74 +
 lib/tevent/ABI/tevent-0.9.13.sigs                  |   75 +
 .../ABI/{tevent-0.9.15.sigs => tevent-0.9.14.sigs} |    0
 .../ABI/{tevent-0.9.16.sigs => tevent-0.9.17.sigs} |    0
 lib/tevent/ABI/tevent-0.9.18.sigs                  |   83 +
 lib/tevent/ABI/tevent-0.9.9.sigs                   |   73 +
 lib/tevent/bindings.py                             |   62 +
 lib/tevent/doxy.config                             |    5 +-
 lib/tevent/libtevent.m4                            |   34 +
 lib/tevent/pytevent.c                              |  766 +++++++++
 lib/tevent/release-script.sh                       |   48 +
 lib/tevent/testsuite.c                             |  701 ++++++++-
 lib/tevent/tevent.c                                |   65 +-
 lib/tevent/tevent.h                                |   13 +-
 lib/tevent/tevent.pc.in                            |    2 +-
 lib/tevent/tevent.py                               |   29 +
 lib/tevent/tevent_epoll.c                          |  625 +++++++-
 lib/tevent/tevent_immediate.c                      |    1 +
 lib/tevent/tevent_internal.h                       |   26 +-
 lib/tevent/tevent_liboop.c                         |   20 +-
 lib/tevent/tevent_poll.c                           |  567 ++++++-
 lib/tevent/tevent_select.c                         |   33 +-
 lib/tevent/tevent_signal.c                         |   41 +-
 lib/tevent/tevent_standard.c                       |  632 ++------
 lib/tevent/tevent_timed.c                          |  122 ++-
 lib/tevent/tevent_wakeup.c                         |    1 +
 lib/tevent/wscript                                 |  138 ++
 lib/util/fault.c                                   |    3 +-
 libctdb/control.c                                  |    1 +
 libctdb/ctdb.c                                     |    2 +
 libctdb/local_tdb.c                                |    1 +
 libctdb/logging.c                                  |    1 +
 libctdb/sync.c                                     |    1 +
 server/ctdb_recover.c                              |    4 +-
 tests/src/ctdb_fetch_lock_once.c                   |   10 +-
 tests/src/ctdb_fetch_readonly_loop.c               |    2 +-
 tests/src/ctdb_test.c                              |    4 -
 tests/src/ctdb_trackingdb_test.c                   |    3 +-
 187 files changed, 14560 insertions(+), 5892 deletions(-)
 create mode 100644 NEWS
 delete mode 100644 lib/replace/Makefile.in
 delete mode 100644 lib/replace/aclocal.m4
 delete mode 100755 lib/replace/autogen-autotools.sh
 delete mode 100755 lib/replace/autogen.sh
 delete mode 100644 lib/replace/build_macros.m4
 delete mode 100755 lib/replace/config.guess
 delete mode 100644 lib/replace/config.h.in
 delete mode 100755 lib/replace/config.sub
 delete mode 100644 lib/replace/configure.ac
 delete mode 100644 lib/replace/getaddrinfo.m4
 delete mode 100644 lib/replace/getifaddrs.m4
 delete mode 100644 lib/replace/getpass.c
 delete mode 100644 lib/replace/getpass.m4
 delete mode 100644 lib/replace/havenone.h
 delete mode 100644 lib/replace/inet_ntop.m4
 delete mode 100644 lib/replace/inet_pton.m4
 create mode 100644 lib/replace/replace-testsuite.h
 delete mode 100644 lib/replace/samba.m4
 create mode 100644 lib/replace/system/gssapi.h
 delete mode 100644 lib/replace/system/printing.h
 create mode 100644 lib/replace/test/incoherent_mmap.c
 create mode 100644 lib/replace/xattr.c
 create mode 100644 lib/talloc/ABI/pytalloc-util-2.0.6.sigs
 create mode 100644 lib/talloc/ABI/pytalloc-util-2.0.7.sigs
 create mode 100644 lib/talloc/ABI/pytalloc-util-2.0.8.sigs
 copy lib/talloc/ABI/{talloc-2.0.7.sigs => talloc-2.0.2.sigs} (100%)
 copy lib/talloc/ABI/{talloc-2.0.7.sigs => talloc-2.0.3.sigs} (100%)
 copy lib/talloc/ABI/{talloc-2.0.7.sigs => talloc-2.0.4.sigs} (100%)
 copy lib/talloc/ABI/{talloc-2.0.7.sigs => talloc-2.0.5.sigs} (100%)
 copy lib/talloc/ABI/{talloc-2.0.7.sigs => talloc-2.0.6.sigs} (100%)
 create mode 100644 lib/talloc/ABI/talloc-2.0.8.sigs
 create mode 100644 lib/talloc/NEWS
 create mode 100644 lib/talloc/compat/talloc_compat1.c
 create mode 100644 lib/talloc/compat/talloc_compat1.m4
 create mode 100644 lib/talloc/compat/talloc_compat1.mk
 create mode 100644 lib/talloc/doc/context.png
 create mode 100644 lib/talloc/doc/context_tree.png
 create mode 100644 lib/talloc/doc/stealing.png
 create mode 100644 lib/talloc/doc/tutorial_bestpractices.dox
 create mode 100644 lib/talloc/doc/tutorial_context.dox
 create mode 100644 lib/talloc/doc/tutorial_debugging.dox
 create mode 100644 lib/talloc/doc/tutorial_destructors.dox
 create mode 100644 lib/talloc/doc/tutorial_dts.dox
 create mode 100644 lib/talloc/doc/tutorial_introduction.dox
 create mode 100644 lib/talloc/doc/tutorial_pools.dox
 create mode 100644 lib/talloc/doc/tutorial_stealing.dox
 create mode 100644 lib/talloc/pytalloc-util.pc.in
 create mode 100644 lib/talloc/pytalloc.c
 create mode 100644 lib/talloc/pytalloc.h
 create mode 100644 lib/talloc/pytalloc_util.c
 create mode 100644 lib/talloc/talloc.i
 create mode 100644 lib/talloc/wscript
 create mode 100644 lib/tdb/ABI/tdb-1.2.1.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.11.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.2.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.3.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.4.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.5.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.6.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.7.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.8.sigs
 create mode 100644 lib/tdb/ABI/tdb-1.2.9.sigs
 create mode 100644 lib/tdb/common/rescue.c
 create mode 100644 lib/tdb/doxy.config
 create mode 100644 lib/tdb/manpages/tdbbackup.8.xml
 create mode 100644 lib/tdb/manpages/tdbdump.8.xml
 create mode 100644 lib/tdb/manpages/tdbrestore.8.xml
 create mode 100644 lib/tdb/manpages/tdbtool.8.xml
 create mode 100644 lib/tdb/test/external-agent.c
 create mode 100644 lib/tdb/test/external-agent.h
 create mode 100644 lib/tdb/test/jenkins-be-hash.tdb
 create mode 100644 lib/tdb/test/jenkins-le-hash.tdb
 create mode 100644 lib/tdb/test/lock-tracking.c
 create mode 100644 lib/tdb/test/lock-tracking.h
 create mode 100644 lib/tdb/test/logging.c
 create mode 100644 lib/tdb/test/logging.h
 create mode 100644 lib/tdb/test/old-nohash-be.tdb
 create mode 100644 lib/tdb/test/old-nohash-le.tdb
 create mode 100644 lib/tdb/test/run-3G-file.c
 create mode 100644 lib/tdb/test/run-bad-tdb-header.c
 create mode 100644 lib/tdb/test/run-check.c
 create mode 100644 lib/tdb/test/run-corrupt.c
 create mode 100644 lib/tdb/test/run-die-during-transaction.c
 create mode 100644 lib/tdb/test/run-endian.c
 create mode 100644 lib/tdb/test/run-incompatible.c
 create mode 100644 lib/tdb/test/run-nested-transactions.c
 create mode 100644 lib/tdb/test/run-nested-traverse.c
 create mode 100644 lib/tdb/test/run-no-lock-during-traverse.c
 create mode 100644 lib/tdb/test/run-oldhash.c
 create mode 100644 lib/tdb/test/run-open-during-transaction.c
 create mode 100644 lib/tdb/test/run-readonly-check.c
 create mode 100644 lib/tdb/test/run-rescue-find_entry.c
 create mode 100644 lib/tdb/test/run-rescue.c
 create mode 100644 lib/tdb/test/run-rwlock-check.c
 create mode 100644 lib/tdb/test/run-summary.c
 create mode 100644 lib/tdb/test/run-transaction-expand.c
 create mode 100644 lib/tdb/test/run-traverse-in-transaction.c
 create mode 100644 lib/tdb/test/run-wronghash-fail.c
 create mode 100644 lib/tdb/test/run-zero-append.c
 create mode 100644 lib/tdb/test/run.c
 create mode 100644 lib/tdb/test/rwlock-be.tdb
 create mode 100644 lib/tdb/test/rwlock-le.tdb
 create mode 100644 lib/tdb/test/tap-interface.h
 create mode 100644 lib/tdb/test/tap-to-subunit.h
 create mode 100644 lib/tdb/test/tdb.corrupt
 create mode 100644 lib/tdb/wscript
 create mode 100644 lib/tevent/ABI/tevent-0.9.10.sigs
 create mode 100644 lib/tevent/ABI/tevent-0.9.11.sigs
 create mode 100644 lib/tevent/ABI/tevent-0.9.12.sigs
 create mode 100644 lib/tevent/ABI/tevent-0.9.13.sigs
 copy lib/tevent/ABI/{tevent-0.9.15.sigs => tevent-0.9.14.sigs} (100%)
 copy lib/tevent/ABI/{tevent-0.9.16.sigs => tevent-0.9.17.sigs} (100%)
 create mode 100644 lib/tevent/ABI/tevent-0.9.18.sigs
 create mode 100644 lib/tevent/ABI/tevent-0.9.9.sigs
 create mode 100644 lib/tevent/bindings.py
 create mode 100644 lib/tevent/pytevent.c
 create mode 100755 lib/tevent/release-script.sh
 create mode 100644 lib/tevent/tevent.py
 create mode 100755 lib/tevent/wscript


Changeset truncated at 500 lines:

diff --git a/.gitignore b/.gitignore
index 6a71e4d..a76dc38 100644
--- a/.gitignore
+++ b/.gitignore
@@ -28,4 +28,5 @@ tests/takeover/ctdb_takeover.pyc
 tests/eventscripts/var
 tests/eventscripts/etc/iproute2
 tests/eventscripts/etc-ctdb/policy_routing
-include/version.h
+include/ctdb_version.h
+packaging/RPM/ctdb.spec
diff --git a/Makefile.in b/Makefile.in
index 6b86bad..bfeccf8 100755
--- a/Makefile.in
+++ b/Makefile.in
@@ -42,19 +42,25 @@ TDB_LIBS = @TDB_LIBS@
 TDB_CFLAGS = @TDB_CFLAGS@
 TDB_OBJ = @TDB_OBJ@
 
+REPLACE_OBJ = @LIBREPLACEOBJ@
+
 SOCKET_WRAPPER_OBJ = @SOCKET_WRAPPER_OBJS@
 
 PMDA_LIBS = -lpcp -lpcp_pmda
 PMDA_INSTALL = @CTDB_PMDA_INSTALL@
 PMDA_DEST_DIR = /var/lib/pcp/pmdas/ctdb
 
+ifeq ($(CC),gcc)
+EXTRA_CFLAGS=-Wno-format-zero-length -fPIC
+endif
+
 CFLAGS=@CPPFLAGS@ -g -I$(srcdir)/include -Iinclude -Ilib -Ilib/util -I$(srcdir) \
        $(TALLOC_CFLAGS) $(TEVENT_CFLAGS) $(TDB_CFLAGS) -I at libreplacedir@ \
 	-DVARDIR=\"$(localstatedir)\" -DETCDIR=\"$(etcdir)\" \
 	-DLOGDIR=\"$(logdir)\" -DBINDIR=\"$(bindir)\" \
 	-DSOCKPATH=\"$(sockpath)\" \
-	-DUSE_MMAP=1 -DTEVENT_DEPRECATED_QUIET=1 @CFLAGS@ -Wno-format-zero-length $(POPT_CFLAGS) \
-	-fPIC
+	-DUSE_MMAP=1 -DTEVENT_DEPRECATED_QUIET=1 @CFLAGS@ $(POPT_CFLAGS) \
+	$(EXTRA_CFLAGS)
 
 LDSHFLAGS=-fPIC -shared
 #LDSHFLAGS=-fPIC -shared -Wl,-Bsymbolic -Wl,-z,relo -Wl,-Bsymbolic-funtions -Wl,--as-needed -Wl,-z,defs
@@ -80,9 +86,11 @@ CTDB_LIB_OBJ = libctdb/ctdb.o libctdb/io_elem.o libctdb/local_tdb.o \
 
 CTDB_TCP_OBJ = tcp/tcp_connect.o tcp/tcp_io.o tcp/tcp_init.o
 
+CTDB_EXTERNAL_OBJ = $(POPT_OBJ) $(TALLOC_OBJ) $(TDB_OBJ) \
+	$(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
+
 CTDB_CLIENT_OBJ = client/ctdb_client.o \
-	$(CTDB_COMMON_OBJ) $(POPT_OBJ) $(UTIL_OBJ) $(TALLOC_OBJ) $(TDB_OBJ) \
-	@LIBREPLACEOBJ@ $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
+	$(CTDB_COMMON_OBJ) $(UTIL_OBJ) $(CTDB_EXTERNAL_OBJ)
 
 CTDB_SERVER_OBJ = server/ctdbd.o server/ctdb_daemon.o \
 	server/ctdb_recoverd.o server/ctdb_recover.o server/ctdb_freeze.o \
@@ -177,9 +185,9 @@ bin/ltdbtool: tools/ltdbtool.o $(TDB_OBJ)
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ $+ $(TDB_LIBS) $(LIB_FLAGS)
 
-bin/ctdb_lock_helper: server/ctdb_lock_helper.o lib/util/util_file.o $(TALLOC_OBJ) $(TDB_OBJ)
+bin/ctdb_lock_helper: server/ctdb_lock_helper.o lib/util/util_file.o $(CTDB_EXTERNAL_OBJ)
 	@echo Linking $@
-	@$(CC) $(CFLAGS) -o $@ $+ $(TDB_LIBS) $(LIB_FLAGS)
+	@$(CC) $(CFLAGS) -o $@ server/ctdb_lock_helper.o lib/util/util_file.o $(CTDB_EXTERNAL_OBJ) $(TDB_LIBS) $(LIB_FLAGS)
 
 bin/smnotify: utils/smnotify/gen_xdr.o utils/smnotify/gen_smnotify.o utils/smnotify/smnotify.o $(POPT_OBJ)
 	@echo Linking $@
@@ -223,13 +231,13 @@ tests/bin/ctdb_fetch_one: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_one.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_one.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_fetch_lock_once: libctdb/libctdb.a tests/src/ctdb_fetch_lock_once.o 
+tests/bin/ctdb_fetch_lock_once: libctdb/libctdb.a tests/src/ctdb_fetch_lock_once.o $(CTDB_EXTERNAL_OBJ)
 	@echo Linking $@
-	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o $(TDB_OBJ) $(POPT_OBJ) libctdb/libctdb.a $(LIB_FLAGS)
+	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_lock_once.o $(CTDB_EXTERNAL_OBJ) libctdb/libctdb.a $(LIB_FLAGS)
 
-tests/bin/ctdb_fetch_readonly_once: libctdb/libctdb.a tests/src/ctdb_fetch_readonly_once.o
+tests/bin/ctdb_fetch_readonly_once: libctdb/libctdb.a tests/src/ctdb_fetch_readonly_once.o $(CTDB_EXTERNAL_OBJ)
 	@echo Linking $@
-	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_once.o $(TDB_OBJ) $(POPT_OBJ) libctdb/libctdb.a $(LIB_FLAGS)
+	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_fetch_readonly_once.o $(CTDB_EXTERNAL_OBJ) libctdb/libctdb.a $(LIB_FLAGS)
 
 tests/bin/ctdb_fetch_readonly_loop: $(CTDB_CLIENT_OBJ) tests/src/ctdb_fetch_readonly_loop.o
 	@echo Linking $@
@@ -239,27 +247,27 @@ tests/bin/ctdb_trackingdb_test: $(CTDB_CLIENT_OBJ) tests/src/ctdb_trackingdb_tes
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_trackingdb_test.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_update_record: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record.o 
+tests/bin/ctdb_update_record: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_update_record_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record_persistent.o 
+tests/bin/ctdb_update_record_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_update_record_persistent.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_update_record_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_store: $(CTDB_CLIENT_OBJ) tests/src/ctdb_store.o 
+tests/bin/ctdb_store: $(CTDB_CLIENT_OBJ) tests/src/ctdb_store.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_store.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_traverse: $(CTDB_CLIENT_OBJ) tests/src/ctdb_traverse.o 
+tests/bin/ctdb_traverse: $(CTDB_CLIENT_OBJ) tests/src/ctdb_traverse.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_traverse.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_randrec: $(CTDB_CLIENT_OBJ) tests/src/ctdb_randrec.o 
+tests/bin/ctdb_randrec: $(CTDB_CLIENT_OBJ) tests/src/ctdb_randrec.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_randrec.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_persistent.o 
+tests/bin/ctdb_persistent: $(CTDB_CLIENT_OBJ) tests/src/ctdb_persistent.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_persistent.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
@@ -267,7 +275,7 @@ tests/bin/ctdb_porting_tests: $(CTDB_CLIENT_OBJ) tests/src/ctdb_porting_tests.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_porting_tests.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
-tests/bin/ctdb_transaction: $(CTDB_CLIENT_OBJ) tests/src/ctdb_transaction.o 
+tests/bin/ctdb_transaction: $(CTDB_CLIENT_OBJ) tests/src/ctdb_transaction.o
 	@echo Linking $@
 	@$(CC) $(CFLAGS) -o $@ tests/src/ctdb_transaction.o $(CTDB_CLIENT_OBJ) $(LIB_FLAGS)
 
@@ -277,7 +285,7 @@ CTDBD_TEST_C = $(CTDB_SERVER_MOST_OBJ:.o=.c) tests/src/ctdbd_test.c
 CTDB_TEST_C = $(CTDB_CLIENT_OBJ:.o=.c) tools/ctdb.c tools/ctdb_vacuum.c  tests/src/ctdb_test.c
 
 CTDB_TEST_OBJ =  $(TALLOC_OBJ) $(TDB_OBJ) \
-	@CTDB_SYSTEM_OBJ@ @LIBREPLACEOBJ@ $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
+	@CTDB_SYSTEM_OBJ@ $(REPLACE_OBJ) $(EXTRA_OBJ) $(TEVENT_OBJ) $(SOCKET_WRAPPER_OBJ)
 
 tests/src/ctdb_takeover_tests.o: tests/src/ctdb_takeover_tests.c $(CTDBD_TEST_C)
 
diff --git a/NEWS b/NEWS
new file mode 100644
index 0000000..b4a6169
--- /dev/null
+++ b/NEWS
@@ -0,0 +1,65 @@
+Changes in CTDB 2.2
+===================
+
+User-visible changes
+--------------------
+
+* The "stopped" event has been removed.
+
+  The "ipreallocated" event is now run when a node is stopped.  Use
+  this instead of "stopped".
+
+* New --pidfile option for ctdbd, used by initscript
+
+* The 60.nfs eventscript now uses configuration files in
+  /etc/ctdb/nfs-rpc-checks.d/ for timeouts and actions instead of
+  hardcoding them into the script.
+
+* Notification handler scripts can now be dropped into /etc/ctdb/notify.d/.
+
+* The NoIPTakeoverOnDisabled tunable has been renamed to
+  NoIPHostOnAllDisabled and now works properly when set on individual
+  nodes.
+
+* New ctdb subcommand "runstate" prints the current internal runstate.
+  Runstates are used for serialising startup.
+
+Important bug fixes
+-------------------
+
+* The Unix domain socket is now set to non-blocking after the
+  connection succeeds.  This avoids connections failing with EAGAIN
+  and not being retried.
+
+* Fetching from the log ringbuffer now succeeds if the buffer is full.
+
+* Fix a severe recovery bug that can lead to data corruption for SMB clients.
+
+* The statd-callout script now runs as root via sudo.
+
+* "ctdb delip" no longer fails if it is unable to move the IP.
+
+* A race in the ctdb tool's ipreallocate code was fixed.  This fixes
+  potential bugs in the "disable", "enable", "stop", "continue",
+  "ban", "unban", "ipreallocate" and "sync" commands.
+
+* The monitor cancellation code could sometimes hang indefinitely.
+  This could cause "ctdb stop" and "ctdb shutdown" to fail.
+
+Important internal changes
+--------------------------
+
+* The socket I/O handling has been optimised to improve performance.
+
+* IPs will not be assigned to nodes during CTDB initialisation.  They
+  will only be assigned to nodes that are in the "running" runstate.
+
+* Improved database locking code.  One improvement is to use a
+  standalone locking helper executable - the avoids creating many
+  forked copies of ctdbd and potentially running a node out of memory.
+
+* New control CTDB_CONTROL_IPREALLOCATED is now used to generate
+  "ipreallocated" events.
+
+* Message handlers are now indexed, providing a significant
+  performance improvement.
diff --git a/lib/replace/Makefile.in b/lib/replace/Makefile.in
deleted file mode 100644
index 65f8125..0000000
--- a/lib/replace/Makefile.in
+++ /dev/null
@@ -1,70 +0,0 @@
-#!gmake
-#
-CC = @CC@
-prefix = @prefix@
-exec_prefix = @exec_prefix@
-bindir = @bindir@
-includedir = @includedir@
-libdir = @libdir@
-VPATH = @libreplacedir@
-srcdir = @srcdir@
-builddir = @builddir@
-sharedbuilddir = @sharedbuilddir@
-INSTALLCMD = @INSTALL@
-LIBS = @LIBS@
-
-.PHONY: test all showflags install installcheck clean distclean realdistclean
-
-CFLAGS=-I. @CFLAGS@
-LDFLAGS=@LDFLAGS@
-
-OBJS = @LIBREPLACEOBJ@
-
-all: showflags libreplace.a testsuite
-
-showflags:
-	@echo 'libreplace will be compiled with flags:'
-	@echo '  CC     = $(CC)'
-	@echo '  CFLAGS = $(CFLAGS)'
-	@echo '  LDFLAGS= $(LDFLAGS)'
-	@echo '  LIBS   = $(LIBS)'
-
-install: all
-	${INSTALLCMD} -d $(libdir)
-	${INSTALLCMD} -m 644 libreplace.a $(libdir)
-
-shared-build: all
-	${INSTALLCMD} -d $(sharedbuilddir)/include
-	${INSTALLCMD} -m 644 replace.h $(sharedbuilddir)/include
-	${INSTALLCMD} -d $(sharedbuilddir)/lib
-	${INSTALLCMD} -m 644 libreplace.a $(sharedbuilddir)/lib
-
-libreplace.a: $(OBJS)
-	ar -rcsv $@ $(OBJS)
-
-test: all
-	./testsuite
-
-installcheck: install test
-
-TEST_OBJS = test/main.o test/testsuite.o test/os2_delete.o test/strptime.o test/getifaddrs.o
-
-testsuite: libreplace.a $(TEST_OBJS)
-	$(CC) -o testsuite $(TEST_OBJS) -L. -lreplace $(LDFLAGS) $(LIBS)
-
-.c.o:
-	@echo Compiling $*.c
-	@mkdir -p `dirname $@`
-	@$(CC) $(CFLAGS) -c $< -o $@
-
-clean:
-	rm -f *.o test/*.o *.a testsuite
-	rm -f testfile.dat
-
-distclean: clean
-	rm -f *~ */*~
-	rm -f config.log config.status config.h config.cache
-	rm -f Makefile
-
-realdistclean: distclean
-	rm -f configure config.h.in
diff --git a/lib/replace/README b/lib/replace/README
index bf4e67f..9dd4f73 100644
--- a/lib/replace/README
+++ b/lib/replace/README
@@ -49,7 +49,6 @@ pread
 pwrite
 chown
 lchown
-getpass
 readline (the library)
 inet_ntoa
 inet_ntop
@@ -72,6 +71,8 @@ link
 readlink
 symlink
 realpath
+poll
+setproctitle
 
 Types:
 bool
@@ -80,6 +81,8 @@ uint{8,16,32,64}_t
 int{8,16,32,64}_t
 intptr_t
 sig_atomic_t
+blksize_t
+blkcnt_t
 
 Constants:
 PATH_NAME_MAX
diff --git a/lib/replace/aclocal.m4 b/lib/replace/aclocal.m4
deleted file mode 100644
index 5605e47..0000000
--- a/lib/replace/aclocal.m4
+++ /dev/null
@@ -1 +0,0 @@
-m4_include(libreplace.m4)
diff --git a/lib/replace/autogen-autotools.sh b/lib/replace/autogen-autotools.sh
deleted file mode 100755
index d46a427..0000000
--- a/lib/replace/autogen-autotools.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-rm -rf autom4te.cache
-rm -f configure config.h.in
-
-autoheader || exit 1
-autoconf || exit 1
-
-rm -rf autom4te.cache
-
-echo "Now run ./configure and then make."
-exit 0
-
diff --git a/lib/replace/autogen.sh b/lib/replace/autogen.sh
deleted file mode 100755
index d46a427..0000000
--- a/lib/replace/autogen.sh
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-rm -rf autom4te.cache
-rm -f configure config.h.in
-
-autoheader || exit 1
-autoconf || exit 1
-
-rm -rf autom4te.cache
-
-echo "Now run ./configure and then make."
-exit 0
-
diff --git a/lib/replace/build_macros.m4 b/lib/replace/build_macros.m4
deleted file mode 100644
index c036668..0000000
--- a/lib/replace/build_macros.m4
+++ /dev/null
@@ -1,14 +0,0 @@
-AC_DEFUN(BUILD_WITH_SHARED_BUILD_DIR,
-  [ AC_ARG_WITH([shared-build-dir],
-                [AC_HELP_STRING([--with-shared-build-dir=DIR],
-                                [temporary build directory where libraries are installed [$srcdir/sharedbuild]])])
-
-    sharedbuilddir="$srcdir/sharedbuild"
-    if test x"$with_shared_build_dir" != x; then
-        sharedbuilddir=$with_shared_build_dir
-        CFLAGS="$CFLAGS -I$with_shared_build_dir/include"
-        LDFLAGS="$LDFLAGS -L$with_shared_build_dir/lib"
-    fi
-    AC_SUBST(sharedbuilddir)
-  ])
-
diff --git a/lib/replace/config.guess b/lib/replace/config.guess
deleted file mode 100755
index da83314..0000000
--- a/lib/replace/config.guess
+++ /dev/null
@@ -1,1561 +0,0 @@
-#! /bin/sh
-# Attempt to guess a canonical system name.
-#   Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-#   2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
-#   Free Software Foundation, Inc.
-
-timestamp='2009-04-27'
-
-# This file 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 2 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, write to the Free Software
-# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
-# 02110-1301, USA.
-#
-# As a special exception to the GNU General Public License, if you
-# distribute this file as part of a program that contains a
-# configuration script generated by Autoconf, you may include it under
-# the same distribution terms that you use for the rest of that program.
-
-
-# Originally written by Per Bothner <per at bothner.com>.
-# Please send patches to <config-patches at gnu.org>.  Submit a context
-# diff and a properly formatted ChangeLog entry.
-#
-# This script attempts to guess a canonical system name similar to
-# config.sub.  If it succeeds, it prints the system name on stdout, and
-# exits with 0.  Otherwise, it exits with 1.
-#
-# The plan is that this can be called by configure scripts if you
-# don't specify an explicit build system type.
-
-me=`echo "$0" | sed -e 's,.*/,,'`
-
-usage="\
-Usage: $0 [OPTION]
-
-Output the configuration name of the system \`$me' is run on.
-
-Operation modes:
-  -h, --help         print this help, then exit
-  -t, --time-stamp   print date of last modification, then exit
-  -v, --version      print version number, then exit
-
-Report bugs and patches to <config-patches at gnu.org>."
-
-version="\
-GNU config.guess ($timestamp)
-
-Originally written by Per Bothner.
-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
-
-This is free software; see the source for copying conditions.  There is NO
-warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-
-help="
-Try \`$me --help' for more information."
-
-# Parse command line
-while test $# -gt 0 ; do
-  case $1 in
-    --time-stamp | --time* | -t )
-       echo "$timestamp" ; exit ;;
-    --version | -v )
-       echo "$version" ; exit ;;
-    --help | --h* | -h )
-       echo "$usage"; exit ;;
-    -- )     # Stop option processing
-       shift; break ;;
-    - )	# Use stdin as input.
-       break ;;
-    -* )
-       echo "$me: invalid option $1$help" >&2
-       exit 1 ;;
-    * )
-       break ;;
-  esac
-done
-
-if test $# != 0; then
-  echo "$me: too many arguments$help" >&2
-  exit 1
-fi
-
-trap 'exit 1' 1 2 15
-
-# CC_FOR_BUILD -- compiler used by this script. Note that the use of a
-# compiler to aid in system detection is discouraged as it requires
-# temporary files to be created and, as you can see below, it is a
-# headache to deal with in a portable fashion.
-
-# Historically, `CC_FOR_BUILD' used to be named `HOST_CC'. We still
-# use `HOST_CC' if defined, but it is deprecated.
-
-# Portable tmp directory creation inspired by the Autoconf team.
-
-set_cc_for_build='
-trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
-trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
-: ${TMPDIR=/tmp} ;
- { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
- { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
- { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
- { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;


-- 
CTDB repository


More information about the samba-cvs mailing list