mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
Use new CCS key names for nodes in the GULM version of clvmd.
based on a patch from Mike Tilstra
This commit is contained in:
parent
7a594c2acc
commit
a057a834b7
@ -1,6 +1,9 @@
|
||||
Version 2.00.33 -
|
||||
====================================
|
||||
|
||||
gulm clvmd now uses new ccsd key names.
|
||||
|
||||
|
||||
Version 2.00.32 - 22nd December 2004
|
||||
====================================
|
||||
Drop static/dl restriction for now.
|
||||
|
@ -858,12 +858,12 @@ static int get_all_cluster_nodes()
|
||||
char *clvmflagstr;
|
||||
char key[256];
|
||||
|
||||
sprintf(nodekey, "//cluster/nodes/node[%d]/@name", i);
|
||||
sprintf(nodekey, "//cluster/clusternodes/clusternode[%d]/@name", i);
|
||||
error = ccs_get(ctree, nodekey, &nodename);
|
||||
if (error)
|
||||
break;
|
||||
|
||||
sprintf(key, "//nodes/node[@name=\"%s\"]/clvm", nodename);
|
||||
sprintf(key, "//cluster/clusternodes/clusternode[@name=\"%s\"]/clvm", nodename);
|
||||
if (!ccs_get(ctree, key, &clvmflagstr))
|
||||
{
|
||||
clvmflag = atoi(clvmflagstr);
|
||||
@ -897,7 +897,7 @@ static int get_all_cluster_nodes()
|
||||
DEBUGLOG("node %s has clvm disabled\n", nodename);
|
||||
}
|
||||
free(nodename);
|
||||
error = ccs_get(ctree, "//nodes/node/@name", &nodename);
|
||||
error = ccs_get(ctree, "//cluster/clusternodes/clusternode/@name", &nodename);
|
||||
}
|
||||
|
||||
/* Finished with config file */
|
||||
|
Loading…
Reference in New Issue
Block a user