pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions
pcmk_sched_ordering.c File Reference
#include <crm_internal.h>
#include <stdbool.h>
#include <glib.h>
#include <crm/crm.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_ordering.c:

Go to the source code of this file.

Macros

#define EXPAND_CONSTRAINT_IDREF(__set, __rsc, __name)
 
#define handle_restart_type(rsc, kind, flag, flags)
 

Enumerations

enum  pe_order_kind { pe_order_kind_optional, pe_order_kind_mandatory, pe_order_kind_serialize }
 
enum  ordering_symmetry { ordering_asymmetric, ordering_symmetric, ordering_symmetric_inverse }
 

Functions

void pcmk__new_ordering (pe_resource_t *lh_rsc, char *lh_action_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_action_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
 
void pcmk__unpack_ordering (xmlNode *xml_obj, pe_working_set_t *data_set)
 
void pcmk__disable_invalid_orderings (pe_working_set_t *data_set)
 
void pcmk__order_stops_before_shutdown (pe_node_t *node, pe_action_t *shutdown_op, pe_working_set_t *data_set)
 
void pcmk__apply_orderings (pe_working_set_t *data_set)
 
void pcmk__order_after_each (pe_action_t *after, GList *list)
 

Macro Definition Documentation

◆ EXPAND_CONSTRAINT_IDREF

#define EXPAND_CONSTRAINT_IDREF (   __set,
  __rsc,
  __name 
)
Value:
do { \
if (__rsc == NULL) { \
pcmk__config_err("%s: No resource found for %s", __set, __name); \
} \
} while (0)
GList * resources
Definition: pe_types.h:165
pe_working_set_t * data_set
G_GNUC_INTERNAL pe_resource_t * pcmk__find_constraint_resource(GList *rsc_list, const char *id)

Definition at line 31 of file pcmk_sched_ordering.c.

◆ handle_restart_type

#define handle_restart_type (   rsc,
  kind,
  flag,
  flags 
)
Value:
do { \
if (((kind) == pe_order_kind_optional) \
&& ((rsc)->restart_type == pe_restart_restart)) { \
pe__set_order_flags((flags), (flag)); \
} \
} while (0)
uint64_t flags
Definition: remote.c:149

Definition at line 371 of file pcmk_sched_ordering.c.

Enumeration Type Documentation

◆ ordering_symmetry

Enumerator
ordering_asymmetric 
ordering_symmetric 
ordering_symmetric_inverse 

Definition at line 25 of file pcmk_sched_ordering.c.

◆ pe_order_kind

Enumerator
pe_order_kind_optional 
pe_order_kind_mandatory 
pe_order_kind_serialize 

Definition at line 19 of file pcmk_sched_ordering.c.

Function Documentation

◆ pcmk__apply_orderings()

void pcmk__apply_orderings ( pe_working_set_t data_set)

Definition at line 1497 of file pcmk_sched_ordering.c.

◆ pcmk__disable_invalid_orderings()

void pcmk__disable_invalid_orderings ( pe_working_set_t data_set)

Definition at line 1251 of file pcmk_sched_ordering.c.

◆ pcmk__new_ordering()

void pcmk__new_ordering ( pe_resource_t lh_rsc,
char *  lh_action_task,
pe_action_t lh_action,
pe_resource_t rh_rsc,
char *  rh_action_task,
pe_action_t rh_action,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 673 of file pcmk_sched_ordering.c.

◆ pcmk__order_after_each()

void pcmk__order_after_each ( pe_action_t after,
GList *  list 
)

Definition at line 1552 of file pcmk_sched_ordering.c.

◆ pcmk__order_stops_before_shutdown()

void pcmk__order_stops_before_shutdown ( pe_node_t node,
pe_action_t shutdown_op,
pe_working_set_t data_set 
)

Definition at line 1277 of file pcmk_sched_ordering.c.

◆ pcmk__unpack_ordering()

void pcmk__unpack_ordering ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 1147 of file pcmk_sched_ordering.c.