summaryrefslogtreecommitdiffstats
path: root/ctdb/server/ctdbd.c
diff options
context:
space:
mode:
authorRonnie Sahlberg <ronniesahlberg@gmail.com>2008-07-10 10:37:22 +1000
committerRonnie Sahlberg <ronniesahlberg@gmail.com>2008-07-10 10:37:22 +1000
commitab8535eaa5073737391a6d160e6f34377061d20e (patch)
tree2fce9e43d09135597efede6bed758a71158e1758 /ctdb/server/ctdbd.c
parent3c0d725e0bd4efd744d2d3c3a8293ede8203437b (diff)
downloadsamba-ab8535eaa5073737391a6d160e6f34377061d20e.tar.gz
samba-ab8535eaa5073737391a6d160e6f34377061d20e.tar.xz
samba-ab8535eaa5073737391a6d160e6f34377061d20e.zip
make LVS a capability so that we can see which nodes are configured with
LVS and which are not using LVS. "ctdb getcapabilities" (This used to be ctdb commit 172d01fb34f032e098b1c77a7b0f17bf11301640)
Diffstat (limited to 'ctdb/server/ctdbd.c')
-rw-r--r--ctdb/server/ctdbd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/ctdb/server/ctdbd.c b/ctdb/server/ctdbd.c
index aa5253ac1d..b7979049c1 100644
--- a/ctdb/server/ctdbd.c
+++ b/ctdb/server/ctdbd.c
@@ -45,6 +45,7 @@ static struct {
int start_as_disabled;
int no_lmaster;
int no_recmaster;
+ int lvs;
} options = {
.nlist = ETCDIR "/ctdb/nodes",
.transport = "tcp",
@@ -124,6 +125,7 @@ int main(int argc, const char *argv[])
{ "start-as-disabled", 0, POPT_ARG_NONE, &options.start_as_disabled, 0, "Node starts in disabled state", NULL },
{ "no-lmaster", 0, POPT_ARG_NONE, &options.no_lmaster, 0, "disable lmaster role on this node", NULL },
{ "no-recmaster", 0, POPT_ARG_NONE, &options.no_recmaster, 0, "disable recmaster role on this node", NULL },
+ { "lvs", 0, POPT_ARG_NONE, &options.lvs, 0, "lvs is enabled on this node", NULL },
POPT_TABLEEND
};
int opt, ret;
@@ -213,6 +215,9 @@ int main(int argc, const char *argv[])
if (options.no_recmaster == 0) {
ctdb->capabilities |= CTDB_CAP_RECMASTER;
}
+ if (options.lvs != 0) {
+ ctdb->capabilities |= CTDB_CAP_LVS;
+ }
/* tell ctdb what nodes are available */
ctdb_load_nodes_file(ctdb);