pacemaker  2.0.2-debe490
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
 

Functions

gint sort_clone_instance (gconstpointer a, gconstpointer b, gpointer data_set)
 
void distribute_children (resource_t *rsc, GListPtr children, GListPtr nodes, int max, int per_host_max, pe_working_set_t *data_set)
 
node_tclone_color (resource_t *rsc, node_t *prefer, pe_working_set_t *data_set)
 
void clone_create_actions (resource_t *rsc, pe_working_set_t *data_set)
 
void clone_create_pseudo_actions (resource_t *rsc, GListPtr children, notify_data_t **start_notify, notify_data_t **stop_notify, pe_working_set_t *data_set)
 
void clone_internal_constraints (resource_t *rsc, pe_working_set_t *data_set)
 
bool assign_node (resource_t *rsc, node_t *node, gboolean force)
 
gboolean is_child_compatible (resource_t *child_rsc, 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, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
void clone_rsc_colocation_rh (pe_resource_t *rsc_lh, pe_resource_t *rsc_rh, rsc_colocation_t *constraint, pe_working_set_t *data_set)
 
enum action_tasks clone_child_action (action_t *action)
 
enum pe_action_flags summary_action_flags (action_t *action, GListPtr children, node_t *node)
 
enum pe_action_flags clone_action_flags (action_t *action, node_t *node)
 
void clone_rsc_location (pe_resource_t *rsc, pe__location_t *constraint)
 
void clone_expand (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_create_probe (resource_t *rsc, node_t *node, action_t *complete, gboolean force, pe_working_set_t *data_set)
 
void clone_append_meta (resource_t *rsc, xmlNode *xml)
 
GHashTable * clone_merge_weights (resource_t *rsc, const char *rhs, GHashTable *nodes, const char *attr, float factor, enum pe_weights flags)
 

Macro Definition Documentation

#define VARIANT_CLONE   1

Definition at line 13 of file pcmk_sched_clone.c.

Function Documentation

bool assign_node ( resource_t rsc,
node_t node,
gboolean  force 
)

Definition at line 929 of file pcmk_sched_clone.c.

enum pe_action_flags clone_action_flags ( action_t action,
node_t node 
)

Definition at line 1208 of file pcmk_sched_clone.c.

void clone_append_meta ( resource_t rsc,
xmlNode *  xml 
)

Definition at line 1423 of file pcmk_sched_clone.c.

enum action_tasks clone_child_action ( action_t action)

Definition at line 1125 of file pcmk_sched_clone.c.

node_t* clone_color ( resource_t rsc,
node_t prefer,
pe_working_set_t data_set 
)

Definition at line 591 of file pcmk_sched_clone.c.

void clone_create_actions ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 805 of file pcmk_sched_clone.c.

gboolean clone_create_probe ( resource_t rsc,
node_t node,
action_t complete,
gboolean  force,
pe_working_set_t data_set 
)

Definition at line 1383 of file pcmk_sched_clone.c.

void clone_create_pseudo_actions ( resource_t rsc,
GListPtr  children,
notify_data_t **  start_notify,
notify_data_t **  stop_notify,
pe_working_set_t data_set 
)

Definition at line 818 of file pcmk_sched_clone.c.

void clone_expand ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1230 of file pcmk_sched_clone.c.

void clone_internal_constraints ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 880 of file pcmk_sched_clone.c.

GHashTable* clone_merge_weights ( resource_t rsc,
const char *  rhs,
GHashTable *  nodes,
const char *  attr,
float  factor,
enum pe_weights  flags 
)

Definition at line 1469 of file pcmk_sched_clone.c.

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

Definition at line 1017 of file pcmk_sched_clone.c.

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

Definition at line 1029 of file pcmk_sched_clone.c.

void clone_rsc_location ( pe_resource_t rsc,
pe__location_t constraint 
)

Definition at line 1214 of file pcmk_sched_clone.c.

void distribute_children ( resource_t rsc,
GListPtr  children,
GListPtr  nodes,
int  max,
int  per_host_max,
pe_working_set_t data_set 
)

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

gboolean is_child_compatible ( resource_t child_rsc,
node_t local_node,
enum rsc_role_e  filter,
gboolean  current 
)

Definition at line 953 of file pcmk_sched_clone.c.

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

Definition at line 76 of file pcmk_sched_clone.c.

enum pe_action_flags summary_action_flags ( action_t action,
GListPtr  children,
node_t node 
)

Definition at line 1164 of file pcmk_sched_clone.c.