rsc_ticket 46 lib/pacemaker/pcmk_sched_tickets.c ticket_role_matches(const pe_resource_t *rsc, const rsc_ticket_t *rsc_ticket) rsc_ticket 48 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role == RSC_ROLE_UNKNOWN) rsc_ticket 49 lib/pacemaker/pcmk_sched_tickets.c || (rsc_ticket->role == rsc->role)) { rsc_ticket 53 lib/pacemaker/pcmk_sched_tickets.c role2text(rsc_ticket->role)); rsc_ticket 65 lib/pacemaker/pcmk_sched_tickets.c constraints_for_ticket(pe_resource_t *rsc, const rsc_ticket_t *rsc_ticket, rsc_ticket 70 lib/pacemaker/pcmk_sched_tickets.c CRM_CHECK((rsc != NULL) && (rsc_ticket != NULL), return); rsc_ticket 72 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->ticket->granted && !rsc_ticket->ticket->standby) { rsc_ticket 79 lib/pacemaker/pcmk_sched_tickets.c constraints_for_ticket((pe_resource_t *) gIter->data, rsc_ticket, rsc_ticket 86 lib/pacemaker/pcmk_sched_tickets.c rsc->id, rsc_ticket->ticket->id, rsc_ticket->id, rsc_ticket 87 lib/pacemaker/pcmk_sched_tickets.c role2text(rsc_ticket->role)); rsc_ticket 89 lib/pacemaker/pcmk_sched_tickets.c if (!rsc_ticket->ticket->granted && (rsc->running_on != NULL)) { rsc_ticket 91 lib/pacemaker/pcmk_sched_tickets.c switch (rsc_ticket->loss_policy) { rsc_ticket 99 lib/pacemaker/pcmk_sched_tickets.c if (rsc_ticket->role != RSC_ROLE_PROMOTED) { rsc_ticket 106 lib/pacemaker/pcmk_sched_tickets.c if (!ticket_role_matches(rsc, rsc_ticket)) { rsc_ticket 121 lib/pacemaker/pcmk_sched_tickets.c if (!ticket_role_matches(rsc, rsc_ticket)) { rsc_ticket 131 lib/pacemaker/pcmk_sched_tickets.c } else if (!rsc_ticket->ticket->granted) { rsc_ticket 133 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role != RSC_ROLE_PROMOTED) rsc_ticket 134 lib/pacemaker/pcmk_sched_tickets.c || (rsc_ticket->loss_policy == loss_ticket_stop)) { rsc_ticket 139 lib/pacemaker/pcmk_sched_tickets.c } else if (rsc_ticket->ticket->standby) { rsc_ticket 141 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role != RSC_ROLE_PROMOTED) rsc_ticket 142 lib/pacemaker/pcmk_sched_tickets.c || (rsc_ticket->loss_policy == loss_ticket_stop)) { rsc_ticket 523 lib/pacemaker/pcmk_sched_tickets.c rsc_ticket_t *rsc_ticket = (rsc_ticket_t *) item->data; rsc_ticket 525 lib/pacemaker/pcmk_sched_tickets.c if ((rsc_ticket->role == RSC_ROLE_PROMOTED) rsc_ticket 526 lib/pacemaker/pcmk_sched_tickets.c && (!rsc_ticket->ticket->granted || rsc_ticket->ticket->standby)) {