cluster/rgmanager/src/daemons restree.c
CVSROOT: /cvs/cluster
Module name: cluster
Branch: RHEL4
Changes by: lhh at sourceware.org 2006-09-21 18:03:30
Modified files:
rgmanager/src/daemons: restree.c
Log message:
Apply resource-instance-name.patch
rgmanager/src/daemons/restree.c +3 -1
@@ -181,11 +181,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++;