summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * tdb: cleanup: rename global_lock to allrecord_lock.Rusty Russell2010-04-225-29/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | The word global is overloaded in tdb. The global_lock inside struct tdb_context is used to indicate we hold a lock across all the chains. Rename it to allrecord_lock. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit e9114a758538d460d4f9deae5ce631bf44b1eff8) (This used to be ctdb commit a912657fb50a78b9b328c4564281fb9f7f1b3766)
| * tdb: cleanup: rename GLOBAL_LOCK to OPEN_LOCK.Rusty Russell2010-04-223-17/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The word global is overloaded in tdb. The GLOBAL_LOCK offset is used at open time to serialize initialization (and by the transaction code to block open). Rename it to OPEN_LOCK. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit 7ab422d6fbd4f8be02838089a41f872d538ee7a7) (This used to be ctdb commit a4f83910a485cf56f9b3df1dcf2ad36ebec57473)
| * tdb: make _tdb_transaction_cancel static.Rusty Russell2010-04-222-2/+1
| | | | | | | | | | | | | | | | | | | | | | Now tdb_open() calls tdb_transaction_cancel() instead of _tdb_transaction_cancel, we can make it static. Signed-off-by: Rusty Russell<rusty@rustcorp.com.au> (Imported from commit a6e0ef87d25734760fe77b87a9fd11db56760955) (This used to be ctdb commit d728a7f65bcd5f1aedbee41d6db5c35f10cb417e)
| * tdb: cleanup: split brlock and brunlock methods.Rusty Russell2010-04-227-117/+235
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is taken from the CCAN code base: rather than using tdb_brlock for locking and unlocking, we split it into brlock and brunlock functions. For extra debugging information, brunlock says what kind of lock it is unlocking (even though fnctl locks don't need this). This requires an extra argument to tdb_transaction_unlock() so we know whether the lock was upgraded to a write lock or not. We also use a "flags" argument tdb_brlock: 1) TDB_LOCK_NOWAIT replaces lck_type = F_SETLK (vs F_SETLKW). 2) TDB_LOCK_MARK_ONLY replaces setting TDB_MARK_LOCK bit in ltype. 3) TDB_LOCK_PROBE replaces the "probe" argument. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit 452b4a5a6efeecfb5c83475f1375ddc25bcddfbe) (This used to be ctdb commit 7b5fdc9c588237c83a1e70e5437e2e5510055b92)
| * Spelling fixes for tdb.Brad Hards2010-04-222-2/+2
| | | | | | | | | | | | | | | | Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de> (Imported from commit 09e756b1d651caef203a4b7e02234f6dea374b08) (This used to be ctdb commit b0dff4ed35ab2423b8fcc801cdaaebaa0d7654bb)
| * tdb: use fdatasync() instead of fsync() in transactionsAndrew Tridgell2010-04-221-1/+1
| | | | | | | | | | | | | | | | This might help on some filesystems (Imported from commit 1373e748aa53fbd3afe4d2377208257d42628d86) (This used to be ctdb commit e9ee4aaeb471a7f5ba4c97d3f76f406c1fe9b92f)
| * tdb: Apply some const, just for clarityVolker Lendecke2010-04-221-1/+1
| | | | | | | | | | | | (Imported from commit 6824c6f46ba7c15e8af91d5aa8b21a946b63107b) (This used to be ctdb commit 8b0a8a96edf8611257e58ea81ed872dc03ca5da6)
| * tdb: fix recovery reuse after crashRusty Russell2010-04-221-4/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If a process (or the machine) dies after just after writing the recovery head (pointing at the end of file), the recovery record will filled with 0x42. This will not invoke a recovery on open, since rec.magic != TDB_RECOVERY_MAGIC. Unfortunately, the first transaction commit will happily reuse that area: tdb_recovery_allocate() doesn't check the magic. The recovery record has length 0x42424242, and it writes that back into the now-valid-looking transaction header) for the next comer (which happens to be tdb_wipe_all in my tests). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit b37b452cb8c1f56b37b04abe7bffdede371ca361) (This used to be ctdb commit 8c8782ecbb347e026f67d82a39555c0e43b1e9f8)
| * tdb: give a name to the invalid recovery area constant (0)Rusty Russell2010-04-223-4/+5
| | | | | | | | | | | | | | | | Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> (Imported from commit 6269cdcd1538e2e3cead9e0f3c156b0363d607a0) (This used to be ctdb commit e0ca2e02120258aabca1e1586a58a8d672484fb5)
| * release-scripts: parametrize scriptsSimo Sorce2010-04-222-48/+67
| | | | | | | | | | | | | | | | | | | | | | This should make it easier to keep all release scripts alined as it will reduce the difference between them to ideally a few variables Also moves the tdb script in the scripts directory. (Imported from commit 6339de7f4fef46fb3ad32d1ecf9379f5b5d24ccb) (This used to be ctdb commit 8885b2206fba41ec289fda5dfd653ee676aa0dd3)
| * tdb: raise version to 1.2.1Simo Sorce2010-04-221-1/+1
| | | | | | | | | | | | | | | | | | after recent fixes we need to raise the version to 1.2.1 so that we can require also the right patched version. (Imported from commit 70534adee10fc6f5bba2d9304668dc6508e5de5a) (This used to be ctdb commit 84c971f33c24d32e5599aba7ba83bb474f7ac922)
* | Add a setting where CTDB will monitor and warn for low memory conditions.Ronnie Sahlberg2010-04-232-5/+18
| | | | | | | | | | | | | | | | CTDB_MONITOR_FREE_MEMORY_WARN BZ 59747 (This used to be ctdb commit 83446b2e7e28e3ed6627c1950053018b8799984a)
* | In the example script to remove all ip addresses after a ctdb crash,Ronnie Sahlberg2010-04-231-1/+1
| | | | | | | | | | | | | | add the NATGW address as one to be removed in addition to the public addresses. (This used to be ctdb commit 234b86fb19aae7a43f1dd2c0f69b03164fe5aaca)
* | add an example script that can be called from crontab to cleanupRonnie Sahlberg2010-04-223-0/+37
| | | | | | | | | | | | and release public ip addresses if ctdbd is no longer running (This used to be ctdb commit 1cdaaa0a3f53d1b075340a33dfdc42b534e99187)
* | add a missing ||Ronnie Sahlberg2010-04-221-1/+1
|/ | | | | | to make the 10.interface script not fail with a syntax error (This used to be ctdb commit a9831070344a6dcf46c55250f9d74a5870f37dfe)
* Fix a thinko in 2ea0a9f1a93781a0d036feb9fcc0d120b182922f.Martin Schwenke2010-04-201-2/+2
| | | | | | | | | If the driver is virtio_net then we assume that the link is up rather than ignoring the check altogether. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3044d07da2a58260fa06bf489890b279bcf3ec39)
* ethtool does not support virtio_net devices.Ralph Wuerthner2010-04-151-1/+2
| | | | | | | | | Skip link test for this type of devices Signed-off-by: Ralph Wuerthner <ralph.wuerthner@de.ibm.com> Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 2ea0a9f1a93781a0d036feb9fcc0d120b182922f)
* Merge branch 'master' of git://git.samba.org/sahlberg/ctdbMartin Schwenke2010-04-156-23/+79
|\ | | | | | | (This used to be ctdb commit 25cfa2aafd653c948430aae8729d293c86a6a68c)
| * Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-04-085-21/+77
| |\ | | | | | | | | | (This used to be ctdb commit 2a79d976f975ec1ecbd06c210cbb5e6a93068cec)
| | * Fix a compiler warningRonnie Sahlberg2010-04-081-1/+1
| | | | | | | | | | | | (This used to be ctdb commit 8825a8e3936e4ddfc1482d07a63a620249f01fe7)
| | * In the recovery daemon, keep track of which node we have assigned public ipRonnie Sahlberg2010-04-084-20/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | addresses and verify that the remote nodes have/keep a consistent view of assigned addresses. If a remote node has an inconsistent view of addresses visavi the recovery master this will trigger a full ip reallocation. (This used to be ctdb commit f3bf2ab61f8dbbc806ec23a68a87aaedd458e712)
| * | Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-04-072-2/+2
| |\| | | | | | | | | | (This used to be ctdb commit 685be0a7e830464e01dccc744362040a75bc96b5)
| | * Lower the loglevel for "Recovery lock successfully taken"Ronnie Sahlberg2010-04-072-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | from ERR to NOTICE BZ62086 (This used to be ctdb commit 7fa8486f9ffe2a039360b07423f734bdd884fe1d)
* | | Merge commit 'origin/master'Martin Schwenke2010-03-3134-677/+1385
|\| | | | | | | | | | | (This used to be ctdb commit 4fb662bba6d96d4c04dadd9f908c4184ef4e969a)
| * | Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-03-301-3/+25
| |\| | | | | | | | | | (This used to be ctdb commit 5ed7d6788b8f7bf71d7d66c3a620b1aec54dfd81)
| | * When we forcefully abort a running eventscript, dont log this as isRonnie Sahlberg2010-03-301-3/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | the script timedout. Instead send a different signal (SIGABRT) to the child process to silently kill the process group for the script and its children without logging anything. We abort any running "monitor" script anytime any other event is generated either by ctdbd itself or by "ctdb eventscript ..." BZ61043 (This used to be ctdb commit 9dd25cb751919799af9d8a23a0725343a8400e58)
| * | Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-03-301-2/+2
| |\| | | | | | | | | | (This used to be ctdb commit 2fb331d29f4756a7f45489a03cbd065d934f85bc)
| | * Reduce the loglevel for two log messages for Registering and Deregistering ↵Ronnie Sahlberg2010-03-301-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | server ids. BZ61890 (This used to be ctdb commit 944434eb6420774e42e58984c6ddaa326a6853bd)
| * | Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-03-291-1/+8
| |\| | | | | | | | | | (This used to be ctdb commit a1de6dff2011dcc8edfd3940a92bd1104a2c3936)
| | * In ctdb catdb, print the payload data length without the ctdb header lengthVolker Lendecke2010-03-291-1/+1
| | | | | | | | | | | | (This used to be ctdb commit 45b3fe253c1d00c571b351fc73415bc799df3083)
| | * Fix a typo in run_startrecovery_eventscriptVolker Lendecke2010-03-291-1/+1
| | | | | | | | | | | | (This used to be ctdb commit 4f807b3a2d859f13c3e59e1ae737e9b145d7d613)
| | * events:50.samba: wipe the local part of the serverid db before starting ↵Michael Adam2010-03-291-1/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | winbind/smnd/nmbd This is necessary for the new serverid approach. Michael (This used to be ctdb commit 8956f32e571093db7f285b83e4dd32960f8afc7c)
| * | In ctdb catdb, print the payload data length without the ctdb header lengthVolker Lendecke2010-03-241-1/+1
| | | | | | | | | | | | (This used to be ctdb commit 787274374411116266ee66455a67c127b8d558c1)
| * | Fix a typo in run_startrecovery_eventscriptVolker Lendecke2010-03-241-1/+1
| |/ | | | | | | (This used to be ctdb commit ae2cdd27af5a1a143020c8477d1e61068f21a4a4)
| * new version 1.0.114Ronnie Sahlberg2010-03-241-1/+3
| | | | | | | | (This used to be ctdb commit b07beb68bf2adf65e837669be0c7464852f829ac)
| * config: let 13.per_ip_routing use a flock for generate_auto_link_local()Stefan Metzmacher2010-03-181-9/+41
| | | | | | | | | | | | metze (This used to be ctdb commit dc2d0d0e559308ad2676f9ad973746c147d65eb9)
| * Merge commit 'obnox/master-rebase'Ronnie Sahlberg2010-03-114-79/+83
| |\ | | | | | | | | | (This used to be ctdb commit 216ceca7f886a9f0c4902b100f7ad44349821f9f)
| | * packaging: add tdbtool and tdbdump as dependencies to the RPMMichael Adam2010-03-101-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The init script relies on the existence. This should fix bug #6773 on bugzilla.samba.org: https://bugzilla.samba.org/show_bug.cgi?id=6773 Michael (This used to be ctdb commit 35e6aa1630732665deaed1e7fbf2c3bf6664895d)
| | * doc: regenerate ctdb(1) manpages after xml changeMichael Adam2010-03-102-78/+80
| | | | | | | | | | | | (This used to be ctdb commit 6b9315b140802dee5904c1db0d57205d9efc6c1c)
| | * doc: fix a linebreak in the example output of "ctdb getdbmap" in ctdb(1)Michael Adam2010-03-101-1/+2
| | | | | | | | | | | | (This used to be ctdb commit aab05d67dabf11be9063a2443af4d43bbc985fb6)
| * | Merge root@10.1.1.27:/shared/ctdb/ctdb-gitRonnie Sahlberg2010-03-112-2/+3
| |\ \ | | |/ | |/| | | | (This used to be ctdb commit e59310132d8126ee3afc191b5db56e80a32986e8)
| | * adjust a vacuum log levelChristian Ambach2010-03-111-1/+1
| | | | | | | | | | | | | | | | | | | | | made the severity of the decreasing interval log level the same as for the increasing, they are both just info logs because they don't report errors (This used to be ctdb commit fde29921f14a815ea68911d758485c9070f4eb2a)
| | * ctdb_setstatus in /etc/ctdb/functions was not working correctly because it ↵Wolfgang Mueller-Friedt2010-03-111-1/+2
| | | | | | | | | | | | | | | | | | was called with a wrong parameter list (This used to be ctdb commit e1e285d9f7fa3237dbbacca52a4eb2b264fa5986)
| * | Fix some more bashismsMathieu Parent2010-03-102-4/+9
| | | | | | | | | | | | (This used to be ctdb commit 3d82ca5b1b8ba2770c739493aa0cdd34bb4827d8)
| * | Correct nice_service()Mathieu Parent2010-03-101-2/+11
| | | | | | | | | | | | | | | | | | nice takes a binary as argument and not a function or builtin command (This used to be ctdb commit e21b40db64b314a24caa2bc611cb48b93decb5aa)
| * | doc: regenerate ctdb and ctdb manpages after xml changesMichael Adam2010-02-244-326/+390
| | | | | | | | | | | | | | | | | | Michael (This used to be ctdb commit 51fce280d3a7e2cce8e6e268a19d3594b38b9bb6)
| * | doc: add metainfo "manual" and "source" in the ctdbd manual pageMichael Adam2010-02-241-0/+2
| | | | | | | | | | | | (This used to be ctdb commit 8ffd7500d1740f2ce384d2c41fa5cca983c63cea)
| * | doc: fill metainfo "manual" and "source" in the ctdb manual pageMichael Adam2010-02-241-2/+2
| | | | | | | | | | | | (This used to be ctdb commit ea7debb162edfcf5844d27400f1448e0b92a55d6)
| * | Correction of spelling errors.Mathieu Parent2010-02-242-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * interupted -> interrupted * dont -> don't (thanks to lintian) See https://bugzilla.samba.org/show_bug.cgi?id=6935 (This used to be ctdb commit 942f597dd343f21e2f0fc5d8116d929286db7413)
| * | Correction of spelling errors in manpagesMathieu Parent2010-02-242-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | thanks to lintian See https://bugzilla.samba.org/show_bug.cgi?id=6935 (This used to be ctdb commit 402aad596e143c1ae3ec4bf2dfe3863c505bfc40)