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

Function native_resource_state

lib/pengine/native.c:498–508  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

496}
497
498enum rsc_role_e
499native_resource_state(const resource_t * rsc, gboolean current)
500{
501 enum rsc_role_e role = rsc->next_role;
502
503 if (current) {
504 role = rsc->role;
505 }
506 pe_rsc_trace(rsc, "%s state: %s", rsc->id, role2text(role));
507 return role;
508}
509
510node_t *
511native_location(resource_t * rsc, GListPtr * list, gboolean current)

Callers

nothing calls this directly

Calls 1

role2textFunction · 0.85

Tested by

no test coverage detected