MCPcopy Create free account
hub / github.com/ClusterLabs/pacemaker / is_managed

Function is_managed

pengine/allocate.c:1192–1210  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1190}
1191
1192static gboolean
1193is_managed(const resource_t * rsc)
1194{
1195 GListPtr gIter = rsc->children;
1196
1197 if (is_set(rsc->flags, pe_rsc_managed)) {
1198 return TRUE;
1199 }
1200
1201 for (; gIter != NULL; gIter = gIter->next) {
1202 resource_t *child_rsc = (resource_t *) gIter->data;
1203
1204 if (is_managed(child_rsc)) {
1205 return TRUE;
1206 }
1207 }
1208
1209 return FALSE;
1210}
1211
1212static gboolean
1213any_managed_resouces(pe_working_set_t * data_set)

Callers 1

any_managed_resoucesFunction · 0.85

Calls 1

is_setFunction · 0.85

Tested by

no test coverage detected