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

Function st_callback

fencing/test.c:110–124  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

108}
109
110static void st_callback(stonith_t *st, stonith_event_t *e)
111{
112 if(st->state == stonith_disconnected) {
113 crm_exit(1);
114 }
115
116 crm_notice("Operation %s requested by %s %s for peer %s. %s reported: %s (ref=%s)",
117 e->operation, e->origin, e->result == pcmk_ok?"completed":"failed",
118 e->target, e->executioner ? e->executioner : "<none>",
119 pcmk_strerror(e->result), e->id);
120
121 if (expected_notifications) {
122 expected_notifications--;
123 }
124}
125
126static void
127st_global_callback(stonith_t * stonith, stonith_callback_data_t *data)

Callers

nothing calls this directly

Calls 2

crm_exitFunction · 0.85
pcmk_strerrorFunction · 0.85

Tested by

no test coverage detected