pacemaker  2.1.2-ada5c3b36
Scalable High-Availability cluster resource manager
Macros | Enumerations | Functions
libpacemaker_private.h File Reference
#include <crm/pengine/pe_types.h>
Include dependency graph for libpacemaker_private.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define pcmk__order_resource_actions(lh_rsc, lh_task, rh_rsc, rh_task, flags, data_set)
 
#define pcmk__order_starts(rsc1, rsc2, type, data_set)
 
#define pcmk__order_stops(rsc1, rsc2, type, data_set)
 

Enumerations

enum  pcmk__coloc_affects { pcmk__coloc_affects_nothing = 0, pcmk__coloc_affects_location, pcmk__coloc_affects_role }
 

Functions

G_GNUC_INTERNAL bool pcmk__graph_has_loop (pe_action_t *init_action, pe_action_t *action, pe_action_wrapper_t *input)
 
G_GNUC_INTERNAL void pcmk__order_vs_fence (pe_action_t *stonith_op, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__order_vs_unfence (pe_resource_t *rsc, pe_node_t *node, pe_action_t *action, enum pe_ordering order, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__fence_guest (pe_node_t *node, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL bool pcmk__node_unfenced (pe_node_t *node)
 
G_GNUC_INTERNAL bool pcmk__is_unfence_device (const pe_resource_t *rsc, const pe_working_set_t *data_set)
 
G_GNUC_INTERNAL pe_resource_tpcmk__find_constraint_resource (GList *rsc_list, const char *id)
 
G_GNUC_INTERNAL xmlNode * pcmk__expand_tags_in_sets (xmlNode *xml_obj, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag (pe_working_set_t *data_set, const char *id, pe_resource_t **rsc, pe_tag_t **tag)
 
G_GNUC_INTERNAL bool pcmk__tag_to_set (xmlNode *xml_obj, xmlNode **rsc_set, const char *attr, bool convert_rsc, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__create_internal_constraints (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__unpack_location (xmlNode *xml_obj, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL pe__location_tpcmk__new_location (const char *id, pe_resource_t *rsc, int node_weight, const char *discover_mode, pe_node_t *foo_node, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__apply_locations (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__apply_location (pe__location_t *constraint, pe_resource_t *rsc)
 
G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, bool preview)
 
G_GNUC_INTERNAL void pcmk__apply_coloc_to_weights (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 
G_GNUC_INTERNAL void pcmk__apply_coloc_to_priority (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 
G_GNUC_INTERNAL void pcmk__unpack_colocation (xmlNode *xml_obj, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__new_colocation (const char *id, const char *node_attr, int score, pe_resource_t *dependent, pe_resource_t *primary, const char *dependent_role, const char *primary_role, bool influence, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__block_colocated_starts (pe_action_t *action, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__new_ordering (pe_resource_t *lh_rsc, char *lh_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__unpack_ordering (xmlNode *xml_obj, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__disable_invalid_orderings (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__order_stops_before_shutdown (pe_node_t *node, pe_action_t *shutdown_op, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__apply_orderings (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket (xmlNode *xml_obj, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__order_probes (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL bool pcmk__is_failed_remote_node (pe_node_t *node)
 
G_GNUC_INTERNAL void pcmk__order_remote_connection_actions (pe_working_set_t *data_set)
 
G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest (pe_resource_t *rsc, pe_node_t *node)
 
G_GNUC_INTERNAL pe_node_tpcmk__connection_host_for_action (pe_action_t *action)
 
G_GNUC_INTERNAL void pcmk__substitute_remote_addr (pe_resource_t *rsc, GHashTable *params, pe_working_set_t *data_set)
 
G_GNUC_INTERNAL void pcmk__add_bundle_meta_to_xml (xmlNode *args_xml, pe_action_t *action)
 Add special bundle meta-attributes to XML. More...
 
G_GNUC_INTERNAL GList * pcmk__group_colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs)
 
G_GNUC_INTERNAL GList * pcmk__colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs)
 

Macro Definition Documentation

◆ pcmk__order_resource_actions

#define pcmk__order_resource_actions (   lh_rsc,
  lh_task,
  rh_rsc,
  rh_task,
  flags,
  data_set 
)
Value:
pcmk__new_ordering((lh_rsc), pcmk__op_key((lh_rsc)->id, (lh_task), 0), \
NULL, \
(rh_rsc), pcmk__op_key((rh_rsc)->id, (rh_task), 0), \
NULL, (flags), (data_set))
G_GNUC_INTERNAL void pcmk__new_ordering(pe_resource_t *lh_rsc, char *lh_task, pe_action_t *lh_action, pe_resource_t *rh_rsc, char *rh_task, pe_action_t *rh_action, enum pe_ordering type, pe_working_set_t *data_set)
char * pcmk__op_key(const char *rsc_id, const char *op_type, guint interval_ms)
Generate an operation key (RESOURCE_ACTION_INTERVAL)
Definition: operations.c:45
uint64_t flags
Definition: remote.c:149

Definition at line 146 of file libpacemaker_private.h.

◆ pcmk__order_starts

#define pcmk__order_starts (   rsc1,
  rsc2,
  type,
  data_set 
)
Value:
(rsc2), CRMD_ACTION_START, (type), (data_set))
enum crm_ais_msg_types type
Definition: cpg.c:48
#define CRMD_ACTION_START
Definition: crm.h:176
#define pcmk__order_resource_actions(lh_rsc, lh_task, rh_rsc, rh_task, flags, data_set)

Definition at line 153 of file libpacemaker_private.h.

◆ pcmk__order_stops

#define pcmk__order_stops (   rsc1,
  rsc2,
  type,
  data_set 
)
Value:
(rsc2), CRMD_ACTION_STOP, (type), (data_set))
enum crm_ais_msg_types type
Definition: cpg.c:48
#define CRMD_ACTION_STOP
Definition: crm.h:179
#define pcmk__order_resource_actions(lh_rsc, lh_task, rh_rsc, rh_task, flags, data_set)

Definition at line 157 of file libpacemaker_private.h.

Enumeration Type Documentation

◆ pcmk__coloc_affects

Enumerator
pcmk__coloc_affects_nothing 
pcmk__coloc_affects_location 
pcmk__coloc_affects_role 

Definition at line 80 of file libpacemaker_private.h.

Function Documentation

◆ pcmk__add_bundle_meta_to_xml()

G_GNUC_INTERNAL void pcmk__add_bundle_meta_to_xml ( xmlNode *  args_xml,
pe_action_t action 
)

Add special bundle meta-attributes to XML.

If a given action will be executed on a guest node (including a bundle), add the special bundle meta-attribute "container-attribute-target" and environment variable "physical_host" as XML attributes (using meta-attribute naming).

Parameters
[in]args_xmlXML to add attributes to
[in]actionAction to check

Definition at line 692 of file pcmk_sched_remote.c.

◆ pcmk__apply_coloc_to_priority()

G_GNUC_INTERNAL void pcmk__apply_coloc_to_priority ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint 
)

Definition at line 1021 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_weights()

G_GNUC_INTERNAL void pcmk__apply_coloc_to_weights ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint 
)

Definition at line 943 of file pcmk_sched_colocation.c.

◆ pcmk__apply_location()

G_GNUC_INTERNAL void pcmk__apply_location ( pe__location_t constraint,
pe_resource_t rsc 
)

Definition at line 616 of file pcmk_sched_location.c.

◆ pcmk__apply_locations()

G_GNUC_INTERNAL void pcmk__apply_locations ( pe_working_set_t data_set)

Definition at line 598 of file pcmk_sched_location.c.

◆ pcmk__apply_orderings()

G_GNUC_INTERNAL void pcmk__apply_orderings ( pe_working_set_t data_set)

Definition at line 1491 of file pcmk_sched_ordering.c.

◆ pcmk__block_colocated_starts()

G_GNUC_INTERNAL void pcmk__block_colocated_starts ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 773 of file pcmk_sched_colocation.c.

◆ pcmk__colocated_resources()

G_GNUC_INTERNAL GList* pcmk__colocated_resources ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 18 of file pcmk_sched_resource.c.

◆ pcmk__colocation_affects()

G_GNUC_INTERNAL enum pcmk__coloc_affects pcmk__colocation_affects ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
bool  preview 
)

Definition at line 834 of file pcmk_sched_colocation.c.

◆ pcmk__connection_host_for_action()

G_GNUC_INTERNAL pe_node_t* pcmk__connection_host_for_action ( pe_action_t action)

Definition at line 555 of file pcmk_sched_remote.c.

◆ pcmk__create_internal_constraints()

G_GNUC_INTERNAL void pcmk__create_internal_constraints ( pe_working_set_t data_set)

Definition at line 412 of file pcmk_sched_constraints.c.

◆ pcmk__disable_invalid_orderings()

G_GNUC_INTERNAL void pcmk__disable_invalid_orderings ( pe_working_set_t data_set)

Definition at line 1245 of file pcmk_sched_ordering.c.

◆ pcmk__expand_tags_in_sets()

G_GNUC_INTERNAL xmlNode* pcmk__expand_tags_in_sets ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 214 of file pcmk_sched_constraints.c.

◆ pcmk__fence_guest()

G_GNUC_INTERNAL void pcmk__fence_guest ( pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 369 of file pcmk_sched_fencing.c.

◆ pcmk__find_constraint_resource()

G_GNUC_INTERNAL pe_resource_t* pcmk__find_constraint_resource ( GList *  rsc_list,
const char *  id 
)

Definition at line 106 of file pcmk_sched_constraints.c.

◆ pcmk__graph_has_loop()

G_GNUC_INTERNAL bool pcmk__graph_has_loop ( pe_action_t init_action,
pe_action_t action,
pe_action_wrapper_t input 
)

Definition at line 1382 of file pcmk_graph_producer.c.

◆ pcmk__group_colocated_resources()

G_GNUC_INTERNAL GList* pcmk__group_colocated_resources ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 606 of file pcmk_sched_group.c.

◆ pcmk__is_failed_remote_node()

G_GNUC_INTERNAL bool pcmk__is_failed_remote_node ( pe_node_t node)

Definition at line 516 of file pcmk_sched_remote.c.

◆ pcmk__is_unfence_device()

G_GNUC_INTERNAL bool pcmk__is_unfence_device ( const pe_resource_t rsc,
const pe_working_set_t data_set 
)

Definition at line 481 of file pcmk_sched_fencing.c.

◆ pcmk__new_colocation()

G_GNUC_INTERNAL void pcmk__new_colocation ( const char *  id,
const char *  node_attr,
int  score,
pe_resource_t dependent,
pe_resource_t primary,
const char *  dependent_role,
const char *  primary_role,
bool  influence,
pe_working_set_t data_set 
)

Definition at line 191 of file pcmk_sched_colocation.c.

◆ pcmk__new_location()

G_GNUC_INTERNAL pe__location_t* pcmk__new_location ( const char *  id,
pe_resource_t rsc,
int  node_weight,
const char *  discover_mode,
pe_node_t foo_node,
pe_working_set_t data_set 
)

Definition at line 539 of file pcmk_sched_location.c.

◆ pcmk__new_ordering()

G_GNUC_INTERNAL void pcmk__new_ordering ( pe_resource_t lh_rsc,
char *  lh_task,
pe_action_t lh_action,
pe_resource_t rh_rsc,
char *  rh_task,
pe_action_t rh_action,
enum pe_ordering  type,
pe_working_set_t data_set 
)

Definition at line 666 of file pcmk_sched_ordering.c.

◆ pcmk__node_unfenced()

G_GNUC_INTERNAL bool pcmk__node_unfenced ( pe_node_t node)

Definition at line 463 of file pcmk_sched_fencing.c.

◆ pcmk__order_probes()

G_GNUC_INTERNAL void pcmk__order_probes ( pe_working_set_t data_set)

Definition at line 1961 of file pcmk_sched_allocate.c.

◆ pcmk__order_remote_connection_actions()

G_GNUC_INTERNAL void pcmk__order_remote_connection_actions ( pe_working_set_t data_set)

Definition at line 412 of file pcmk_sched_remote.c.

◆ pcmk__order_stops_before_shutdown()

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

Definition at line 1271 of file pcmk_sched_ordering.c.

◆ pcmk__order_vs_fence()

G_GNUC_INTERNAL void pcmk__order_vs_fence ( pe_action_t stonith_op,
pe_working_set_t data_set 
)

Definition at line 310 of file pcmk_sched_fencing.c.

◆ pcmk__order_vs_unfence()

G_GNUC_INTERNAL void pcmk__order_vs_unfence ( pe_resource_t rsc,
pe_node_t node,
pe_action_t action,
enum pe_ordering  order,
pe_working_set_t data_set 
)

Definition at line 329 of file pcmk_sched_fencing.c.

◆ pcmk__rsc_corresponds_to_guest()

G_GNUC_INTERNAL bool pcmk__rsc_corresponds_to_guest ( pe_resource_t rsc,
pe_node_t node 
)

Definition at line 533 of file pcmk_sched_remote.c.

◆ pcmk__substitute_remote_addr()

G_GNUC_INTERNAL void pcmk__substitute_remote_addr ( pe_resource_t rsc,
GHashTable *  params,
pe_working_set_t data_set 
)

Definition at line 663 of file pcmk_sched_remote.c.

◆ pcmk__tag_to_set()

G_GNUC_INTERNAL bool pcmk__tag_to_set ( xmlNode *  xml_obj,
xmlNode **  rsc_set,
const char *  attr,
bool  convert_rsc,
pe_working_set_t data_set 
)

Definition at line 332 of file pcmk_sched_constraints.c.

◆ pcmk__unpack_colocation()

G_GNUC_INTERNAL void pcmk__unpack_colocation ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 688 of file pcmk_sched_colocation.c.

◆ pcmk__unpack_location()

G_GNUC_INTERNAL void pcmk__unpack_location ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 481 of file pcmk_sched_location.c.

◆ pcmk__unpack_ordering()

G_GNUC_INTERNAL void pcmk__unpack_ordering ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 1141 of file pcmk_sched_ordering.c.

◆ pcmk__unpack_rsc_ticket()

G_GNUC_INTERNAL void pcmk__unpack_rsc_ticket ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 413 of file pcmk_sched_tickets.c.

◆ pcmk__valid_resource_or_tag()

G_GNUC_INTERNAL bool pcmk__valid_resource_or_tag ( pe_working_set_t data_set,
const char *  id,
pe_resource_t **  rsc,
pe_tag_t **  tag 
)

Definition at line 182 of file pcmk_sched_constraints.c.