pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pcmk_sched_clone.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.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)
 
bool assign_node (pe_resource_t *rsc, pe_node_t *node, gboolean force)
 
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 *rsc_lh, pe_resource_t *rsc_rh, pcmk__colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, 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)
 

Macro Definition Documentation

#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:36
const char * action
Definition: pcmk_fence.c:30
uint64_t flags
Definition: remote.c:149

Definition at line 1256 of file pcmk_sched_clone.c.

#define VARIANT_CLONE   1

Definition at line 15 of file pcmk_sched_clone.c.

Function Documentation

bool assign_node ( pe_resource_t rsc,
pe_node_t node,
gboolean  force 
)

Definition at line 1023 of file pcmk_sched_clone.c.

enum pe_action_flags clone_action_flags ( pe_action_t action,
pe_node_t node 
)

Definition at line 1307 of file pcmk_sched_clone.c.

void clone_append_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 1525 of file pcmk_sched_clone.c.

enum action_tasks clone_child_action ( pe_action_t action)

Definition at line 1219 of file pcmk_sched_clone.c.

void clone_create_actions ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 898 of file pcmk_sched_clone.c.

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 1485 of file pcmk_sched_clone.c.

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 911 of file pcmk_sched_clone.c.

void clone_expand ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1329 of file pcmk_sched_clone.c.

void clone_internal_constraints ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 974 of file pcmk_sched_clone.c.

void clone_rsc_colocation_lh ( pe_resource_t rsc_lh,
pe_resource_t rsc_rh,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1111 of file pcmk_sched_clone.c.

void clone_rsc_colocation_rh ( pe_resource_t rsc_lh,
pe_resource_t rsc_rh,
pcmk__colocation_t constraint,
pe_working_set_t data_set 
)

Definition at line 1123 of file pcmk_sched_clone.c.

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1313 of file pcmk_sched_clone.c.

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 573 of file pcmk_sched_clone.c.

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 1077 of file pcmk_sched_clone.c.

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

Definition at line 1047 of file pcmk_sched_clone.c.

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

Definition at line 678 of file pcmk_sched_clone.c.

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

Definition at line 251 of file pcmk_sched_clone.c.

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

Definition at line 1263 of file pcmk_sched_clone.c.