e 27 crmd/crmd_alerts.h void crmd_alert_fencing_op(stonith_event_t *e); e 756 crmd/lrm_state.c crmd_alert_fencing_op(stonith_event_t * e) e 771 crmd/lrm_state.c e->action, e->target, e 772 crmd/lrm_state.c (e->executioner? e->executioner : "<no-one>"), e 773 crmd/lrm_state.c e->client_origin, e->origin, e 774 crmd/lrm_state.c pcmk_strerror(e->result), e->id); e 777 crmd/lrm_state.c e->target, e->operation, desc, e->result); e 173 crmd/te_utils.c tengine_stonith_connection_destroy(stonith_t * st, stonith_event_t * e) e 216 fencing/admin.c notify_callback(stonith_t * st, stonith_event_t * e) e 218 fencing/admin.c if (e->result != pcmk_ok) { e 222 fencing/admin.c if (safe_str_eq(async_fence_data.target, e->target) && e 223 fencing/admin.c safe_str_eq(async_fence_data.action, e->action)) { e 225 fencing/admin.c async_fence_data.rc = e->result; e 114 fencing/test.c st_callback(stonith_t * st, stonith_event_t * e) e 121 fencing/test.c e->operation, e->origin, e->result == pcmk_ok ? "completed" : "failed", e 122 fencing/test.c e->target, e->executioner ? e->executioner : "<none>", e 123 fencing/test.c pcmk_strerror(e->result), e->id); e 38 include/crm/cluster/election.h void election_fini(election_t *e); e 39 include/crm/cluster/election.h void election_reset(election_t *e); e 42 include/crm/cluster/election.h void election_timeout_set_period(election_t *e, guint period_ms); e 43 include/crm/cluster/election.h void election_timeout_stop(election_t *e); e 45 include/crm/cluster/election.h void election_vote(election_t *e); e 46 include/crm/cluster/election.h bool election_check(election_t *e); e 47 include/crm/cluster/election.h void election_remove(election_t *e, const char *uname); e 48 include/crm/cluster/election.h enum election_result election_state(election_t *e); e 49 include/crm/cluster/election.h enum election_result election_count_vote(election_t *e, xmlNode *vote, bool can_win); e 40 include/crm/common/logging.h # define crm_extended_logging(t, e) qb_log_ctl((t), QB_LOG_CONF_EXTENDED, (e)) e 49 include/crm/common/logging.h crm_extended_logging(int t, int e) e 288 include/crm/stonith-ng.h void (*notify)(stonith_t *st, stonith_event_t *e)); e 34 lib/cluster/election.c static void election_complete(election_t *e) e 36 lib/cluster/election.c crm_info("Election %s complete", e->name); e 37 lib/cluster/election.c e->state = election_won; e 39 lib/cluster/election.c if(e->cb) { e 40 lib/cluster/election.c e->cb(e); e 43 lib/cluster/election.c election_reset(e); e 48 lib/cluster/election.c election_t *e = user_data; e 50 lib/cluster/election.c crm_info("Election %s %p timed out", e->name, e); e 51 lib/cluster/election.c election_complete(e); e 56 lib/cluster/election.c election_state(election_t *e) e 58 lib/cluster/election.c if(e) { e 59 lib/cluster/election.c return e->state; e 68 lib/cluster/election.c election_t *e = calloc(1, sizeof(election_t)); e 70 lib/cluster/election.c if(e != NULL) { e 72 lib/cluster/election.c e->name = crm_strdup_printf("election-%s", name); e 74 lib/cluster/election.c e->name = crm_strdup_printf("election-%u", count++); e 77 lib/cluster/election.c e->cb = cb; e 78 lib/cluster/election.c e->uname = strdup(uname); e 79 lib/cluster/election.c e->timeout = mainloop_timer_add(e->name, period_ms, FALSE, election_timer_cb, e); e 80 lib/cluster/election.c crm_trace("Created %s %p", e->name, e); e 82 lib/cluster/election.c return e; e 86 lib/cluster/election.c election_remove(election_t *e, const char *uname) e 88 lib/cluster/election.c if(e && uname && e->voted) { e 89 lib/cluster/election.c g_hash_table_remove(e->voted, uname); e 94 lib/cluster/election.c election_reset(election_t *e) e 96 lib/cluster/election.c crm_trace("Resetting election %s", e->name); e 97 lib/cluster/election.c if(e) { e 98 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 100 lib/cluster/election.c if (e && e->voted) { e 101 lib/cluster/election.c crm_trace("Destroying voted cache with %d members", g_hash_table_size(e->voted)); e 102 lib/cluster/election.c g_hash_table_destroy(e->voted); e 103 lib/cluster/election.c e->voted = NULL; e 108 lib/cluster/election.c election_fini(election_t *e) e 110 lib/cluster/election.c if(e) { e 111 lib/cluster/election.c election_reset(e); e 112 lib/cluster/election.c crm_trace("Destroying %s", e->name); e 113 lib/cluster/election.c mainloop_timer_del(e->timeout); e 114 lib/cluster/election.c free(e->uname); e 115 lib/cluster/election.c free(e->name); e 116 lib/cluster/election.c free(e); e 121 lib/cluster/election.c election_timeout_start(election_t *e) e 123 lib/cluster/election.c if(e) { e 124 lib/cluster/election.c mainloop_timer_start(e->timeout); e 129 lib/cluster/election.c election_timeout_stop(election_t *e) e 131 lib/cluster/election.c if(e) { e 132 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 137 lib/cluster/election.c election_timeout_set_period(election_t *e, guint period) e 139 lib/cluster/election.c if(e) { e 140 lib/cluster/election.c mainloop_timer_set_period(e->timeout, period); e 208 lib/cluster/election.c election_vote(election_t *e) e 214 lib/cluster/election.c if(e == NULL) { e 219 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 225 lib/cluster/election.c e->state = election_in_progress; e 228 lib/cluster/election.c e->count++; e 230 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); e 239 lib/cluster/election.c crm_debug("Started election %d", e->count); e 240 lib/cluster/election.c if (e->voted) { e 241 lib/cluster/election.c g_hash_table_destroy(e->voted); e 242 lib/cluster/election.c e->voted = NULL; e 245 lib/cluster/election.c election_timeout_start(e); e 250 lib/cluster/election.c election_check(election_t *e) e 255 lib/cluster/election.c if(e == NULL) { e 260 lib/cluster/election.c if (e->voted) { e 261 lib/cluster/election.c voted_size = g_hash_table_size(e->voted); e 269 lib/cluster/election.c election_timeout_stop(e); e 282 lib/cluster/election.c g_hash_table_iter_init(&gIter, e->voted); e 289 lib/cluster/election.c election_complete(e); e 304 lib/cluster/election.c election_count_vote(election_t *e, xmlNode *vote, bool can_win) e 331 lib/cluster/election.c if(e == NULL) { e 346 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 348 lib/cluster/election.c if (e->voted == NULL) { e 350 lib/cluster/election.c e->voted = crm_str_table_new(); e 368 lib/cluster/election.c } else if (election_id != e->count && crm_str_eq(our_node->uuid, election_owner, TRUE)) { e 386 lib/cluster/election.c g_hash_table_replace(e->voted, uname_copy, op_copy); e 403 lib/cluster/election.c if (crm_str_eq(from, e->uname, TRUE)) { e 410 lib/cluster/election.c g_hash_table_replace(e->voted, uname_copy, op_copy); e 436 lib/cluster/election.c } else if (e->uname == NULL) { e 440 lib/cluster/election.c } else if (strcasecmp(e->uname, from) > 0) { e 446 lib/cluster/election.c CRM_ASSERT(strcasecmp(e->uname, from) < 0); e 476 lib/cluster/election.c election_id, e->count, election_owner, op, from, reason); e 477 lib/cluster/election.c return e->state; e 487 lib/cluster/election.c election_timeout_stop(e); e 490 lib/cluster/election.c e->state = election_start; e 491 lib/cluster/election.c return e->state; e 504 lib/cluster/election.c election_timeout_stop(e); e 513 lib/cluster/election.c e->state = election_lost; e 514 lib/cluster/election.c return e->state; e 97 lib/fencing/st_client.c void (*notify) (stonith_t * st, stonith_event_t * e); e 1855 lib/fencing/st_client.c void (*callback) (stonith_t * stonith, stonith_event_t * e)) e 58 lrmd/main.c stonith_connection_destroy_cb(stonith_t * st, stonith_event_t * e) e 58 tools/crm_mon.c void mon_st_callback(stonith_t * st, stonith_event_t * e); e 4191 tools/crm_mon.c mon_st_callback(stonith_t * st, stonith_event_t * e) e 4194 tools/crm_mon.c e->operation, e->origin, e->target, pcmk_strerror(e->result), e 4195 tools/crm_mon.c e->id); e 4198 tools/crm_mon.c send_snmp_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc); e 4201 tools/crm_mon.c send_smtp_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc); e 4204 tools/crm_mon.c send_custom_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc);