summaryrefslogtreecommitdiffstats
path: root/ctdb/Makefile.in
Commit message (Collapse)AuthorAgeFilesLines
* ctdb-build: Remove duplicate library dependencyAmitay Isaacs2014-06-121-1/+1
| | | | | | | LIB_FLAGS includes TDB_LIBS. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Remove duplicate code from helper binariesAmitay Isaacs2014-06-121-4/+7
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-common: Separate system utilties that are ctdb independentAmitay Isaacs2014-06-121-1/+1
| | | | | | | | Routines in system_common and system_<os> are supposed to be ctdb functions with OS specific implementations. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-ib: Make infiniband transport compile againAmitay Isaacs2014-05-291-5/+7
| | | | | | | | | | | | | | | | | | Update included header files and fix compilation warnings. ib/ibwrapper.c: In function ‘ibw_stop’: ib/ibwrapper.c:1015:17: warning: comparison between ‘enum ibw_state_ctx’ and ‘enum ibw_state_conn’ [-Wenum-compare] if (ctx->state==IBWC_ERROR || ctx->state==IBWC_CONNECTED) { ^ ib/ibwrapper.c:1015:43: warning: comparison between ‘enum ibw_state_ctx’ and ‘enum ibw_state_conn’ [-Wenum-compare] if (ctx->state==IBWC_ERROR || ctx->state==IBWC_CONNECTED) { The current logic just seems wrong. The context of this line and the error checking in ibw_disconnect() suggest that these comparisons should use p->state rather than ctx->state, so do that. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-build: Move internal include files in a separate directoryAmitay Isaacs2014-05-271-1/+2
| | | | | | | | This will allow to build clustered samba with built-in ctdb tree rather than needing to install CTDB first. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-build: Build ctdb_version.h before compiling files that include itAmitay Isaacs2014-05-271-0/+3
| | | | | | | | This will correctly build ctdb_version.h before other targets when running make -j. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Michael Adam <obnox@samba.org>
* ctdb-build: AIX does not have working C99 vsnprintf, requires libreplaceAmitay Isaacs2014-03-041-2/+2
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-build: Remove auto-generated header file in distcleanAmitay Isaacs2014-03-041-0/+1
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb-daemon: Add helper process to execute event scriptsAmitay Isaacs2014-01-161-1/+6
| | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net>
* ctdb:build: install the new manpagesMichael Adam2013-12-091-0/+6
| | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
* ctdb:tests: New "autotest" Makefile.in targetMartin Schwenke2013-11-271-0/+3
| | | | | | | | | | | | This needs to run with socket wrapper and needs to stop after the 1st error. Pair-Programmed-With: Michael Adam <obnox@samba.org> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> Signed-off-by: Martin Schwenke <martin@meltin.net> Signed-off-by: Michael Adam <obnox@samba.org> Signed-off-by: Amitay Isaacs <amitay@gmail.com>
* packaging: Create runtime directories for CTDBAmitay Isaacs2013-10-251-0/+3
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit c7450f9e22133333bf82c88a17ac25990ebc77ab)
* packaging: Move ctdb/ directory from /var to /var/libAmitay Isaacs2013-10-251-0/+1
| | | | | | | | | Introduce CTDB_VARDIR variable that points to /var/lib/ctdb by default. This makes CTDB_VARDIR consistent across C code and scripts. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2c09aac71188f43cd592572b10ea30b7a2969678)
* Add missing events.d/99.timeoutMathieu Parent2013-10-241-0/+1
| | | | (This used to be ctdb commit 1f6cc8764e28058c56d0350147032b6e30cb355d)
* tests/tool: Remove references in libctdb in file and function namesMartin Schwenke2013-10-041-8/+8
| | | | | | | | | | | | | | | | | Main changes are: libctdb_test.c -> ctdb_test_stubs.c ctdb_tool_libctdb.c -> ctdb_functest.c ctdb_tool_stubby.c is gone, replaced with existing ctdb_test.c. Functions starting with "libctdb_test_" now start with "ctdb_test_stubs_". Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6182bd0c19f215a997efe5272e633b1b1bd0c882)
* libctdb: Remove incomplete libctdbAmitay Isaacs2013-10-041-21/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit c5a7f2b4ff011e1393c4ff34864f85e6b472ff07)
* tests: Do not use libctdb code in testsAmitay Isaacs2013-10-041-2/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit ae0d8f432ef98a72c85a6cd42c503b718bef0e4e)
* tools/ctdb: Do not use libctdb for commandline toolAmitay Isaacs2013-10-041-2/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit cd66282c635cf53386d8970b89c895076ea21cbd)
* tests: Remove unused test program ctdb_fetch_lock_onceAmitay Isaacs2013-10-041-7/+2
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 873b9cadbcc363a9e5f450b0a1feb1cf2ce1e6c9)
* build: Fix build dependencies for ctdb_lock_tdbAmitay Isaacs2013-08-221-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit eb8575718400c45626cd1b2e0fd247bc3ebff655)
* tests: Add a test program to hold a lock on a databaseAmitay Isaacs2013-08-011-1/+5
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit f6b066a23610fb0092298861c21a9b354b91e2f1)
* packaging: Bundle debug_locks.sh script in RPMAmitay Isaacs2013-07-161-0/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 5740155cc5de1a223412e8529aa1a383a5412514)
* packaging: No need to check for existence of scripts, they always doAmitay Isaacs2013-07-161-3/+3
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 67c227a5d30cb8487b20b19b20bdfa4613906609)
* build: Turn off all deprecation warningsMartin Schwenke2013-07-101-1/+1
| | | | | | | | | The "‘tevent_loop_allow_nesting’ is deprecated" warnings will be around for a while and are annoying. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 30a0040fbb7c4d97d107f0e55c600295c2603a68)
* build: Remove -DTEVENT_DEPRECATED_QUIET=1 from CFLAGSMartin Schwenke2013-07-101-1/+1
| | | | | | | | | | This reverts the last part of 788cdbddbc902a5b076d23473450065b551d274d - the rest of this has been implicitly reverted via tevent syncs. This is just leftover noise. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit b6bbfb4c464c39e322830cbbebcc51c225508584)
* initscript: Simpify initscript and control CTDB via new ctdbd_wrapperMartin Schwenke2013-07-101-0/+1
| | | | | | | | | | | | | | | Currently the initscript is very complex. This makes it hard to read and hard to add support for new init systems, such as systemd. Create a wrapper called ctdbd_wrapper to be installed alongside ctdbd. This is called by the initscript to start and stop ctdbd. It does the ctdbd option construct and waits until ctdbd is properly initialised before it exits. Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e3abc7eebab5cceddc4ce7817890dd5db9be3450)
* packaging: Install README.notify.d using %doc directiveAmitay Isaacs2013-07-041-1/+0
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 53d34eb2f9e5434dea4e7182b6af566a3a96a368)
* packaging: Install docs using %doc directiveAmitay Isaacs2013-07-041-10/+0
| | | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 6fe584d05543eebd24abd19bab502dc4da04e921)
* build: Enable VERBOSE option to display build command lineAmitay Isaacs2013-06-141-39/+47
| | | | | | | | make V=1 or make VERBOSE=1 will display build commands. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 02c63c591cc273122b3a547bb301b92f0e4bd217)
* build: Fix extra whitespacesAmitay Isaacs2013-05-291-7/+7
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 78cff9d54f241fb6a2943e50346f9c2ad9decc78)
* build: Use REPLACE_OBJ and CTDB_EXTERNAL_OBJ to simplify build rulesAmitay Isaacs2013-05-291-9/+13
| | | | | | | | | 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@gmail.com> (This used to be ctdb commit fa757b49374e44c2380d4457e9b0eb3582981fac)
* build: Support for building on AIX xlc compilerAmitay Isaacs2013-05-291-2/+6
| | | | | | | | xlc does not support -fPIC, -Wno-format-zero-length Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2cf95741fdab2ee5f724950a0b1ef257d6aeade7)
* build: Fix install paths for pcp pmdaMartin Schwenke2013-05-281-5/+5
| | | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> Pair-programmed-with: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 11af486754bb04899e3dc544157bf70530e66cd1)
* locking: Use separate locking helper binary for lockingAmitay Isaacs2013-05-241-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 7cde53a6cbe74b1e46f7e1bca298df82c08de866)
* locking: Add a standalone helper to lock record/dbAmitay Isaacs2013-05-241-1/+7
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit a08b6ac19506160f3fb5925ea025027dce07781d)
* build: Rename version.h to ctdb_version.hAmitay Isaacs2013-05-231-1/+1
| | | | | | | | This avoids clash with version.h from Samba tree. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit d18fcfff674e876abde8d51afec92d9c4a090d2f)
* scripts: Rework notify.sh to use notify.d/ directoryMartin Schwenke2013-05-231-0/+2
| | | | | | | | This makes it easier to add notification handlers. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit d29e9a420b133088bf23a847c8d1dbce56c25eb0)
* build: Create sudoers.d dir during make installChristian Ambach2013-05-201-0/+1
| | | | | | | | otherwise make install into non-standard prefix will fail Signed-off-by: Christian Ambach <ambi@samba.org> (This used to be ctdb commit 0c0752515b66661ffae24be5f138bd2fab4dec5c)
* eventscripts: 60.nfs uses nfs_check_rpc_services() to check NFS RPC servicesMartin Schwenke2013-05-071-0/+6
| | | | | | | | | | | | | | | | | | | * New directory nfs-rpc-checks.d/ replaces hardcoded rules in 60.nfs * Installation and packaging additions to handle nfs-rpc-checks.d/ * Unit test updates, including deleting 1 test that sanity checked test infrastructure * Test infrastructure changes to use nfs-rpc-checks.d/ Note that this removes support for $CTDB_NFS_SKIP_KNFSD_ALIVE_CHECK in 60.nfs. To get the equivalent behaviour, edit 20.nfsd.check and remove/comment all lines. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7e792d6768d9ca420ce3713cb122e63afd594b15)
* build: silence building of porting_testMichael Adam2013-04-171-1/+1
| | | | | | | Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit e96acf19b4d1e0f951ab92b88869a01ff06398be)
* statd-callout: Make sure statd callout script always runs as rootAmitay Isaacs2013-04-081-0/+1
| | | | | | | | | | | In RHEL 6+, rpc.statd runs as "rpcuser" instead of root as on RHEL 5. This prevents CTDB tool commands talking to daemon since "rpcuser" cannot access CTDB socket. Signed-off-by: Amitay Isaacs <amitay@gmail.com> Pair-Programmed-With: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit fe8c4880b371492a38554868d4ca10918c54e412)
* build: Fix a Makefile.in typoMartin Schwenke2013-02-051-1/+1
| | | | | | | | Objects are named *.o ;-) Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 25a20409fb39a94b64c13990c0eba4f75d482ecd)
* tests: Test portabilityMathieu Parent2013-01-221-0/+5
| | | | | | | | Curiously test_ctdb_sys_check_iface_exists fails on Linux Signed-off-by: Mathieu Parent <math.parent@gmail.com> (This used to be ctdb commit 109f428aa34f8f4cc0329880d2f4a5593a6cc6f3)
* build: Add missing LDFLAGSMathieu Parent2013-01-221-2/+2
| | | | | | | | Original Author: Simon Ruderich <simon@ruderich.org> Signed-off-by: Mathieu Parent <math.parent@gmail.com> (This used to be ctdb commit 506ecd186759675a1cf50a0a05a285fee03fc51e)
* build: Add rules to create include/version.h when building from git treeAmitay Isaacs2012-10-301-1/+7
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 8df7ea6b20417833792932487a082b3c71bb6837)
* packaging: Bundle README, COPYING and html version of manpagesAmitay Isaacs2012-10-221-0/+7
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 6871415f6cb50c4f9753067359f0e264d3f93871)
* build: Extract building of manpages in a separate MakefileAmitay Isaacs2012-10-221-14/+5
| | | | | | | | | This can then be used to build manpages/html when creating tarball. Do not build docs during a regular build, but only for install. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 3274cffe2052953b34141a82de6053b747532a88)
* Build: Set the default ctdb socket path at configure timeDavid Disseldorp2012-10-211-0/+2
| | | | | | | | | | | | | | | The ctdb socket path currently defaults to /tmp/ctdb.socket and can be modified at runtime using the --socket=filename option, common to both ctdb and ctdbd binaries. This change allows the default path to be set at configure time using the --with-socketpath=FILE argument. When not specified, the default path remains /tmp/ctdb.socket, documentation remains unchanged as a result. Signed-off-by: David Disseldorp <ddiss@samba.org> (This used to be ctdb commit f92b9c83a2f39fba9a141417a88de96fc8c592ff)
* ctdbd: Replace lockwait with locking API and remove ctdb_lockwait.cAmitay Isaacs2012-10-201-1/+1
| | | | | | Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 2126795153dacb255e441abcb36ee05107b6282a)
* ctdbd: locking: Provide non-blocking API for locking of TDB record/db/alldbAmitay Isaacs2012-10-201-1/+1
| | | | | | | | | | | | | This introduces a consistent API for handling locks on single record, complete db or all dbs. The locks are taken out in a child process. In cases of timeout, find the processes that currently hold the lock and log. Callback functions for locking requests take locked boolean to indicate whether the lock was successfully obtained or not. Signed-off-by: Amitay Isaacs <amitay@gmail.com> (This used to be ctdb commit 1af99cf0de9919dd89af1feab6d1bd18b95d82ff)