summaryrefslogtreecommitdiffstats
path: root/ctdb/include/ctdb.h
diff options
context:
space:
mode:
authorRonnie Sahlberg <sahlberg@ronnie>2007-11-26 10:52:55 +1100
committerRonnie Sahlberg <sahlberg@ronnie>2007-11-26 10:52:55 +1100
commit9e73dc87ccfbb148af4cd83ae1415fcb7b6e2f23 (patch)
tree92a0a21fb0c2443723d3587032a79c4656ed1837 /ctdb/include/ctdb.h
parent0597be338660ce9d80e9011a7a7158dcb66be272 (diff)
downloadsamba-9e73dc87ccfbb148af4cd83ae1415fcb7b6e2f23.tar.gz
samba-9e73dc87ccfbb148af4cd83ae1415fcb7b6e2f23.tar.xz
samba-9e73dc87ccfbb148af4cd83ae1415fcb7b6e2f23.zip
Add a --node-ip argument so that one can specify which ip address a
specific instance of ctdbd should bind to. This helps when running a "virtual" cluster on a single machine where all instcances bind to different alias interfaces. If --node-ip is specified, then we will only try to bind to this ip address only. Othervise we fall back to the original method trying the ip addresses in /etc/ctdb/nodes one by one until we find one we can bind to. No variable in /etc/sysconfig/ctdb added since this parameter only makes sense in a virtual test/debug cluster. (This used to be ctdb commit d96cb02c2c24f9eabbc53d3d38e90dea49cff3e0)
Diffstat (limited to 'ctdb/include/ctdb.h')
-rw-r--r--ctdb/include/ctdb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/ctdb/include/ctdb.h b/ctdb/include/ctdb.h
index b3a65a36ab..a2245d220b 100644
--- a/ctdb/include/ctdb.h
+++ b/ctdb/include/ctdb.h
@@ -160,6 +160,12 @@ int ctdb_set_socketname(struct ctdb_context *ctdb, const char *socketname);
int ctdb_set_nlist(struct ctdb_context *ctdb, const char *nlist);
/*
+ Check that a specific ip address exists in the node list and returns
+ the id for the node or -1
+*/
+int ctdb_ip_to_nodeid(struct ctdb_context *ctdb, const char *nodeip);
+
+/*
start the ctdb protocol
*/
int ctdb_start(struct ctdb_context *ctdb);