e 17 daemons/controld/controld_alerts.h void crmd_alert_fencing_op(stonith_event_t *e); e 785 daemons/controld/controld_execd_state.c crmd_alert_fencing_op(stonith_event_t * e) e 800 daemons/controld/controld_execd_state.c e->action, e->target, e 801 daemons/controld/controld_execd_state.c (e->executioner? e->executioner : "<no-one>"), e 802 daemons/controld/controld_execd_state.c e->client_origin, e->origin, e 803 daemons/controld/controld_execd_state.c pcmk_strerror(e->result), e->id); e 806 daemons/controld/controld_execd_state.c e->target, e->operation, desc, e->result); e 409 daemons/controld/controld_fencing.c tengine_stonith_connection_destroy(stonith_t *st, stonith_event_t *e) e 47 daemons/execd/pacemaker-execd.c stonith_connection_destroy_cb(stonith_t * st, stonith_event_t * e) e 115 daemons/fenced/cts-fence-helper.c st_callback(stonith_t * st, stonith_event_t * e) e 122 daemons/fenced/cts-fence-helper.c e->operation, e->origin, e->result == pcmk_ok ? "completed" : "failed", e 123 daemons/fenced/cts-fence-helper.c e->target, e->executioner ? e->executioner : "<none>", e 124 daemons/fenced/cts-fence-helper.c pcmk_strerror(e->result), e->id); e 67 include/crm/cluster/election.h void election_fini(election_t *e); e 68 include/crm/cluster/election.h void election_reset(election_t *e); e 71 include/crm/cluster/election.h void election_timeout_set_period(election_t *e, guint period_ms); e 72 include/crm/cluster/election.h void election_timeout_stop(election_t *e); e 74 include/crm/cluster/election.h void election_vote(election_t *e); e 75 include/crm/cluster/election.h bool election_check(election_t *e); e 76 include/crm/cluster/election.h void election_remove(election_t *e, const char *uname); e 77 include/crm/cluster/election.h enum election_result election_state(election_t *e); e 78 include/crm/cluster/election.h enum election_result election_count_vote(election_t *e, xmlNode *vote, bool can_win); e 79 include/crm/cluster/election.h void election_clear_dampening(election_t *e); e 52 include/crm/common/logging.h # define crm_extended_logging(t, e) qb_log_ctl((t), QB_LOG_CONF_EXTENDED, (e)) e 61 include/crm/common/logging.h crm_extended_logging(int t, int e) e 299 include/crm/stonith-ng.h void (*notify)(stonith_t *st, stonith_event_t *e)); e 37 lib/cluster/election.c static void election_complete(election_t *e) e 39 lib/cluster/election.c e->state = election_won; e 41 lib/cluster/election.c if(e->cb) { e 42 lib/cluster/election.c e->cb(e); e 45 lib/cluster/election.c election_reset(e); e 50 lib/cluster/election.c election_t *e = user_data; e 52 lib/cluster/election.c crm_info("%s timed out, declaring local node as winner", e->name); e 53 lib/cluster/election.c election_complete(e); e 58 lib/cluster/election.c election_state(election_t *e) e 60 lib/cluster/election.c if(e) { e 61 lib/cluster/election.c return e->state; e 85 lib/cluster/election.c election_t *e = NULL; e 91 lib/cluster/election.c e = calloc(1, sizeof(election_t)); e 92 lib/cluster/election.c if (e == NULL) { e 97 lib/cluster/election.c e->uname = strdup(uname); e 98 lib/cluster/election.c if (e->uname == NULL) { e 100 lib/cluster/election.c free(e); e 104 lib/cluster/election.c e->name = name? crm_strdup_printf("election-%s", name) e 106 lib/cluster/election.c e->cb = cb; e 107 lib/cluster/election.c e->timeout = mainloop_timer_add(e->name, period_ms, FALSE, e 108 lib/cluster/election.c election_timer_cb, e); e 109 lib/cluster/election.c crm_trace("Created %s", e->name); e 110 lib/cluster/election.c return e; e 123 lib/cluster/election.c election_remove(election_t *e, const char *uname) e 125 lib/cluster/election.c if(e && uname && e->voted) { e 126 lib/cluster/election.c crm_trace("Discarding %s (no-)vote from lost peer %s", e->name, uname); e 127 lib/cluster/election.c g_hash_table_remove(e->voted, uname); e 137 lib/cluster/election.c election_reset(election_t *e) e 139 lib/cluster/election.c if (e != NULL) { e 140 lib/cluster/election.c crm_trace("Resetting election %s", e->name); e 141 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 142 lib/cluster/election.c if (e->voted) { e 143 lib/cluster/election.c crm_trace("Destroying voted cache with %d members", g_hash_table_size(e->voted)); e 144 lib/cluster/election.c g_hash_table_destroy(e->voted); e 145 lib/cluster/election.c e->voted = NULL; e 159 lib/cluster/election.c election_fini(election_t *e) e 161 lib/cluster/election.c if(e) { e 162 lib/cluster/election.c election_reset(e); e 163 lib/cluster/election.c crm_trace("Destroying %s", e->name); e 164 lib/cluster/election.c mainloop_timer_del(e->timeout); e 165 lib/cluster/election.c free(e->uname); e 166 lib/cluster/election.c free(e->name); e 167 lib/cluster/election.c free(e); e 172 lib/cluster/election.c election_timeout_start(election_t *e) e 174 lib/cluster/election.c if(e) { e 175 lib/cluster/election.c mainloop_timer_start(e->timeout); e 185 lib/cluster/election.c election_timeout_stop(election_t *e) e 187 lib/cluster/election.c if(e) { e 188 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 199 lib/cluster/election.c election_timeout_set_period(election_t *e, guint period) e 201 lib/cluster/election.c if(e) { e 202 lib/cluster/election.c mainloop_timer_set_period(e->timeout, period); e 283 lib/cluster/election.c election_vote(election_t *e) e 289 lib/cluster/election.c if (e == NULL) { e 294 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 297 lib/cluster/election.c e->name); e 301 lib/cluster/election.c election_reset(e); e 302 lib/cluster/election.c e->state = election_in_progress; e 305 lib/cluster/election.c e->count++; e 307 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); e 315 lib/cluster/election.c crm_debug("Started %s round %d", e->name, e->count); e 316 lib/cluster/election.c election_timeout_start(e); e 336 lib/cluster/election.c election_check(election_t *e) e 341 lib/cluster/election.c if(e == NULL) { e 345 lib/cluster/election.c if (e->voted == NULL) { e 346 lib/cluster/election.c crm_trace("%s check requested, but no votes received yet", e->name); e 350 lib/cluster/election.c voted_size = g_hash_table_size(e->voted); e 359 lib/cluster/election.c election_timeout_stop(e); e 365 lib/cluster/election.c crm_warn("Received too many votes in %s", e->name); e 373 lib/cluster/election.c g_hash_table_iter_init(&gIter, e->voted); e 380 lib/cluster/election.c crm_info("%s won by local node", e->name); e 381 lib/cluster/election.c election_complete(e); e 386 lib/cluster/election.c e->name, num_members - voted_size, num_members); e 415 lib/cluster/election.c parse_election_message(election_t *e, xmlNode *message, struct vote *vote) e 436 lib/cluster/election.c (e? e->name : "election")); e 448 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); e 454 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); e 460 lib/cluster/election.c if (e == NULL) { e 471 lib/cluster/election.c e->name, vote->op, vote->from); e 478 lib/cluster/election.c record_vote(election_t *e, struct vote *vote) e 483 lib/cluster/election.c CRM_ASSERT(e && vote && vote->from && vote->op); e 484 lib/cluster/election.c if (e->voted == NULL) { e 485 lib/cluster/election.c e->voted = crm_str_table_new(); e 492 lib/cluster/election.c g_hash_table_replace(e->voted, voter_copy, vote_copy); e 526 lib/cluster/election.c election_count_vote(election_t *e, xmlNode *message, bool can_win) e 538 lib/cluster/election.c if (parse_election_message(e, message, &vote) == FALSE) { e 543 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 557 lib/cluster/election.c } else if (we_are_owner && (vote.election_id != e->count)) { e 569 lib/cluster/election.c || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) { e 575 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, e 579 lib/cluster/election.c if (e->state != election_in_progress) { e 582 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); e 583 lib/cluster/election.c return e->state; e 585 lib/cluster/election.c record_vote(e, &vote); e 608 lib/cluster/election.c } else if (strcasecmp(e->uname, vote.from) > 0) { e 617 lib/cluster/election.c if (e->expires < tm_now) { e 618 lib/cluster/election.c e->election_wins = 0; e 619 lib/cluster/election.c e->expires = tm_now + STORM_INTERVAL; e 627 lib/cluster/election.c e->election_wins++; e 628 lib/cluster/election.c if (e->election_wins > (peers * peers)) { e 630 lib/cluster/election.c e->name, e->election_wins, STORM_INTERVAL); e 631 lib/cluster/election.c e->election_wins = 0; e 632 lib/cluster/election.c e->expires = tm_now + STORM_INTERVAL; e 633 lib/cluster/election.c if (e->wrote_blackbox == FALSE) { e 645 lib/cluster/election.c e->wrote_blackbox = TRUE; e 653 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, e 655 lib/cluster/election.c return e->state; e 671 lib/cluster/election.c if ((e->last_election_loss == 0) e 672 lib/cluster/election.c || ((tm_now - e->last_election_loss) > (time_t) LOSS_DAMPEN)) { e 675 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, e 678 lib/cluster/election.c e->last_election_loss = 0; e 679 lib/cluster/election.c election_timeout_stop(e); e 682 lib/cluster/election.c e->state = election_start; e 683 lib/cluster/election.c return e->state; e 685 lib/cluster/election.c char *loss_time = ctime(&e->last_election_loss); e 693 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, e 698 lib/cluster/election.c e->last_election_loss = tm_now; e 701 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, e 704 lib/cluster/election.c election_reset(e); e 706 lib/cluster/election.c e->state = election_lost; e 707 lib/cluster/election.c return e->state; e 716 lib/cluster/election.c election_clear_dampening(election_t *e) e 718 lib/cluster/election.c e->last_election_loss = 0; e 80 lib/fencing/st_client.c void (*notify) (stonith_t * st, stonith_event_t * e); e 1589 lib/fencing/st_client.c void (*callback) (stonith_t * stonith, stonith_event_t * e)) e 77 lib/pacemaker/pcmk_fence.c notify_callback(stonith_t * st, stonith_event_t * e) e 79 lib/pacemaker/pcmk_fence.c if (e->result != pcmk_ok) { e 83 lib/pacemaker/pcmk_fence.c if (pcmk__str_eq(async_fence_data.target, e->target, pcmk__str_casei) && e 84 lib/pacemaker/pcmk_fence.c pcmk__str_eq(async_fence_data.action, e->action, pcmk__str_casei)) { e 86 lib/pacemaker/pcmk_fence.c async_fence_data.rc = e->result; e 130 tools/crm_mon.c static void mon_st_callback_event(stonith_t * st, stonith_event_t * e); e 131 tools/crm_mon.c static void mon_st_callback_display(stonith_t * st, stonith_event_t * e); e 2055 tools/crm_mon.c mon_st_callback_event(stonith_t * st, stonith_event_t * e) e 2062 tools/crm_mon.c e->operation, e->origin, e->target, pcmk_strerror(e->result), e 2063 tools/crm_mon.c e->id); e 2064 tools/crm_mon.c send_custom_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc); e 2104 tools/crm_mon.c mon_st_callback_display(stonith_t * st, stonith_event_t * e)