e 19 daemons/controld/controld_alerts.h void crmd_alert_fencing_op(stonith_event_t *e); e 770 daemons/controld/controld_execd_state.c crmd_alert_fencing_op(stonith_event_t * e) e 785 daemons/controld/controld_execd_state.c e->action, e->target, e 786 daemons/controld/controld_execd_state.c (e->executioner? e->executioner : "<no-one>"), e 787 daemons/controld/controld_execd_state.c e->client_origin, e->origin, e 788 daemons/controld/controld_execd_state.c pcmk_strerror(e->result), e->id); e 791 daemons/controld/controld_execd_state.c e->target, e->operation, desc, e->result); e 407 daemons/controld/controld_fencing.c tengine_stonith_connection_destroy(stonith_t *st, stonith_event_t *e) e 43 daemons/execd/pacemaker-execd.c stonith_connection_destroy_cb(stonith_t * st, stonith_event_t * e) e 116 daemons/fenced/cts-fence-helper.c st_callback(stonith_t * st, stonith_event_t * e) e 123 daemons/fenced/cts-fence-helper.c e->operation, e->origin, e->result == pcmk_ok ? "completed" : "failed", e 124 daemons/fenced/cts-fence-helper.c e->target, e->executioner ? e->executioner : "<none>", e 125 daemons/fenced/cts-fence-helper.c pcmk_strerror(e->result), e->id); e 67 include/crm/cluster/election_internal.h void election_fini(election_t *e); e 68 include/crm/cluster/election_internal.h void election_reset(election_t *e); e 71 include/crm/cluster/election_internal.h void election_timeout_set_period(election_t *e, guint period_ms); e 72 include/crm/cluster/election_internal.h void election_timeout_stop(election_t *e); e 74 include/crm/cluster/election_internal.h void election_vote(election_t *e); e 75 include/crm/cluster/election_internal.h bool election_check(election_t *e); e 76 include/crm/cluster/election_internal.h void election_remove(election_t *e, const char *uname); e 77 include/crm/cluster/election_internal.h enum election_result election_state(election_t *e); e 78 include/crm/cluster/election_internal.h enum election_result election_count_vote(election_t *e, xmlNode *vote, bool can_win); e 79 include/crm/cluster/election_internal.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 40 lib/cluster/election.c election_complete(election_t *e) e 42 lib/cluster/election.c e->state = election_won; e 43 lib/cluster/election.c if (e->cb != NULL) { e 44 lib/cluster/election.c e->cb(e); e 46 lib/cluster/election.c election_reset(e); e 52 lib/cluster/election.c election_t *e = user_data; e 54 lib/cluster/election.c crm_info("%s timed out, declaring local node as winner", e->name); e 55 lib/cluster/election.c election_complete(e); e 67 lib/cluster/election.c election_state(election_t *e) e 69 lib/cluster/election.c return (e == NULL)? election_error : e->state; e 91 lib/cluster/election.c election_t *e = NULL; e 97 lib/cluster/election.c e = calloc(1, sizeof(election_t)); e 98 lib/cluster/election.c if (e == NULL) { e 103 lib/cluster/election.c e->uname = strdup(uname); e 104 lib/cluster/election.c if (e->uname == NULL) { e 106 lib/cluster/election.c free(e); e 110 lib/cluster/election.c e->name = name? crm_strdup_printf("election-%s", name) e 112 lib/cluster/election.c e->cb = cb; e 113 lib/cluster/election.c e->timeout = mainloop_timer_add(e->name, period_ms, FALSE, e 114 lib/cluster/election.c election_timer_cb, e); e 115 lib/cluster/election.c crm_trace("Created %s", e->name); e 116 lib/cluster/election.c return e; e 129 lib/cluster/election.c election_remove(election_t *e, const char *uname) e 131 lib/cluster/election.c if ((e != NULL) && (uname != NULL) && (e->voted != NULL)) { e 132 lib/cluster/election.c crm_trace("Discarding %s (no-)vote from lost peer %s", e->name, uname); e 133 lib/cluster/election.c g_hash_table_remove(e->voted, uname); e 143 lib/cluster/election.c election_reset(election_t *e) e 145 lib/cluster/election.c if (e != NULL) { e 146 lib/cluster/election.c crm_trace("Resetting election %s", e->name); e 147 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 148 lib/cluster/election.c if (e->voted) { e 149 lib/cluster/election.c crm_trace("Destroying voted cache with %d members", g_hash_table_size(e->voted)); e 150 lib/cluster/election.c g_hash_table_destroy(e->voted); e 151 lib/cluster/election.c e->voted = NULL; e 165 lib/cluster/election.c election_fini(election_t *e) e 167 lib/cluster/election.c if (e != NULL) { e 168 lib/cluster/election.c election_reset(e); e 169 lib/cluster/election.c crm_trace("Destroying %s", e->name); e 170 lib/cluster/election.c mainloop_timer_del(e->timeout); e 171 lib/cluster/election.c free(e->uname); e 172 lib/cluster/election.c free(e->name); e 173 lib/cluster/election.c free(e); e 178 lib/cluster/election.c election_timeout_start(election_t *e) e 180 lib/cluster/election.c if (e != NULL) { e 181 lib/cluster/election.c mainloop_timer_start(e->timeout); e 191 lib/cluster/election.c election_timeout_stop(election_t *e) e 193 lib/cluster/election.c if (e != NULL) { e 194 lib/cluster/election.c mainloop_timer_stop(e->timeout); e 205 lib/cluster/election.c election_timeout_set_period(election_t *e, guint period) e 207 lib/cluster/election.c if (e != NULL) { e 208 lib/cluster/election.c mainloop_timer_set_period(e->timeout, period); e 289 lib/cluster/election.c election_vote(election_t *e) e 295 lib/cluster/election.c if (e == NULL) { e 300 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 303 lib/cluster/election.c e->name); e 307 lib/cluster/election.c election_reset(e); e 308 lib/cluster/election.c e->state = election_in_progress; e 311 lib/cluster/election.c e->count++; e 313 lib/cluster/election.c crm_xml_add_int(vote, F_CRM_ELECTION_ID, e->count); e 321 lib/cluster/election.c crm_debug("Started %s round %d", e->name, e->count); e 322 lib/cluster/election.c election_timeout_start(e); e 342 lib/cluster/election.c election_check(election_t *e) e 347 lib/cluster/election.c if (e == NULL) { e 351 lib/cluster/election.c if (e->voted == NULL) { e 352 lib/cluster/election.c crm_trace("%s check requested, but no votes received yet", e->name); e 356 lib/cluster/election.c voted_size = g_hash_table_size(e->voted); e 365 lib/cluster/election.c election_timeout_stop(e); e 371 lib/cluster/election.c crm_warn("Received too many votes in %s", e->name); e 379 lib/cluster/election.c g_hash_table_iter_init(&gIter, e->voted); e 386 lib/cluster/election.c crm_info("%s won by local node", e->name); e 387 lib/cluster/election.c election_complete(e); e 392 lib/cluster/election.c e->name, num_members - voted_size, num_members); e 421 lib/cluster/election.c parse_election_message(election_t *e, xmlNode *message, struct vote *vote) e 442 lib/cluster/election.c (e? e->name : "election")); e 454 lib/cluster/election.c (e? e->name : "election"), vote->op, vote->from); e 460 lib/cluster/election.c (e? e->name : "election"), vote->from, vote->op); e 466 lib/cluster/election.c if (e == NULL) { e 477 lib/cluster/election.c e->name, vote->op, vote->from); e 484 lib/cluster/election.c record_vote(election_t *e, struct vote *vote) e 489 lib/cluster/election.c CRM_ASSERT(e && vote && vote->from && vote->op); e 490 lib/cluster/election.c if (e->voted == NULL) { e 491 lib/cluster/election.c e->voted = pcmk__strkey_table(free, free); e 498 lib/cluster/election.c g_hash_table_replace(e->voted, voter_copy, vote_copy); e 532 lib/cluster/election.c election_count_vote(election_t *e, xmlNode *message, bool can_win) e 544 lib/cluster/election.c if (parse_election_message(e, message, &vote) == FALSE) { e 549 lib/cluster/election.c our_node = crm_get_peer(0, e->uname); e 563 lib/cluster/election.c } else if (we_are_owner && (vote.election_id != e->count)) { e 575 lib/cluster/election.c || pcmk__str_eq(vote.from, e->uname, pcmk__str_none)) { e 581 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from, e 585 lib/cluster/election.c if (e->state != election_in_progress) { e 588 lib/cluster/election.c e->name, vote.election_id, vote.op, vote.from); e 589 lib/cluster/election.c return e->state; e 591 lib/cluster/election.c record_vote(e, &vote); e 614 lib/cluster/election.c } else if (strcasecmp(e->uname, vote.from) > 0) { e 623 lib/cluster/election.c if (e->expires < tm_now) { e 624 lib/cluster/election.c e->election_wins = 0; e 625 lib/cluster/election.c e->expires = tm_now + STORM_INTERVAL; e 633 lib/cluster/election.c e->election_wins++; e 634 lib/cluster/election.c if (e->election_wins > (peers * peers)) { e 636 lib/cluster/election.c e->name, e->election_wins, STORM_INTERVAL); e 637 lib/cluster/election.c e->election_wins = 0; e 638 lib/cluster/election.c e->expires = tm_now + STORM_INTERVAL; e 639 lib/cluster/election.c if (e->wrote_blackbox == FALSE) { e 651 lib/cluster/election.c e->wrote_blackbox = TRUE; e 659 lib/cluster/election.c e->name, vote.election_id, vote.op, e->count, vote.from, e 661 lib/cluster/election.c return e->state; e 677 lib/cluster/election.c if ((e->last_election_loss == 0) e 678 lib/cluster/election.c || ((tm_now - e->last_election_loss) > (time_t) LOSS_DAMPEN)) { e 681 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, e 684 lib/cluster/election.c e->last_election_loss = 0; e 685 lib/cluster/election.c election_timeout_stop(e); e 688 lib/cluster/election.c e->state = election_start; e 689 lib/cluster/election.c return e->state; e 691 lib/cluster/election.c char *loss_time = ctime(&e->last_election_loss); e 699 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.from, e 704 lib/cluster/election.c e->last_election_loss = tm_now; e 707 lib/cluster/election.c e->name, vote.election_id, vote.election_owner, vote.op, e 710 lib/cluster/election.c election_reset(e); e 712 lib/cluster/election.c e->state = election_lost; e 713 lib/cluster/election.c return e->state; e 722 lib/cluster/election.c election_clear_dampening(election_t *e) e 724 lib/cluster/election.c e->last_election_loss = 0; e 81 lib/fencing/st_client.c void (*notify) (stonith_t * st, stonith_event_t * e); e 1581 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 138 tools/crm_mon.c static void mon_st_callback_event(stonith_t * st, stonith_event_t * e); e 139 tools/crm_mon.c static void mon_st_callback_display(stonith_t * st, stonith_event_t * e); e 2295 tools/crm_mon.c mon_st_callback_event(stonith_t * st, stonith_event_t * e) e 2302 tools/crm_mon.c e->operation, e->origin, e->target, pcmk_strerror(e->result), e 2303 tools/crm_mon.c e->id); e 2304 tools/crm_mon.c send_custom_trap(e->target, NULL, e->operation, pcmk_ok, e->result, 0, desc); e 2361 tools/crm_mon.c mon_st_callback_display(stonith_t * st, stonith_event_t * e)