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

Function role2text

lib/pengine/common.c:347–365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

345}
346
347const char *
348role2text(enum rsc_role_e role)
349{
350 CRM_CHECK(role >= RSC_ROLE_UNKNOWN, return RSC_ROLE_UNKNOWN_S);
351 CRM_CHECK(role < RSC_ROLE_MAX, return RSC_ROLE_UNKNOWN_S);
352 switch (role) {
353 case RSC_ROLE_UNKNOWN:
354 return RSC_ROLE_UNKNOWN_S;
355 case RSC_ROLE_STOPPED:
356 return RSC_ROLE_STOPPED_S;
357 case RSC_ROLE_STARTED:
358 return RSC_ROLE_STARTED_S;
359 case RSC_ROLE_SLAVE:
360 return RSC_ROLE_SLAVE_S;
361 case RSC_ROLE_MASTER:
362 return RSC_ROLE_MASTER_S;
363 }
364 return RSC_ROLE_UNKNOWN_S;
365}
366
367enum rsc_role_e
368text2role(const char *role)

Callers 15

show_colocationFunction · 0.85
unpack_operationFunction · 0.85
clone_resource_stateFunction · 0.85
process_rsc_stateFunction · 0.85
unpack_lrm_rsc_stateFunction · 0.85
unpack_rsc_opFunction · 0.85
common_unpackFunction · 0.85
native_print_xmlFunction · 0.85
native_printFunction · 0.85
native_resource_stateFunction · 0.85
group_resource_stateFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected