[Cluster-devel] cluster/rgmanager/src/daemons restree.c
lhh at sourceware.org
lhh at sourceware.org
Thu Sep 21 18:04:06 UTC 2006
CVSROOT: /cvs/cluster
Module name: cluster
Changes by: lhh at sourceware.org 2006-09-21 18:04:04
Modified files:
rgmanager/src/daemons: restree.c
Log message:
Apply resource-instance-name.patch
Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/rgmanager/src/daemons/restree.c.diff?cvsroot=cluster&r1=1.22&r2=1.23
--- cluster/rgmanager/src/daemons/restree.c 2006/08/11 15:06:27 1.22
+++ cluster/rgmanager/src/daemons/restree.c 2006/09/21 18:04:04 1.23
@@ -182,11 +182,13 @@
Store the OCF Resource Instance (primary attr)
*/
n = strlen(OCF_RESOURCE_INSTANCE_STR) +
+ strlen(res->r_rule->rr_type) + 1 +
strlen(res->r_attrs[0].ra_value) + 2;
val = malloc(n);
if (!val)
return;
- snprintf(val, n, "%s=%s", OCF_RESOURCE_INSTANCE_STR,
+ snprintf(val, n, "%s=%s:%s", OCF_RESOURCE_INSTANCE_STR,
+ res->r_rule->rr_type,
res->r_attrs[0].ra_value);
*env = val; env++;
More information about the Cluster-devel
mailing list