pacemaker  2.1.4-dc6eb4362
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

gint sort_clone_instance (gconstpointer a, gconstpointer b, gpointer data_set)
 
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, pe_node_t *prefer, pe_working_set_t *data_set)
 
void clone_create_actions (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void clone_create_pseudo_actions (pe_resource_t *rsc, GList *children, notify_data_t **start_notify, notify_data_t **stop_notify, pe_working_set_t *data_set)
 
void clone_internal_constraints (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean is_child_compatible (pe_resource_t *child_rsc, pe_node_t *local_node, enum rsc_role_e filter, gboolean current)
 
pe_resource_tfind_compatible_child (pe_resource_t *local_child, pe_resource_t *rsc, enum rsc_role_e filter, gboolean current, pe_working_set_t *data_set)
 
void clone_rsc_colocation_lh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *dependent, pe_resource_t *primary, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
enum action_tasks clone_child_action (pe_action_t *action)
 
enum pe_action_flags summary_action_flags (pe_action_t *action, GList *children, pe_node_t *node)
 
enum pe_action_flags clone_action_flags (pe_action_t *action, pe_node_t *node)
 
void clone_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void clone_expand (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_create_probe (pe_resource_t *rsc, pe_node_t *node, pe_action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void clone_append_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__clone_add_utilization (pe_resource_t *rsc, 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:29
uint64_t flags
Definition: remote.c:149

Definition at line 1231 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,
pe_node_t node 
)

Definition at line 1282 of file pcmk_sched_clone.c.

◆ clone_append_meta()

void clone_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1476 of file pcmk_sched_clone.c.

◆ clone_child_action()

enum action_tasks clone_child_action ( pe_action_t action)

Definition at line 1194 of file pcmk_sched_clone.c.

◆ clone_create_actions()

void clone_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 872 of file pcmk_sched_clone.c.

◆ clone_create_probe()

gboolean clone_create_probe ( pe_resource_t rsc,
pe_node_t node,
pe_action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 1436 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,
pe_working_set_t data_set 
)

Definition at line 885 of file pcmk_sched_clone.c.

◆ clone_expand()

void clone_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1304 of file pcmk_sched_clone.c.

◆ clone_internal_constraints()

void clone_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 951 of file pcmk_sched_clone.c.

◆ clone_rsc_colocation_lh()

void clone_rsc_colocation_lh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1073 of file pcmk_sched_clone.c.

◆ clone_rsc_colocation_rh()

void clone_rsc_colocation_rh ( pe_resource_t dependent,
pe_resource_t primary,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1085 of file pcmk_sched_clone.c.

◆ clone_rsc_location()

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1288 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 575 of file pcmk_sched_clone.c.

◆ find_compatible_child()

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

Definition at line 1039 of file pcmk_sched_clone.c.

◆ is_child_compatible()

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

Definition at line 1009 of file pcmk_sched_clone.c.

◆ pcmk__clone_add_utilization()

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

Definition at line 1523 of file pcmk_sched_clone.c.

◆ pcmk__clone_allocate()

pe_node_t* pcmk__clone_allocate ( pe_resource_t rsc,
pe_node_t prefer,
pe_working_set_t data_set 
)

Definition at line 680 of file pcmk_sched_clone.c.

◆ pcmk__clone_shutdown_lock()

void pcmk__clone_shutdown_lock ( pe_resource_t rsc)

Definition at line 1566 of file pcmk_sched_clone.c.

◆ sort_clone_instance()

gint sort_clone_instance ( gconstpointer  a,
gconstpointer  b,
gpointer  data_set 
)

Definition at line 253 of file pcmk_sched_clone.c.

◆ summary_action_flags()

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

Definition at line 1238 of file pcmk_sched_clone.c.