pacemaker  2.0.4-2deceaa
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_internal.h>
#include <crm/common/output.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  pe__location_constraint_s
 
struct  pe__order_constraint_s
 
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 pe_warn_once(pe_wo_bit, fmt...)
 
#define pe__show_node_weights(level, rsc, text, nodes)
 
#define delete_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_DELETE, 0)
 
#define delete_action(rsc, node, optional)
 
#define stopped_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_STOPPED, 0)
 
#define stopped_action(rsc, node, optional)
 
#define stop_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_STOP, 0)
 
#define stop_action(rsc, node, optional)
 
#define reload_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_RELOAD, 0)
 
#define start_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_START, 0)
 
#define start_action(rsc, node, optional)
 
#define started_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_STARTED, 0)
 
#define started_action(rsc, node, optional)
 
#define promote_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_PROMOTE, 0)
 
#define promote_action(rsc, node, optional)
 
#define promoted_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_PROMOTED, 0)
 
#define promoted_action(rsc, node, optional)
 
#define demote_key(rsc)   pcmk__op_key(rsc->id, CRMD_ACTION_DEMOTE, 0)
 
#define demote_action(rsc, node, optional)
 
#define demoted_key(rsc)   pcmk__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)
 
#define BOOL2STR(x)   ((x) ? "true" : "false")
 

Typedefs

typedef struct
pe__location_constraint_s 
pe__location_t
 
typedef struct
pe__order_constraint_s 
pe__ordering_t
 
typedef struct notify_data_s notify_data_t
 
typedef struct op_digest_cache_s op_digest_cache_t
 

Enumerations

enum  pe_warn_once_e {
  pe_wo_blind = 0x0001, pe_wo_restart_type = 0x0002, pe_wo_role_after = 0x0004, pe_wo_poweroff = 0x0008,
  pe_wo_require_all = 0x0010, pe_wo_order_score = 0x0020, pe_wo_neg_threshold = 0x0040
}
 
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, pe_node_t *node)
 
int pe__add_scores (int score1, int score2)
 
void add_hash_param (GHashTable *hash, const char *name, const char *value)
 
char * native_parameter (pe_resource_t *rsc, pe_node_t *node, gboolean create, const char *name, pe_working_set_t *data_set)
 
pe_node_tnative_location (const pe_resource_t *rsc, GList **list, int current)
 
void pe_metadata (void)
 
void verify_pe_options (GHashTable *options)
 
void common_update_score (pe_resource_t *rsc, const char *id, int score)
 
void native_add_running (pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
 
gboolean native_unpack (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean group_unpack (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_unpack (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean pe__unpack_bundle (pe_resource_t *rsc, pe_working_set_t *data_set)
 
pe_resource_tnative_find_rsc (pe_resource_t *rsc, const char *id, const pe_node_t *node, int flags)
 
gboolean native_active (pe_resource_t *rsc, gboolean all)
 
gboolean group_active (pe_resource_t *rsc, gboolean all)
 
gboolean clone_active (pe_resource_t *rsc, gboolean all)
 
gboolean pe__bundle_active (pe_resource_t *rsc, gboolean all)
 
void native_print (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void group_print (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void clone_print (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void pe__print_bundle (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
int pe__name_and_nvpairs_xml (pcmk__output_t *out, bool is_list, const char *tag_name, size_t pairs_count,...)
 
char * pe__node_display_name (pe_node_t *node, bool print_detail)
 
int pe__ban_html (pcmk__output_t *out, va_list args)
 
int pe__ban_text (pcmk__output_t *out, va_list args)
 
int pe__ban_xml (pcmk__output_t *out, va_list args)
 
int pe__clone_xml (pcmk__output_t *out, va_list args)
 
int pe__clone_html (pcmk__output_t *out, va_list args)
 
int pe__clone_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_counts_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_counts_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_counts_xml (pcmk__output_t *out, va_list args)
 
int pe__cluster_dc_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_dc_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_dc_xml (pcmk__output_t *out, va_list args)
 
int pe__cluster_maint_mode_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_maint_mode_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_options_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_options_log (pcmk__output_t *out, va_list args)
 
int pe__cluster_options_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_options_xml (pcmk__output_t *out, va_list args)
 
int pe__cluster_stack_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_stack_text (pcmk__output_t *out, va_list args)
 
int pe__cluster_stack_xml (pcmk__output_t *out, va_list args)
 
int pe__cluster_summary (pcmk__output_t *out, va_list args)
 
int pe__cluster_summary_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_times_html (pcmk__output_t *out, va_list args)
 
int pe__cluster_times_xml (pcmk__output_t *out, va_list args)
 
int pe__cluster_times_text (pcmk__output_t *out, va_list args)
 
int pe__failed_action_text (pcmk__output_t *out, va_list args)
 
int pe__failed_action_xml (pcmk__output_t *out, va_list args)
 
int pe__group_xml (pcmk__output_t *out, va_list args)
 
int pe__group_html (pcmk__output_t *out, va_list args)
 
int pe__group_text (pcmk__output_t *out, va_list args)
 
int pe__bundle_xml (pcmk__output_t *out, va_list args)
 
int pe__bundle_html (pcmk__output_t *out, va_list args)
 
int pe__bundle_text (pcmk__output_t *out, va_list args)
 
int pe__node_html (pcmk__output_t *out, va_list args)
 
int pe__node_text (pcmk__output_t *out, va_list args)
 
int pe__node_xml (pcmk__output_t *out, va_list args)
 
int pe__node_attribute_html (pcmk__output_t *out, va_list args)
 
int pe__node_attribute_text (pcmk__output_t *out, va_list args)
 
int pe__node_attribute_xml (pcmk__output_t *out, va_list args)
 
int pe__node_list_html (pcmk__output_t *out, va_list args)
 
int pe__node_list_text (pcmk__output_t *out, va_list args)
 
int pe__node_list_xml (pcmk__output_t *out, va_list args)
 
int pe__op_history_text (pcmk__output_t *out, va_list args)
 
int pe__op_history_xml (pcmk__output_t *out, va_list args)
 
int pe__resource_history_text (pcmk__output_t *out, va_list args)
 
int pe__resource_history_xml (pcmk__output_t *out, va_list args)
 
int pe__resource_xml (pcmk__output_t *out, va_list args)
 
int pe__resource_html (pcmk__output_t *out, va_list args)
 
int pe__resource_text (pcmk__output_t *out, va_list args)
 
int pe__ticket_html (pcmk__output_t *out, va_list args)
 
int pe__ticket_text (pcmk__output_t *out, va_list args)
 
int pe__ticket_xml (pcmk__output_t *out, va_list args)
 
void native_free (pe_resource_t *rsc)
 
void group_free (pe_resource_t *rsc)
 
void clone_free (pe_resource_t *rsc)
 
void pe__free_bundle (pe_resource_t *rsc)
 
enum rsc_role_e native_resource_state (const pe_resource_t *rsc, gboolean current)
 
enum rsc_role_e group_resource_state (const pe_resource_t *rsc, gboolean current)
 
enum rsc_role_e clone_resource_state (const pe_resource_t *rsc, gboolean current)
 
enum rsc_role_e pe__bundle_resource_state (const pe_resource_t *rsc, gboolean current)
 
void pe__count_common (pe_resource_t *rsc)
 
void pe__count_bundle (pe_resource_t *rsc)
 
gboolean common_unpack (xmlNode *xml_obj, pe_resource_t **rsc, pe_resource_t *parent, pe_working_set_t *data_set)
 
void common_free (pe_resource_t *rsc)
 
pe_node_tpe__copy_node (const pe_node_t *this_node)
 
time_t get_effective_time (pe_working_set_t *data_set)
 
int pe_get_failcount (pe_node_t *node, pe_resource_t *rsc, time_t *last_failure, uint32_t flags, xmlNode *xml_op, pe_working_set_t *data_set)
 
pe_action_tpe__clear_failcount (pe_resource_t *rsc, pe_node_t *node, const char *reason, pe_working_set_t *data_set)
 Schedule a controller operation to clear a fail count. More...
 
pe_node_tpe__find_active_on (const pe_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean)
 
pe_node_tpe__find_active_requires (const pe_resource_t *rsc, unsigned int *count)
 
void node_list_exclude (GHashTable *list, GListPtr list2, gboolean merge_scores)
 
GHashTable * pe__node_list2table (GList *list)
 
pe_action_tget_pseudo_op (const char *name, pe_working_set_t *data_set)
 
gboolean order_actions (pe_action_t *lh_action, pe_action_t *rh_action, enum pe_ordering order)
 
void print_node (const char *pre_text, pe_node_t *node, gboolean details)
 
void print_str_str (gpointer key, gpointer value, gpointer user_data)
 
void pe__output_node (pe_node_t *node, gboolean details, pcmk__output_t *out)
 
void dump_node_capacity (int level, const char *comment, pe_node_t *node)
 
void dump_rsc_utilization (int level, const char *comment, pe_resource_t *rsc, pe_node_t *node)
 
void pe__show_node_weights_as (const char *file, const char *function, int line, bool to_log, pe_resource_t *rsc, const char *comment, GHashTable *nodes)
 
gint sort_rsc_priority (gconstpointer a, gconstpointer b)
 
gint sort_rsc_index (gconstpointer a, gconstpointer b)
 
xmlNode * find_rsc_op_entry (pe_resource_t *rsc, const char *key)
 
pe_action_tcustom_action (pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
 
int pe_get_configured_timeout (pe_resource_t *rsc, const char *action, pe_working_set_t *data_set)
 
pe_action_tfind_first_action (GListPtr input, const char *uuid, const char *task, pe_node_t *on_node)
 
enum action_tasks get_complex_task (pe_resource_t *rsc, const char *name, gboolean allow_non_atomic)
 
GListPtr find_actions (GListPtr input, const char *key, const pe_node_t *on_node)
 
GList * find_actions_exact (GList *input, const char *key, const pe_node_t *on_node)
 
GListPtr find_recurring_actions (GListPtr input, pe_node_t *not_on_node)
 
GList * pe__resource_actions (const pe_resource_t *rsc, const pe_node_t *node, const char *task, bool require_node)
 Find all actions of given type for a resource. More...
 
void pe_free_action (pe_action_t *action)
 
void resource_location (pe_resource_t *rsc, pe_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 (pe_resource_t *rsc, enum rsc_role_e *role)
 
pe_resource_tfind_clone_instance (pe_resource_t *rsc, const char *sub_id, pe_working_set_t *data_set)
 
void destroy_ticket (gpointer data)
 
pe_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 pe__target_rc_from_xml (xmlNode *xml_op)
 
gint sort_node_uname (gconstpointer a, gconstpointer b)
 
bool is_set_recursive (pe_resource_t *rsc, long long flag, bool any)
 
op_digest_cache_trsc_action_digest_cmp (pe_resource_t *rsc, xmlNode *xml_op, pe_node_t *node, pe_working_set_t *data_set)
 
pe_action_tpe_fence_op (pe_node_t *node, const char *op, bool optional, const char *reason, bool priority_delay, pe_working_set_t *data_set)
 
void trigger_unfencing (pe_resource_t *rsc, pe_node_t *node, const char *reason, pe_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 (pe_resource_t *rsc, unsigned long long flag)
 
void clear_bit_recursive (pe_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)
 
int pe__rscs_brief_output (pcmk__output_t *out, GListPtr rsc_list, long options, gboolean print_all)
 
void pe_fence_node (pe_working_set_t *data_set, pe_node_t *node, const char *reason, bool priority_delay)
 Schedule a fence action for a node. More...
 
pe_node_tpe_create_node (const char *id, const char *uname, const char *type, const char *score, pe_working_set_t *data_set)
 
void common_print (pe_resource_t *rsc, const char *pre_text, const char *name, pe_node_t *node, long options, void *print_data)
 
int pe__common_output_text (pcmk__output_t *out, pe_resource_t *rsc, const char *name, pe_node_t *node, long options)
 
int pe__common_output_html (pcmk__output_t *out, pe_resource_t *rsc, const char *name, pe_node_t *node, long options)
 
pe_resource_tpe__find_bundle_replica (const pe_resource_t *bundle, const pe_node_t *node)
 
bool pe__bundle_needs_remote_name (pe_resource_t *rsc)
 
const char * pe__add_bundle_remote_name (pe_resource_t *rsc, xmlNode *xml, const char *field)
 
const char * pe_node_attribute_calculated (const pe_node_t *node, const char *name, const pe_resource_t *rsc)
 
const char * pe_node_attribute_raw (pe_node_t *node, const char *name)
 
bool pe__is_universal_clone (pe_resource_t *rsc, pe_working_set_t *data_set)
 
void pe__add_param_check (xmlNode *rsc_op, pe_resource_t *rsc, pe_node_t *node, enum pe_check_parameters, pe_working_set_t *data_set)
 
void pe__foreach_param_check (pe_working_set_t *data_set, void(*cb)(pe_resource_t *, pe_node_t *, xmlNode *, enum pe_check_parameters, pe_working_set_t *))
 
void pe__free_param_checks (pe_working_set_t *data_set)
 
bool pe__shutdown_requested (pe_node_t *node)
 
void pe__update_recheck_time (time_t recheck, pe_working_set_t *data_set)
 
void pe__register_messages (pcmk__output_t *out)
 
void pe__unpack_dataset_nvpairs (xmlNode *xml_obj, const char *set_name, GHashTable *node_hash, GHashTable *hash, const char *always_first, gboolean overwrite, pe_working_set_t *data_set)
 
bool pe__resource_is_disabled (pe_resource_t *rsc)
 
pe_action_tpe__clear_resource_history (pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set)
 
GListPtr pe__unames_with_tag (pe_working_set_t *data_set, const char *tag_name)
 
bool pe__uname_has_tag (pe_working_set_t *data_set, const char *node, const char *tag)
 
bool pe__rsc_running_on_any_node_in_list (pe_resource_t *rsc, GListPtr node_list)
 
bool pcmk__rsc_is_filtered (pe_resource_t *rsc, GListPtr only_show)
 

Variables

uint32_t pe_wo
 

Macro Definition Documentation

#define BOOL2STR (   x)    ((x) ? "true" : "false")

Definition at line 455 of file internal.h.

#define delete_action (   rsc,
  node,
  optional 
)
Value:
rsc, delete_key(rsc), CRMD_ACTION_DELETE, node, \
optional, TRUE, data_set);
#define delete_key(rsc)
Definition: internal.h:286
#define CRMD_ACTION_DELETE
Definition: crm.h:164
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 287 of file internal.h.

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

Definition at line 286 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:322
#define CRMD_ACTION_DEMOTE
Definition: crm.h:179
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 323 of file internal.h.

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

Definition at line 322 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:327
#define CRMD_ACTION_DEMOTED
Definition: crm.h:180
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 328 of file internal.h.

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

Definition at line 327 of file internal.h.

#define pe__show_node_weights (   level,
  rsc,
  text,
  nodes 
)
Value:
pe__show_node_weights_as(__FILE__, __FUNCTION__, __LINE__, \
(level), (rsc), (text), (nodes))
void pe__show_node_weights_as(const char *file, const char *function, int line, bool to_log, pe_resource_t *rsc, const char *comment, GHashTable *nodes)
Definition: utils.c:350

Definition at line 273 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 416 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 415 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 26 of file internal.h.

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

Definition at line 21 of file internal.h.

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

Definition at line 23 of file internal.h.

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

Definition at line 24 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 18 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 17 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 19 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 25 of file internal.h.

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

Definition at line 22 of file internal.h.

#define pe_warn_once (   pe_wo_bit,
  fmt... 
)
Value:
do { \
if (is_not_set(pe_wo, pe_wo_bit)) { \
if (pe_wo_bit == pe_wo_blind) { \
crm_warn(fmt); \
} else { \
pe_warn(fmt); \
} \
set_bit(pe_wo, pe_wo_bit); \
} \
} while (0);
#define pe_warn(fmt...)
Definition: internal.h:22
#define crm_warn(fmt, args...)
Definition: logging.h:364
#define set_bit(word, bit)
Definition: crm_internal.h:68
uint32_t pe_wo
Definition: unpack.c:57

Definition at line 42 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:177
#define promote_key(rsc)
Definition: internal.h:312
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 313 of file internal.h.

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

Definition at line 312 of file internal.h.

#define promoted_action (   rsc,
  node,
  optional 
)
Value:
rsc, promoted_key(rsc), CRMD_ACTION_PROMOTED, node, \
optional, TRUE, data_set)
#define CRMD_ACTION_PROMOTED
Definition: crm.h:178
#define promoted_key(rsc)
Definition: internal.h:317
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 318 of file internal.h.

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

Definition at line 317 of file internal.h.

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

Definition at line 301 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:171
#define start_key(rsc)
Definition: internal.h:302
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 303 of file internal.h.

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

Definition at line 302 of file internal.h.

#define started_action (   rsc,
  node,
  optional 
)
Value:
rsc, started_key(rsc), CRMD_ACTION_STARTED, node, \
optional, TRUE, data_set)
#define started_key(rsc)
Definition: internal.h:307
#define CRMD_ACTION_STARTED
Definition: crm.h:172
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 308 of file internal.h.

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

Definition at line 307 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:174
#define stop_key(rsc)
Definition: internal.h:296
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 297 of file internal.h.

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

Definition at line 296 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:291
#define CRMD_ACTION_STOPPED
Definition: crm.h:175
pe_action_t * custom_action(pe_resource_t *rsc, char *key, const char *task, pe_node_t *on_node, gboolean optional, gboolean foo, pe_working_set_t *data_set)
Definition: utils.c:485

Definition at line 292 of file internal.h.

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

Definition at line 291 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 215 of file internal.h.

Enumerator
pe_wo_blind 
pe_wo_restart_type 
pe_wo_role_after 
pe_wo_poweroff 
pe_wo_require_all 
pe_wo_order_score 
pe_wo_neg_threshold 

Definition at line 30 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 383 of file internal.h.

Function Documentation

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

Definition at line 573 of file common.c.

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

Definition at line 2538 of file utils.c.

void clear_bit_recursive ( pe_resource_t rsc,
unsigned long long  flag 
)

Definition at line 2285 of file utils.c.

gboolean clone_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 237 of file clone.c.

void clone_free ( pe_resource_t rsc)

Definition at line 1035 of file clone.c.

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

Definition at line 369 of file clone.c.

enum rsc_role_e clone_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1069 of file clone.c.

char* clone_strip ( const char *  last_rsc_id)

Definition at line 1537 of file unpack.c.

gboolean clone_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 111 of file clone.c.

char* clone_zero ( const char *  last_rsc_id)

Definition at line 1559 of file unpack.c.

void common_free ( pe_resource_t rsc)

Definition at line 776 of file complex.c.

void common_print ( pe_resource_t rsc,
const char *  pre_text,
const char *  name,
pe_node_t node,
long  options,
void *  print_data 
)

Definition at line 869 of file native.c.

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

Definition at line 366 of file complex.c.

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

Definition at line 723 of file complex.c.

pe_action_t* custom_action ( pe_resource_t rsc,
char *  key,
const char *  task,
pe_node_t on_node,
gboolean  optional,
gboolean  foo,
pe_working_set_t data_set 
)

Definition at line 485 of file utils.c.

void destroy_ticket ( gpointer  data)

Definition at line 1892 of file utils.c.

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

Definition at line 395 of file utils.c.

void dump_rsc_utilization ( int  level,
const char *  comment,
pe_resource_t rsc,
pe_node_t node 
)

Definition at line 412 of file utils.c.

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

Definition at line 1472 of file utils.c.

GList* find_actions_exact ( GList *  input,
const char *  key,
const pe_node_t on_node 
)

Definition at line 1512 of file utils.c.

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

Definition at line 41 of file clone.c.

pe_action_t* find_first_action ( GListPtr  input,
const char *  uuid,
const char *  task,
pe_node_t on_node 
)

Definition at line 1442 of file utils.c.

GListPtr find_recurring_actions ( GListPtr  input,
pe_node_t not_on_node 
)

Definition at line 1384 of file utils.c.

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

Definition at line 1304 of file utils.c.

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

Definition at line 1418 of file utils.c.

time_t get_effective_time ( pe_working_set_t data_set)

Definition at line 1770 of file utils.c.

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

Definition at line 1875 of file utils.c.

gboolean get_target_role ( pe_resource_t rsc,
enum rsc_role_e role 
)

Definition at line 1785 of file utils.c.

gboolean group_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 87 of file group.c.

void group_free ( pe_resource_t rsc)

Definition at line 268 of file group.c.

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

Definition at line 132 of file group.c.

enum rsc_role_e group_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 289 of file group.c.

gboolean group_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 22 of file group.c.

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

Definition at line 338 of file clone.c.

gboolean native_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 360 of file native.c.

void native_add_running ( pe_resource_t rsc,
pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 83 of file native.c.

pe_resource_t* native_find_rsc ( pe_resource_t rsc,
const char *  id,
const pe_node_t node,
int  flags 
)

Definition at line 260 of file native.c.

void native_free ( pe_resource_t rsc)

Definition at line 1149 of file native.c.

pe_node_t* native_location ( const pe_resource_t rsc,
GList **  list,
int  current 
)

Definition at line 1178 of file native.c.

char* native_parameter ( pe_resource_t rsc,
pe_node_t node,
gboolean  create,
const char *  name,
pe_working_set_t data_set 
)

Definition at line 315 of file native.c.

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

Definition at line 1021 of file native.c.

enum rsc_role_e native_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1156 of file native.c.

gboolean native_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 191 of file native.c.

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

Definition at line 158 of file utils.c.

gboolean order_actions ( pe_action_t lh_action,
pe_action_t rh_action,
enum pe_ordering  order 
)

Definition at line 1823 of file utils.c.

bool pcmk__rsc_is_filtered ( pe_resource_t rsc,
GListPtr  only_show 
)

Definition at line 2766 of file utils.c.

const char* pe__add_bundle_remote_name ( pe_resource_t rsc,
xmlNode *  xml,
const char *  field 
)

Definition at line 986 of file bundle.c.

void pe__add_param_check ( xmlNode *  rsc_op,
pe_resource_t rsc,
pe_node_t node,
enum  pe_check_parameters,
pe_working_set_t data_set 
)

Definition at line 222 of file remote.c.

int pe__add_scores ( int  score1,
int  score2 
)

Definition at line 510 of file common.c.

int pe__ban_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 445 of file pe_output.c.

int pe__ban_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 465 of file pe_output.c.

int pe__ban_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 482 of file pe_output.c.

gboolean pe__bundle_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 1362 of file bundle.c.

int pe__bundle_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1594 of file bundle.c.

bool pe__bundle_needs_remote_name ( pe_resource_t rsc)

Definition at line 956 of file bundle.c.

enum rsc_role_e pe__bundle_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1925 of file bundle.c.

int pe__bundle_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1694 of file bundle.c.

int pe__bundle_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1498 of file bundle.c.

pe_action_t* pe__clear_failcount ( pe_resource_t rsc,
pe_node_t node,
const char *  reason,
pe_working_set_t data_set 
)

Schedule a controller operation to clear a fail count.

Parameters
[in]rscResource with failure
[in]nodeNode failure occurred on
[in]reasonReadable description why needed (for logging)
[in]data_setWorking set for cluster
Returns
Scheduled action

Definition at line 360 of file failcounts.c.

pe_action_t* pe__clear_resource_history ( pe_resource_t rsc,
pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 2741 of file utils.c.

int pe__clone_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 619 of file clone.c.

int pe__clone_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 828 of file clone.c.

int pe__clone_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 575 of file clone.c.

int pe__cluster_counts_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 503 of file pe_output.c.

int pe__cluster_counts_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 565 of file pe_output.c.

int pe__cluster_counts_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 599 of file pe_output.c.

int pe__cluster_dc_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 629 of file pe_output.c.

int pe__cluster_dc_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 663 of file pe_output.c.

int pe__cluster_dc_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 682 of file pe_output.c.

int pe__cluster_maint_mode_html ( pcmk__output_t out,
va_list  args 
)
int pe__cluster_maint_mode_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 705 of file pe_output.c.

int pe__cluster_options_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 714 of file pe_output.c.

int pe__cluster_options_log ( pcmk__output_t out,
va_list  args 
)

Definition at line 757 of file pe_output.c.

int pe__cluster_options_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 770 of file pe_output.c.

int pe__cluster_options_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 802 of file pe_output.c.

int pe__cluster_stack_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 837 of file pe_output.c.

int pe__cluster_stack_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 849 of file pe_output.c.

int pe__cluster_stack_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 857 of file pe_output.c.

int pe__cluster_summary ( pcmk__output_t out,
va_list  args 
)
int pe__cluster_summary_html ( pcmk__output_t out,
va_list  args 
)
int pe__cluster_times_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 868 of file pe_output.c.

int pe__cluster_times_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 913 of file pe_output.c.

int pe__cluster_times_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 892 of file pe_output.c.

int pe__common_output_html ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
long  options 
)

Definition at line 716 of file native.c.

int pe__common_output_text ( pcmk__output_t out,
pe_resource_t rsc,
const char *  name,
pe_node_t node,
long  options 
)

Definition at line 805 of file native.c.

pe_node_t* pe__copy_node ( const pe_node_t this_node)

Definition at line 139 of file utils.c.

void pe__count_bundle ( pe_resource_t rsc)

Definition at line 1952 of file bundle.c.

void pe__count_common ( pe_resource_t rsc)

Definition at line 947 of file complex.c.

int pe__failed_action_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 930 of file pe_output.c.

int pe__failed_action_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 941 of file pe_output.c.

pe_node_t* pe__find_active_on ( const pe_resource_t rsc,
unsigned int *  count_all,
unsigned int *  count_clean 
)

Definition at line 858 of file complex.c.

pe_node_t* pe__find_active_requires ( const pe_resource_t rsc,
unsigned int *  count 
)

Definition at line 938 of file complex.c.

pe_resource_t* pe__find_bundle_replica ( const pe_resource_t bundle,
const pe_node_t node 
)

Definition at line 1410 of file bundle.c.

void pe__foreach_param_check ( pe_working_set_t data_set,
void(*)(pe_resource_t *, pe_node_t *, xmlNode *, enum pe_check_parameters, pe_working_set_t *)  cb 
)

Definition at line 248 of file remote.c.

void pe__free_bundle ( pe_resource_t rsc)

Definition at line 1891 of file bundle.c.

void pe__free_param_checks ( pe_working_set_t data_set)

Definition at line 263 of file remote.c.

int pe__group_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 219 of file group.c.

int pe__group_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 244 of file group.c.

int pe__group_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 182 of file group.c.

bool pe__is_universal_clone ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1095 of file clone.c.

int pe__name_and_nvpairs_xml ( pcmk__output_t out,
bool  is_list,
const char *  tag_name,
size_t  pairs_count,
  ... 
)

Definition at line 413 of file pe_output.c.

int pe__node_attribute_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1214 of file pe_output.c.

int pe__node_attribute_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1188 of file pe_output.c.

int pe__node_attribute_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1244 of file pe_output.c.

char* pe__node_display_name ( pe_node_t node,
bool  print_detail 
)

Definition at line 361 of file pe_output.c.

int pe__node_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1001 of file pe_output.c.

GHashTable* pe__node_list2table ( GList *  list)

Definition at line 201 of file utils.c.

int pe__node_list_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1265 of file pe_output.c.

int pe__node_list_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1300 of file pe_output.c.

int pe__node_list_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1439 of file pe_output.c.

int pe__node_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1063 of file pe_output.c.

int pe__node_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1120 of file pe_output.c.

int pe__op_history_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1465 of file pe_output.c.

int pe__op_history_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1482 of file pe_output.c.

void pe__output_node ( pe_node_t node,
gboolean  details,
pcmk__output_t out 
)

Definition at line 1761 of file pe_output.c.

void pe__print_bundle ( pe_resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 1789 of file bundle.c.

void pe__register_messages ( pcmk__output_t out)

Definition at line 1756 of file pe_output.c.

GList* pe__resource_actions ( const pe_resource_t rsc,
const pe_node_t node,
const char *  task,
bool  require_node 
)

Find all actions of given type for a resource.

Parameters
[in]rscResource to search
[in]nodeFind only actions scheduled on this node
[in]taskAction name to search for
[in]require_nodeIf TRUE, NULL node or action node will not match
Returns
List of actions found (or NULL if none)
Note
If node is not NULL and require_node is FALSE, matching actions without a node will be assigned to node.

Definition at line 1561 of file utils.c.

int pe__resource_history_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1547 of file pe_output.c.

int pe__resource_history_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1569 of file pe_output.c.

int pe__resource_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1112 of file native.c.

bool pe__resource_is_disabled ( pe_resource_t rsc)

Definition at line 2713 of file utils.c.

int pe__resource_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1131 of file native.c.

int pe__resource_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1043 of file native.c.

bool pe__rsc_running_on_any_node_in_list ( pe_resource_t rsc,
GListPtr  node_list 
)

Definition at line 2753 of file utils.c.

int pe__rscs_brief_output ( pcmk__output_t out,
GListPtr  rsc_list,
long  options,
gboolean  print_all 
)

Definition at line 1385 of file native.c.

void pe__show_node_weights_as ( const char *  file,
const char *  function,
int  line,
bool  to_log,
pe_resource_t rsc,
const char *  comment,
GHashTable *  nodes 
)

Definition at line 350 of file utils.c.

bool pe__shutdown_requested ( pe_node_t node)

Definition at line 2666 of file utils.c.

int pe__target_rc_from_xml ( xmlNode *  xml_op)

Definition at line 3277 of file unpack.c.

int pe__ticket_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1613 of file pe_output.c.

int pe__ticket_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1634 of file pe_output.c.

int pe__ticket_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1655 of file pe_output.c.

bool pe__uname_has_tag ( pe_working_set_t data_set,
const char *  node,
const char *  tag 
)

Definition at line 51 of file tags.c.

GListPtr pe__unames_with_tag ( pe_working_set_t data_set,
const char *  tag_name 
)

Definition at line 18 of file tags.c.

gboolean pe__unpack_bundle ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1025 of file bundle.c.

void pe__unpack_dataset_nvpairs ( xmlNode *  xml_obj,
const char *  set_name,
GHashTable *  node_hash,
GHashTable *  hash,
const char *  always_first,
gboolean  overwrite,
pe_working_set_t data_set 
)

Definition at line 2695 of file utils.c.

void pe__update_recheck_time ( time_t  recheck,
pe_working_set_t data_set 
)

Definition at line 2681 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 2574 of file utils.c.

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

Definition at line 2632 of file utils.c.

const char* pe_base_name_end ( const char *  id)

Definition at line 1497 of file unpack.c.

bool pe_can_fence ( pe_working_set_t data_set,
pe_node_t node 
)

Definition at line 87 of file utils.c.

pe_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 369 of file unpack.c.

void pe_fence_node ( pe_working_set_t data_set,
pe_node_t node,
const char *  reason,
bool  priority_delay 
)

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
[in]priority_delayWhether to consider priority-fencing-delay

Definition at line 85 of file unpack.c.

pe_action_t* pe_fence_op ( pe_node_t node,
const char *  op,
bool  optional,
const char *  reason,
bool  priority_delay,
pe_working_set_t data_set 
)

Definition at line 2398 of file utils.c.

void pe_free_action ( pe_action_t action)

Definition at line 1357 of file utils.c.

int pe_get_configured_timeout ( pe_resource_t rsc,
const char *  action,
pe_working_set_t data_set 
)

Definition at line 870 of file utils.c.

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

Definition at line 251 of file failcounts.c.

void pe_metadata ( void  )

Definition at line 299 of file common.c.

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

Definition at line 590 of file common.c.

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

Definition at line 629 of file common.c.

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

Definition at line 1310 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 1305 of file native.c.

void print_str_str ( gpointer  key,
gpointer  value,
gpointer  user_data 
)

Definition at line 1349 of file utils.c.

void resource_location ( pe_resource_t rsc,
pe_node_t node,
int  score,
const char *  tag,
pe_working_set_t data_set 
)

Definition at line 1609 of file utils.c.

op_digest_cache_t* rsc_action_digest_cmp ( pe_resource_t rsc,
xmlNode *  xml_op,
pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 2095 of file utils.c.

void set_bit_recursive ( pe_resource_t rsc,
unsigned long long  flag 
)

Definition at line 2298 of file utils.c.

gint sort_node_uname ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 215 of file utils.c.

gint sort_op_by_callid ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 1653 of file utils.c.

gint sort_rsc_index ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 431 of file utils.c.

gint sort_rsc_priority ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 458 of file utils.c.

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

Definition at line 1904 of file utils.c.

void trigger_unfencing ( pe_resource_t rsc,
pe_node_t node,
const char *  reason,
pe_action_t dependency,
pe_working_set_t data_set 
)

Definition at line 2504 of file utils.c.

void verify_pe_options ( GHashTable *  options)

Definition at line 309 of file common.c.

Variable Documentation

uint32_t pe_wo

Definition at line 57 of file unpack.c.