pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_clone.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
#include <lib/pengine/variant.h>
Include dependency graph for pcmk_sched_clone.c:

Go to the source code of this file.

Macros

#define VARIANT_CLONE   1
 
#define pe__clear_action_summary_flags(flags, action, flag)
 

Functions

void distribute_children (pe_resource_t *rsc, GList *children, GList *nodes, int max, int per_host_max, pe_working_set_t *data_set)
 
pe_node_tpcmk__clone_allocate (pe_resource_t *rsc, const pe_node_t *prefer)
 
void clone_create_actions (pe_resource_t *rsc)
 
void clone_create_pseudo_actions (pe_resource_t *rsc, GList *children, notify_data_t **start_notify, notify_data_t **stop_notify)
 
void clone_internal_constraints (pe_resource_t *rsc)
 
gboolean is_child_compatible (const pe_resource_t *child_rsc, const pe_node_t *local_node, enum rsc_role_e filter, gboolean current)
 
pe_resource_tfind_compatible_child (const pe_resource_t *local_child, const pe_resource_t *rsc, enum rsc_role_e filter, gboolean current)
 
void pcmk__clone_apply_coloc_score (pe_resource_t *dependent, const pe_resource_t *primary, const pcmk__colocation_t *colocation, bool for_dependent)
 
enum action_tasks clone_child_action (pe_action_t *action)
 
enum pe_action_flags summary_action_flags (pe_action_t *action, GList *children, const pe_node_t *node)
 
enum pe_action_flags clone_action_flags (pe_action_t *action, const pe_node_t *node)
 
void clone_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void clone_expand (pe_resource_t *rsc)
 
bool clone_create_probe (pe_resource_t *rsc, pe_node_t *node)
 
void clone_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__clone_add_utilization (const pe_resource_t *rsc, const pe_resource_t *orig_rsc, GList *all_rscs, GHashTable *utilization)
 
void pcmk__clone_shutdown_lock (pe_resource_t *rsc)
 

Macro Definition Documentation

◆ pe__clear_action_summary_flags

#define pe__clear_action_summary_flags (   flags,
  action,
  flag 
)
Value:
do { \
flags = pcmk__clear_flags_as(__func__, __LINE__, LOG_TRACE, \
"Action summary", action->rsc->id, \
flags, flag, #flag); \
} while (0)
#define LOG_TRACE
Definition: logging.h:37
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:215

Definition at line 860 of file pcmk_sched_clone.c.

◆ VARIANT_CLONE

#define VARIANT_CLONE   1

Definition at line 17 of file pcmk_sched_clone.c.

Function Documentation

◆ clone_action_flags()

enum pe_action_flags clone_action_flags ( pe_action_t action,
const pe_node_t node 
)

Definition at line 912 of file pcmk_sched_clone.c.

◆ clone_append_meta()

void clone_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1098 of file pcmk_sched_clone.c.

◆ clone_child_action()

enum action_tasks clone_child_action ( pe_action_t action)

Definition at line 823 of file pcmk_sched_clone.c.

◆ clone_create_actions()

void clone_create_actions ( pe_resource_t rsc)

Definition at line 485 of file pcmk_sched_clone.c.

◆ clone_create_probe()

bool clone_create_probe ( pe_resource_t rsc,
pe_node_t node 
)

Definition at line 1063 of file pcmk_sched_clone.c.

◆ clone_create_pseudo_actions()

void clone_create_pseudo_actions ( pe_resource_t rsc,
GList *  children,
notify_data_t **  start_notify,
notify_data_t **  stop_notify 
)

Definition at line 502 of file pcmk_sched_clone.c.

◆ clone_expand()

void clone_expand ( pe_resource_t rsc)

Definition at line 940 of file pcmk_sched_clone.c.

◆ clone_internal_constraints()

void clone_internal_constraints ( pe_resource_t rsc)

Definition at line 568 of file pcmk_sched_clone.c.

◆ clone_rsc_location()

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 918 of file pcmk_sched_clone.c.

◆ distribute_children()

void distribute_children ( pe_resource_t rsc,
GList *  children,
GList *  nodes,
int  max,
int  per_host_max,
pe_working_set_t data_set 
)

Definition at line 179 of file pcmk_sched_clone.c.

◆ find_compatible_child()

pe_resource_t* find_compatible_child ( const pe_resource_t local_child,
const pe_resource_t rsc,
enum rsc_role_e  filter,
gboolean  current 
)

Definition at line 652 of file pcmk_sched_clone.c.

◆ is_child_compatible()

gboolean is_child_compatible ( const pe_resource_t child_rsc,
const pe_node_t local_node,
enum rsc_role_e  filter,
gboolean  current 
)

Definition at line 621 of file pcmk_sched_clone.c.

◆ pcmk__clone_add_utilization()

void pcmk__clone_add_utilization ( const pe_resource_t rsc,
const pe_resource_t orig_rsc,
GList *  all_rscs,
GHashTable *  utilization 
)

Definition at line 1148 of file pcmk_sched_clone.c.

◆ pcmk__clone_allocate()

pe_node_t* pcmk__clone_allocate ( pe_resource_t rsc,
const pe_node_t prefer 
)

Definition at line 292 of file pcmk_sched_clone.c.

◆ pcmk__clone_apply_coloc_score()

void pcmk__clone_apply_coloc_score ( pe_resource_t dependent,
const pe_resource_t primary,
const pcmk__colocation_t colocation,
bool  for_dependent 
)

Definition at line 699 of file pcmk_sched_clone.c.

◆ pcmk__clone_shutdown_lock()

void pcmk__clone_shutdown_lock ( pe_resource_t rsc)

Definition at line 1192 of file pcmk_sched_clone.c.

◆ summary_action_flags()

enum pe_action_flags summary_action_flags ( pe_action_t action,
GList *  children,
const pe_node_t node 
)

Definition at line 867 of file pcmk_sched_clone.c.