pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
internal.h File Reference
#include <string.h>
#include <crm/pengine/status.h>
#include <crm/pengine/remote.h>
Include dependency graph for internal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  notify_data_s
 
struct  op_digest_cache_s
 

Macros

#define pe_rsc_info(rsc, fmt, args...)   crm_log_tag(LOG_INFO, rsc ? rsc->id : "<NULL>", fmt, ##args)
 
#define pe_rsc_debug(rsc, fmt, args...)   crm_log_tag(LOG_DEBUG, rsc ? rsc->id : "<NULL>", fmt, ##args)
 
#define pe_rsc_trace(rsc, fmt, args...)   crm_log_tag(LOG_TRACE, rsc ? rsc->id : "<NULL>", fmt, ##args)
 
#define pe_err(fmt...)   { was_processing_error = TRUE; crm_config_error = TRUE; crm_err(fmt); }
 
#define pe_warn(fmt...)   { was_processing_warning = TRUE; crm_config_warning = TRUE; crm_warn(fmt); }
 
#define pe_proc_err(fmt...)   { was_processing_error = TRUE; crm_err(fmt); }
 
#define pe_proc_warn(fmt...)   { was_processing_warning = TRUE; crm_warn(fmt); }
 
#define pe_set_action_bit(action, bit)   action->flags = crm_set_bit(__FUNCTION__, __LINE__, action->uuid, action->flags, bit)
 
#define pe_clear_action_bit(action, bit)   action->flags = crm_clear_bit(__FUNCTION__, __LINE__, action->uuid, action->flags, bit)
 
#define dump_node_scores(level, rsc, text, nodes)
 
#define delete_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_DELETE, 0)
 
#define delete_action(rsc, node, optional)
 
#define stopped_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_STOPPED, 0)
 
#define stopped_action(rsc, node, optional)
 
#define stop_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_STOP, 0)
 
#define stop_action(rsc, node, optional)
 
#define reload_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_RELOAD, 0)
 
#define start_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_START, 0)
 
#define start_action(rsc, node, optional)
 
#define started_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_STARTED, 0)
 
#define started_action(rsc, node, optional)
 
#define promote_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_PROMOTE, 0)
 
#define promote_action(rsc, node, optional)
 
#define promoted_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_PROMOTED, 0)
 
#define promoted_action(rsc, node, optional)
 
#define demote_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_DEMOTE, 0)
 
#define demote_action(rsc, node, optional)
 
#define demoted_key(rsc)   generate_op_key(rsc->id, CRMD_ACTION_DEMOTED, 0)
 
#define demoted_action(rsc, node, optional)
 
#define pe_action_required(action, reason, text)   pe_action_set_flag_reason(__FUNCTION__, __LINE__, action, reason, text, pe_action_optional, FALSE)
 
#define pe_action_implies(action, reason, flag)   pe_action_set_flag_reason(__FUNCTION__, __LINE__, action, reason, NULL, flag, FALSE)
 

Typedefs

typedef struct notify_data_s notify_data_t
 
typedef struct op_digest_cache_s op_digest_cache_t
 

Enumerations

enum  pe_fc_flags_e { pe_fc_default = 0x00, pe_fc_effective = 0x01, pe_fc_fillers = 0x02 }
 
enum  rsc_digest_cmp_val { RSC_DIGEST_MATCH = 0, RSC_DIGEST_RESTART, RSC_DIGEST_ALL, RSC_DIGEST_UNKNOWN }
 

Functions

bool pe_can_fence (pe_working_set_t *data_set, node_t *node)
 
int merge_weights (int w1, int w2)
 
void add_hash_param (GHashTable *hash, const char *name, const char *value)
 
void append_hashtable (gpointer key, gpointer value, gpointer user_data)
 
char * native_parameter (resource_t *rsc, node_t *node, gboolean create, const char *name, pe_working_set_t *data_set)
 
node_tnative_location (resource_t *rsc, GListPtr *list, gboolean current)
 
void pe_metadata (void)
 
void verify_pe_options (GHashTable *options)
 
void common_update_score (resource_t *rsc, const char *id, int score)
 
void native_add_running (resource_t *rsc, node_t *node, pe_working_set_t *data_set)
 
node_trsc_known_on (resource_t *rsc, GListPtr *list)
 
gboolean native_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean group_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean master_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean container_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
resource_tnative_find_rsc (resource_t *rsc, const char *id, node_t *node, int flags)
 
gboolean native_active (resource_t *rsc, gboolean all)
 
gboolean group_active (resource_t *rsc, gboolean all)
 
gboolean clone_active (resource_t *rsc, gboolean all)
 
gboolean master_active (resource_t *rsc, gboolean all)
 
gboolean container_active (resource_t *rsc, gboolean all)
 
void native_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void group_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void clone_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void master_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void container_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void native_free (resource_t *rsc)
 
void group_free (resource_t *rsc)
 
void clone_free (resource_t *rsc)
 
void master_free (resource_t *rsc)
 
void container_free (resource_t *rsc)
 
enum rsc_role_e native_resource_state (const resource_t *rsc, gboolean current)
 
enum rsc_role_e group_resource_state (const resource_t *rsc, gboolean current)
 
enum rsc_role_e clone_resource_state (const resource_t *rsc, gboolean current)
 
enum rsc_role_e master_resource_state (const resource_t *rsc, gboolean current)
 
enum rsc_role_e container_resource_state (const resource_t *rsc, gboolean current)
 
gboolean common_unpack (xmlNode *xml_obj, resource_t **rsc, resource_t *parent, pe_working_set_t *data_set)
 
void common_free (resource_t *rsc)
 
node_tnode_copy (const node_t *this_node)
 
time_t get_effective_time (pe_working_set_t *data_set)
 
int pe_get_failcount (node_t *node, resource_t *rsc, time_t *last_failure, uint32_t flags, xmlNode *xml_op, pe_working_set_t *data_set)
 
void node_list_exclude (GHashTable *list, GListPtr list2, gboolean merge_scores)
 
GListPtr node_list_dup (GListPtr list, gboolean reset, gboolean filter)
 
GListPtr node_list_from_hash (GHashTable *hash, gboolean reset, gboolean filter)
 
GHashTable * node_hash_from_list (GListPtr list)
 
action_tget_pseudo_op (const char *name, pe_working_set_t *data_set)
 
gboolean order_actions (action_t *lh_action, action_t *rh_action, enum pe_ordering order)
 
GHashTable * node_hash_dup (GHashTable *hash)
 
GListPtr node_list_and (GListPtr list1, GListPtr list2, gboolean filter)
 
GListPtr node_list_xor (GListPtr list1, GListPtr list2, gboolean filter)
 
GListPtr node_list_minus (GListPtr list1, GListPtr list2, gboolean filter)
 
void pe_free_shallow (GListPtr alist)
 
void pe_free_shallow_adv (GListPtr alist, gboolean with_data)
 
void print_node (const char *pre_text, node_t *node, gboolean details)
 
void print_resource (int log_level, const char *pre_text, resource_t *rsc, gboolean details)
 
void dump_node_scores_worker (int level, const char *file, const char *function, int line, resource_t *rsc, const char *comment, GHashTable *nodes)
 
void dump_node_capacity (int level, const char *comment, node_t *node)
 
void dump_rsc_utilization (int level, const char *comment, resource_t *rsc, node_t *node)
 
gint sort_rsc_priority (gconstpointer a, gconstpointer b)
 
gint sort_rsc_index (gconstpointer a, gconstpointer b)
 
xmlNode * find_rsc_op_entry (resource_t *rsc, const char *key)
 
action_tcustom_action (resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
 
int pe_get_configured_timeout (resource_t *rsc, const char *action, pe_working_set_t *data_set)
 
action_tfind_first_action (GListPtr input, const char *uuid, const char *task, node_t *on_node)
 
enum action_tasks get_complex_task (resource_t *rsc, const char *name, gboolean allow_non_atomic)
 
GListPtr find_actions (GListPtr input, const char *key, const node_t *on_node)
 
GListPtr find_actions_exact (GListPtr input, const char *key, node_t *on_node)
 
GListPtr find_recurring_actions (GListPtr input, node_t *not_on_node)
 
void pe_free_action (action_t *action)
 
void resource_location (resource_t *rsc, node_t *node, int score, const char *tag, pe_working_set_t *data_set)
 
gint sort_op_by_callid (gconstpointer a, gconstpointer b)
 
gboolean get_target_role (resource_t *rsc, enum rsc_role_e *role)
 
resource_tfind_clone_instance (resource_t *rsc, const char *sub_id, pe_working_set_t *data_set)
 
void destroy_ticket (gpointer data)
 
ticket_tticket_new (const char *ticket_id, pe_working_set_t *data_set)
 
const char * pe_base_name_end (const char *id)
 
char * clone_strip (const char *last_rsc_id)
 
char * clone_zero (const char *last_rsc_id)
 
int get_target_rc (xmlNode *xml_op)
 
gint sort_node_uname (gconstpointer a, gconstpointer b)
 
bool is_set_recursive (resource_t *rsc, long long flag, bool any)
 
op_digest_cache_trsc_action_digest_cmp (resource_t *rsc, xmlNode *xml_op, node_t *node, pe_working_set_t *data_set)
 
action_tpe_fence_op (node_t *node, const char *op, bool optional, const char *reason, pe_working_set_t *data_set)
 
void trigger_unfencing (resource_t *rsc, node_t *node, const char *reason, action_t *dependency, pe_working_set_t *data_set)
 
void pe_action_set_reason (pe_action_t *action, const char *reason, bool overwrite)
 
void pe_action_set_flag_reason (const char *function, long line, pe_action_t *action, pe_action_t *reason, const char *text, enum pe_action_flags flags, bool overwrite)
 
void set_bit_recursive (resource_t *rsc, unsigned long long flag)
 
void clear_bit_recursive (resource_t *rsc, unsigned long long flag)
 
gboolean add_tag_ref (GHashTable *tags, const char *tag_name, const char *obj_ref)
 
void print_rscs_brief (GListPtr rsc_list, const char *pre_text, long options, void *print_data, gboolean print_all)
 
void pe_fence_node (pe_working_set_t *data_set, node_t *node, const char *reason)
 Schedule a fence action for a node. More...
 
node_tpe_create_node (const char *id, const char *uname, const char *type, const char *score, pe_working_set_t *data_set)
 
bool remote_id_conflict (const char *remote_name, pe_working_set_t *data)
 
void common_print (resource_t *rsc, const char *pre_text, const char *name, node_t *node, long options, void *print_data)
 
resource_tfind_container_child (const char *stem, resource_t *rsc, node_t *node)
 
bool container_fix_remote_addr (resource_t *rsc)
 
const char * container_fix_remote_addr_in (resource_t *rsc, xmlNode *xml, const char *field)
 
const char * pe_node_attribute_calculated (pe_node_t *node, const char *name, resource_t *rsc)
 
const char * pe_node_attribute_raw (pe_node_t *node, const char *name)
 

Variables

pe_working_set_tpe_dataset
 

Macro Definition Documentation

#define delete_action (   rsc,
  node,
  optional 
)
Value:
rsc, delete_key(rsc), CRMD_ACTION_DELETE, node, \
optional, TRUE, data_set);
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419
#define delete_key(rsc)
Definition: internal.h:180
#define CRMD_ACTION_DELETE
Definition: crm.h:168

Definition at line 181 of file internal.h.

#define delete_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_DELETE, 0)

Definition at line 180 of file internal.h.

#define demote_action (   rsc,
  node,
  optional 
)
Value:
rsc, demote_key(rsc), CRMD_ACTION_DEMOTE, node, \
optional, TRUE, data_set)
#define demote_key(rsc)
Definition: internal.h:216
#define CRMD_ACTION_DEMOTE
Definition: crm.h:183
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419

Definition at line 217 of file internal.h.

#define demote_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_DEMOTE, 0)

Definition at line 216 of file internal.h.

#define demoted_action (   rsc,
  node,
  optional 
)
Value:
rsc, demoted_key(rsc), CRMD_ACTION_DEMOTED, node, \
optional, TRUE, data_set)
#define demoted_key(rsc)
Definition: internal.h:221
#define CRMD_ACTION_DEMOTED
Definition: crm.h:184
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419

Definition at line 222 of file internal.h.

#define demoted_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_DEMOTED, 0)

Definition at line 221 of file internal.h.

#define dump_node_scores (   level,
  rsc,
  text,
  nodes 
)
Value:
do { \
dump_node_scores_worker(level, __FILE__, __FUNCTION__, __LINE__, rsc, text, nodes); \
} while(0)
void dump_node_scores_worker(int level, const char *file, const char *function, int line, resource_t *rsc, const char *comment, GHashTable *nodes)
Definition: utils.c:234

Definition at line 167 of file internal.h.

#define pe_action_implies (   action,
  reason,
  flag 
)    pe_action_set_flag_reason(__FUNCTION__, __LINE__, action, reason, NULL, flag, FALSE)

Definition at line 307 of file internal.h.

#define pe_action_required (   action,
  reason,
  text 
)    pe_action_set_flag_reason(__FUNCTION__, __LINE__, action, reason, text, pe_action_optional, FALSE)

Definition at line 306 of file internal.h.

#define pe_clear_action_bit (   action,
  bit 
)    action->flags = crm_clear_bit(__FUNCTION__, __LINE__, action->uuid, action->flags, bit)

Definition at line 33 of file internal.h.

#define pe_err (   fmt...)    { was_processing_error = TRUE; crm_config_error = TRUE; crm_err(fmt); }

Definition at line 28 of file internal.h.

#define pe_proc_err (   fmt...)    { was_processing_error = TRUE; crm_err(fmt); }

Definition at line 30 of file internal.h.

#define pe_proc_warn (   fmt...)    { was_processing_warning = TRUE; crm_warn(fmt); }

Definition at line 31 of file internal.h.

#define pe_rsc_debug (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_DEBUG, rsc ? rsc->id : "<NULL>", fmt, ##args)

Definition at line 25 of file internal.h.

#define pe_rsc_info (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_INFO, rsc ? rsc->id : "<NULL>", fmt, ##args)

Definition at line 24 of file internal.h.

#define pe_rsc_trace (   rsc,
  fmt,
  args... 
)    crm_log_tag(LOG_TRACE, rsc ? rsc->id : "<NULL>", fmt, ##args)

Definition at line 26 of file internal.h.

#define pe_set_action_bit (   action,
  bit 
)    action->flags = crm_set_bit(__FUNCTION__, __LINE__, action->uuid, action->flags, bit)

Definition at line 32 of file internal.h.

#define pe_warn (   fmt...)    { was_processing_warning = TRUE; crm_config_warning = TRUE; crm_warn(fmt); }

Definition at line 29 of file internal.h.

#define promote_action (   rsc,
  node,
  optional 
)
Value:
rsc, promote_key(rsc), CRMD_ACTION_PROMOTE, node, \
optional, TRUE, data_set)
#define CRMD_ACTION_PROMOTE
Definition: crm.h:181
#define promote_key(rsc)
Definition: internal.h:206
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419

Definition at line 207 of file internal.h.

#define promote_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_PROMOTE, 0)

Definition at line 206 of file internal.h.

#define promoted_action (   rsc,
  node,
  optional 
)
Value:
rsc, promoted_key(rsc), CRMD_ACTION_PROMOTED, node, \
optional, TRUE, data_set)
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419
#define CRMD_ACTION_PROMOTED
Definition: crm.h:182
#define promoted_key(rsc)
Definition: internal.h:211

Definition at line 212 of file internal.h.

#define promoted_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_PROMOTED, 0)

Definition at line 211 of file internal.h.

#define reload_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_RELOAD, 0)

Definition at line 195 of file internal.h.

#define start_action (   rsc,
  node,
  optional 
)
Value:
rsc, start_key(rsc), CRMD_ACTION_START, node, \
optional, TRUE, data_set)
#define CRMD_ACTION_START
Definition: crm.h:175
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419
#define start_key(rsc)
Definition: internal.h:196

Definition at line 197 of file internal.h.

#define start_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_START, 0)

Definition at line 196 of file internal.h.

#define started_action (   rsc,
  node,
  optional 
)
Value:
rsc, started_key(rsc), CRMD_ACTION_STARTED, node, \
optional, TRUE, data_set)
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419
#define started_key(rsc)
Definition: internal.h:201
#define CRMD_ACTION_STARTED
Definition: crm.h:176

Definition at line 202 of file internal.h.

#define started_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_STARTED, 0)

Definition at line 201 of file internal.h.

#define stop_action (   rsc,
  node,
  optional 
)
Value:
rsc, stop_key(rsc), CRMD_ACTION_STOP, node, \
optional, TRUE, data_set);
#define CRMD_ACTION_STOP
Definition: crm.h:178
#define stop_key(rsc)
Definition: internal.h:190
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419

Definition at line 191 of file internal.h.

#define stop_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_STOP, 0)

Definition at line 190 of file internal.h.

#define stopped_action (   rsc,
  node,
  optional 
)
Value:
rsc, stopped_key(rsc), CRMD_ACTION_STOPPED, node, \
optional, TRUE, data_set);
#define stopped_key(rsc)
Definition: internal.h:185
action_t * custom_action(resource_t *rsc, char *key, const char *task, node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:419
#define CRMD_ACTION_STOPPED
Definition: crm.h:179

Definition at line 186 of file internal.h.

#define stopped_key (   rsc)    generate_op_key(rsc->id, CRMD_ACTION_STOPPED, 0)

Definition at line 185 of file internal.h.

Typedef Documentation

typedef struct notify_data_s notify_data_t

Enumeration Type Documentation

Enumerator
pe_fc_default 
pe_fc_effective 
pe_fc_fillers 

Definition at line 118 of file internal.h.

Enumerator
RSC_DIGEST_MATCH 

Digests are the same

RSC_DIGEST_RESTART 

Params that require a restart changed

RSC_DIGEST_ALL 

Some parameter changed.

RSC_DIGEST_UNKNOWN 

rsc op didn't have a digest associated with it, so it is unknown if parameters changed or not.

Definition at line 274 of file internal.h.

Function Documentation

void add_hash_param ( GHashTable *  hash,
const char *  name,
const char *  value 
)

Definition at line 423 of file common.c.

gboolean add_tag_ref ( GHashTable *  tags,
const char *  tag_name,
const char *  obj_ref 
)

Definition at line 2255 of file utils.c.

void append_hashtable ( gpointer  key,
gpointer  value,
gpointer  user_data 
)
void clear_bit_recursive ( resource_t rsc,
unsigned long long  flag 
)

Definition at line 2092 of file utils.c.

gboolean clone_active ( resource_t rsc,
gboolean  all 
)

Definition at line 250 of file clone.c.

void clone_free ( resource_t rsc)

Definition at line 585 of file clone.c.

void clone_print ( resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 383 of file clone.c.

enum rsc_role_e clone_resource_state ( const resource_t rsc,
gboolean  current 
)

Definition at line 620 of file clone.c.

char* clone_strip ( const char *  last_rsc_id)

Definition at line 1609 of file unpack.c.

gboolean clone_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 153 of file clone.c.

char* clone_zero ( const char *  last_rsc_id)

Definition at line 1631 of file unpack.c.

void common_free ( resource_t rsc)

Definition at line 911 of file complex.c.

void common_print ( resource_t rsc,
const char *  pre_text,
const char *  name,
node_t node,
long  options,
void *  print_data 
)

Definition at line 479 of file native.c.

gboolean common_unpack ( xmlNode *  xml_obj,
resource_t **  rsc,
resource_t parent,
pe_working_set_t data_set 
)

Definition at line 465 of file complex.c.

void common_update_score ( resource_t rsc,
const char *  id,
int  score 
)

Definition at line 858 of file complex.c.

gboolean container_active ( resource_t rsc,
gboolean  all 
)

Definition at line 1129 of file container.c.

bool container_fix_remote_addr ( resource_t rsc)

Definition at line 755 of file container.c.

const char* container_fix_remote_addr_in ( resource_t rsc,
xmlNode *  xml,
const char *  field 
)

Definition at line 791 of file container.c.

void container_free ( resource_t rsc)

Definition at line 1399 of file container.c.

void container_print ( resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 1299 of file container.c.

enum rsc_role_e container_resource_state ( const resource_t rsc,
gboolean  current 
)

Definition at line 1432 of file container.c.

gboolean container_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 829 of file container.c.

action_t* custom_action ( resource_t rsc,
char *  key,
const char *  task,
node_t on_node,
gboolean  optional,
gboolean  foo,
pe_working_set_t data_set 
)

Definition at line 419 of file utils.c.

void destroy_ticket ( gpointer  data)

Definition at line 1795 of file utils.c.

void dump_node_capacity ( int  level,
const char *  comment,
node_t node 
)

Definition at line 322 of file utils.c.

void dump_node_scores_worker ( int  level,
const char *  file,
const char *  function,
int  line,
resource_t rsc,
const char *  comment,
GHashTable *  nodes 
)

Definition at line 234 of file utils.c.

void dump_rsc_utilization ( int  level,
const char *  comment,
resource_t rsc,
node_t node 
)

Definition at line 343 of file utils.c.

GListPtr find_actions ( GListPtr  input,
const char *  key,
const node_t on_node 
)

Definition at line 1415 of file utils.c.

GListPtr find_actions_exact ( GListPtr  input,
const char *  key,
node_t on_node 
)

Definition at line 1455 of file utils.c.

resource_t* find_clone_instance ( resource_t rsc,
const char *  sub_id,
pe_working_set_t data_set 
)

Definition at line 66 of file clone.c.

resource_t* find_container_child ( const char *  stem,
resource_t rsc,
node_t node 
)

Definition at line 1168 of file container.c.

action_t* find_first_action ( GListPtr  input,
const char *  uuid,
const char *  task,
node_t on_node 
)

Definition at line 1385 of file utils.c.

GListPtr find_recurring_actions ( GListPtr  input,
node_t not_on_node 
)

Definition at line 1327 of file utils.c.

xmlNode* find_rsc_op_entry ( resource_t rsc,
const char *  key 
)

Definition at line 1234 of file utils.c.

enum action_tasks get_complex_task ( resource_t rsc,
const char *  name,
gboolean  allow_non_atomic 
)

Definition at line 1361 of file utils.c.

time_t get_effective_time ( pe_working_set_t data_set)

Definition at line 1675 of file utils.c.

action_t* get_pseudo_op ( const char *  name,
pe_working_set_t data_set 
)

Definition at line 1778 of file utils.c.

int get_target_rc ( xmlNode *  xml_op)

Definition at line 2972 of file unpack.c.

gboolean get_target_role ( resource_t rsc,
enum rsc_role_e role 
)

Definition at line 1690 of file utils.c.

gboolean group_active ( resource_t rsc,
gboolean  all 
)

Definition at line 101 of file group.c.

void group_free ( resource_t rsc)

Definition at line 195 of file group.c.

void group_print ( resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 146 of file group.c.

enum rsc_role_e group_resource_state ( const resource_t rsc,
gboolean  current 
)

Definition at line 218 of file group.c.

gboolean group_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 31 of file group.c.

bool is_set_recursive ( resource_t rsc,
long long  flag,
bool  any 
)

Definition at line 352 of file clone.c.

gboolean master_active ( resource_t rsc,
gboolean  all 
)
void master_free ( resource_t rsc)
void master_print ( resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)
enum rsc_role_e master_resource_state ( const resource_t rsc,
gboolean  current 
)
gboolean master_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 135 of file clone.c.

int merge_weights ( int  w1,
int  w2 
)

Definition at line 386 of file common.c.

gboolean native_active ( resource_t rsc,
gboolean  all 
)

Definition at line 285 of file native.c.

void native_add_running ( resource_t rsc,
node_t node,
pe_working_set_t data_set 
)

Definition at line 32 of file native.c.

resource_t* native_find_rsc ( resource_t rsc,
const char *  id,
node_t node,
int  flags 
)

Definition at line 188 of file native.c.

void native_free ( resource_t rsc)

Definition at line 744 of file native.c.

node_t* native_location ( resource_t rsc,
GListPtr list,
gboolean  current 
)

Definition at line 763 of file native.c.

char* native_parameter ( resource_t rsc,
node_t node,
gboolean  create,
const char *  name,
pe_working_set_t data_set 
)

Definition at line 242 of file native.c.

void native_print ( resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 727 of file native.c.

enum rsc_role_e native_resource_state ( const resource_t rsc,
gboolean  current 
)

Definition at line 751 of file native.c.

gboolean native_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 127 of file native.c.

node_t* node_copy ( const node_t this_node)

Definition at line 127 of file utils.c.

GHashTable* node_hash_dup ( GHashTable *  hash)
GHashTable* node_hash_from_list ( GListPtr  list)

Definition at line 183 of file utils.c.

GListPtr node_list_and ( GListPtr  list1,
GListPtr  list2,
gboolean  filter 
)
GListPtr node_list_dup ( GListPtr  list,
gboolean  reset,
gboolean  filter 
)

Definition at line 199 of file utils.c.

void node_list_exclude ( GHashTable *  list,
GListPtr  list2,
gboolean  merge_scores 
)

Definition at line 148 of file utils.c.

GListPtr node_list_from_hash ( GHashTable *  hash,
gboolean  reset,
gboolean  filter 
)
GListPtr node_list_minus ( GListPtr  list1,
GListPtr  list2,
gboolean  filter 
)
GListPtr node_list_xor ( GListPtr  list1,
GListPtr  list2,
gboolean  filter 
)
gboolean order_actions ( action_t lh_action,
action_t rh_action,
enum pe_ordering  order 
)

Definition at line 1726 of file utils.c.

void pe_action_set_flag_reason ( const char *  function,
long  line,
pe_action_t action,
pe_action_t reason,
const char *  text,
enum pe_action_flags  flags,
bool  overwrite 
)

Definition at line 2291 of file utils.c.

void pe_action_set_reason ( pe_action_t action,
const char *  reason,
bool  overwrite 
)

Definition at line 2351 of file utils.c.

const char* pe_base_name_end ( const char *  id)

Definition at line 1569 of file unpack.c.

bool pe_can_fence ( pe_working_set_t data_set,
node_t node 
)

Definition at line 100 of file utils.c.

node_t* pe_create_node ( const char *  id,
const char *  uname,
const char *  type,
const char *  score,
pe_working_set_t data_set 
)

Definition at line 356 of file unpack.c.

void pe_fence_node ( pe_working_set_t data_set,
node_t node,
const char *  reason 
)

Schedule a fence action for a node.

Parameters
[in,out]data_setCurrent working set of cluster
[in,out]nodeNode to fence
[in]reasonText description of why fencing is needed

Definition at line 77 of file unpack.c.

action_t* pe_fence_op ( node_t node,
const char *  op,
bool  optional,
const char *  reason,
pe_working_set_t data_set 
)

Definition at line 2139 of file utils.c.

void pe_free_action ( action_t action)

Definition at line 1300 of file utils.c.

void pe_free_shallow ( GListPtr  alist)
void pe_free_shallow_adv ( GListPtr  alist,
gboolean  with_data 
)
int pe_get_configured_timeout ( resource_t rsc,
const char *  action,
pe_working_set_t data_set 
)

Definition at line 845 of file utils.c.

int pe_get_failcount ( node_t node,
resource_t rsc,
time_t *  last_failure,
uint32_t  flags,
xmlNode *  xml_op,
pe_working_set_t data_set 
)

Definition at line 237 of file failcounts.c.

void pe_metadata ( void  )

Definition at line 175 of file common.c.

const char* pe_node_attribute_calculated ( pe_node_t node,
const char *  name,
resource_t rsc 
)

Definition at line 440 of file common.c.

const char* pe_node_attribute_raw ( pe_node_t node,
const char *  name 
)

Definition at line 478 of file common.c.

void print_node ( const char *  pre_text,
node_t node,
gboolean  details 
)

Definition at line 1240 of file utils.c.

void print_resource ( int  log_level,
const char *  pre_text,
resource_t rsc,
gboolean  details 
)

Definition at line 1284 of file utils.c.

void print_rscs_brief ( GListPtr  rsc_list,
const char *  pre_text,
long  options,
void *  print_data,
gboolean  print_all 
)

Definition at line 883 of file native.c.

bool remote_id_conflict ( const char *  remote_name,
pe_working_set_t data 
)

Definition at line 418 of file unpack.c.

void resource_location ( resource_t rsc,
node_t node,
int  score,
const char *  tag,
pe_working_set_t data_set 
)

Definition at line 1516 of file utils.c.

op_digest_cache_t* rsc_action_digest_cmp ( resource_t rsc,
xmlNode *  xml_op,
node_t node,
pe_working_set_t data_set 
)

Definition at line 1980 of file utils.c.

node_t* rsc_known_on ( resource_t rsc,
GListPtr list 
)
void set_bit_recursive ( resource_t rsc,
unsigned long long  flag 
)

Definition at line 2105 of file utils.c.

gint sort_node_uname ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 225 of file utils.c.

gint sort_op_by_callid ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 1560 of file utils.c.

gint sort_rsc_index ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 365 of file utils.c.

gint sort_rsc_priority ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 392 of file utils.c.

ticket_t* ticket_new ( const char *  ticket_id,
pe_working_set_t data_set 
)

Definition at line 1807 of file utils.c.

void trigger_unfencing ( resource_t rsc,
node_t node,
const char *  reason,
action_t dependency,
pe_working_set_t data_set 
)

Definition at line 2221 of file utils.c.

void verify_pe_options ( GHashTable *  options)

Definition at line 184 of file common.c.

Variable Documentation

pe_working_set_t* pe_dataset

Definition at line 31 of file utils.c.