pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_colocation.c File Reference
#include <crm_internal.h>
#include <stdbool.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/pengine/status.h>
#include <pacemaker-internal.h>
#include "crm/common/util.h"
#include "crm/common/xml_internal.h"
#include "crm/msg_xml.h"
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_colocation.c:

Go to the source code of this file.

Macros

#define EXPAND_CONSTRAINT_IDREF(__set, __rsc, __name)
 

Functions

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)
 
void pcmk__unpack_colocation (xmlNode *xml_obj, pe_working_set_t *data_set)
 
void pcmk__block_colocated_starts (pe_action_t *action, pe_working_set_t *data_set)
 
enum pcmk__coloc_affects pcmk__colocation_affects (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, bool preview)
 
void pcmk__apply_coloc_to_weights (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 
void pcmk__apply_coloc_to_priority (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint)
 

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); \
return; \
} \
} 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 24 of file pcmk_sched_colocation.c.

Function Documentation

◆ pcmk__apply_coloc_to_priority()

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

Definition at line 1027 of file pcmk_sched_colocation.c.

◆ pcmk__apply_coloc_to_weights()

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

Definition at line 948 of file pcmk_sched_colocation.c.

◆ pcmk__block_colocated_starts()

void pcmk__block_colocated_starts ( pe_action_t action,
pe_working_set_t data_set 
)

Definition at line 778 of file pcmk_sched_colocation.c.

◆ pcmk__colocation_affects()

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

Definition at line 839 of file pcmk_sched_colocation.c.

◆ pcmk__new_colocation()

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 194 of file pcmk_sched_colocation.c.

◆ pcmk__unpack_colocation()

void pcmk__unpack_colocation ( xmlNode *  xml_obj,
pe_working_set_t data_set 
)

Definition at line 693 of file pcmk_sched_colocation.c.