| 108 | } |
| 109 | |
| 110 | static 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 | |
| 126 | static void |
| 127 | st_global_callback(stonith_t * stonith, stonith_callback_data_t *data) |
nothing calls this directly
no test coverage detected