![]() |
pacemaker
2.0.2-debe490
Scalable High-Availability cluster resource manager
|
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 | 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 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_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) |
char * | native_parameter (resource_t *rsc, node_t *node, gboolean create, const char *name, pe_working_set_t *data_set) |
pe_node_t * | native_location (const pe_resource_t *rsc, GList **list, int 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) |
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 | pe__unpack_bundle (pe_resource_t *rsc, pe_working_set_t *data_set) |
resource_t * | native_find_rsc (resource_t *rsc, const char *id, const 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 | pe__bundle_active (pe_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 | pe__print_bundle (pe_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 | pe__free_bundle (pe_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 | pe__bundle_resource_state (const pe_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_t * | node_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) |
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. More... | |
pe_node_t * | pe__find_active_on (const pe_resource_t *rsc, unsigned int *count_all, unsigned int *count_clean) |
pe_node_t * | pe__find_active_requires (const pe_resource_t *rsc, unsigned int *count) |
void | node_list_exclude (GHashTable *list, GListPtr list2, gboolean merge_scores) |
GListPtr | node_list_dup (GListPtr list, gboolean reset, gboolean filter) |
GHashTable * | node_hash_from_list (GListPtr list) |
action_t * | get_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) |
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_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) |
int | pe_get_configured_timeout (resource_t *rsc, const char *action, pe_working_set_t *data_set) |
action_t * | find_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) |
GList * | find_actions_exact (GList *input, const char *key, const pe_node_t *on_node) |
GListPtr | find_recurring_actions (GListPtr input, 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 (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_t * | find_clone_instance (resource_t *rsc, const char *sub_id, pe_working_set_t *data_set) |
void | destroy_ticket (gpointer data) |
ticket_t * | ticket_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_t * | rsc_action_digest_cmp (resource_t *rsc, xmlNode *xml_op, node_t *node, pe_working_set_t *data_set) |
action_t * | pe_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_t * | pe_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) |
pe_resource_t * | pe__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 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) |
#define delete_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 200 of file internal.h.
#define delete_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_DELETE, 0) |
Definition at line 199 of file internal.h.
#define demote_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 236 of file internal.h.
#define demote_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_DEMOTE, 0) |
Definition at line 235 of file internal.h.
#define demoted_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 241 of file internal.h.
#define demoted_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_DEMOTED, 0) |
Definition at line 240 of file internal.h.
#define dump_node_scores | ( | level, | |
rsc, | |||
text, | |||
nodes | |||
) |
Definition at line 186 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 329 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 328 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 25 of file internal.h.
#define pe_err | ( | fmt... | ) | { was_processing_error = TRUE; crm_config_error = TRUE; crm_err(fmt); } |
Definition at line 20 of file internal.h.
#define pe_proc_err | ( | fmt... | ) | { was_processing_error = TRUE; crm_err(fmt); } |
Definition at line 22 of file internal.h.
#define pe_proc_warn | ( | fmt... | ) | { was_processing_warning = TRUE; crm_warn(fmt); } |
Definition at line 23 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 17 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 16 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 18 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 24 of file internal.h.
#define pe_warn | ( | fmt... | ) | { was_processing_warning = TRUE; crm_config_warning = TRUE; crm_warn(fmt); } |
Definition at line 21 of file internal.h.
#define promote_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 226 of file internal.h.
#define promote_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_PROMOTE, 0) |
Definition at line 225 of file internal.h.
#define promoted_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 231 of file internal.h.
#define promoted_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_PROMOTED, 0) |
Definition at line 230 of file internal.h.
#define reload_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_RELOAD, 0) |
Definition at line 214 of file internal.h.
#define start_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 216 of file internal.h.
#define start_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_START, 0) |
Definition at line 215 of file internal.h.
#define started_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 221 of file internal.h.
#define started_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_STARTED, 0) |
Definition at line 220 of file internal.h.
#define stop_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 210 of file internal.h.
#define stop_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_STOP, 0) |
Definition at line 209 of file internal.h.
#define stopped_action | ( | rsc, | |
node, | |||
optional | |||
) |
Definition at line 205 of file internal.h.
#define stopped_key | ( | rsc | ) | generate_op_key(rsc->id, CRMD_ACTION_STOPPED, 0) |
Definition at line 204 of file internal.h.
typedef struct notify_data_s notify_data_t |
typedef struct op_digest_cache_s op_digest_cache_t |
typedef struct pe__location_constraint_s pe__location_t |
typedef struct pe__order_constraint_s pe__ordering_t |
enum pe_fc_flags_e |
Enumerator | |
---|---|
pe_fc_default | |
pe_fc_effective | |
pe_fc_fillers |
Definition at line 127 of file internal.h.
enum rsc_digest_cmp_val |
Definition at line 296 of file internal.h.
void add_hash_param | ( | GHashTable * | hash, |
const char * | name, | ||
const char * | value | ||
) |
gboolean add_tag_ref | ( | GHashTable * | tags, |
const char * | tag_name, | ||
const char * | obj_ref | ||
) |
void clear_bit_recursive | ( | resource_t * | rsc, |
unsigned long long | flag | ||
) |
gboolean clone_active | ( | resource_t * | rsc, |
gboolean | all | ||
) |
void clone_free | ( | resource_t * | rsc | ) |
void clone_print | ( | resource_t * | rsc, |
const char * | pre_text, | ||
long | options, | ||
void * | print_data | ||
) |
enum rsc_role_e clone_resource_state | ( | const resource_t * | rsc, |
gboolean | current | ||
) |
gboolean clone_unpack | ( | resource_t * | rsc, |
pe_working_set_t * | data_set | ||
) |
void common_free | ( | resource_t * | rsc | ) |
void common_print | ( | resource_t * | rsc, |
const char * | pre_text, | ||
const char * | name, | ||
node_t * | node, | ||
long | options, | ||
void * | print_data | ||
) |
gboolean common_unpack | ( | xmlNode * | xml_obj, |
resource_t ** | rsc, | ||
resource_t * | parent, | ||
pe_working_set_t * | data_set | ||
) |
void common_update_score | ( | resource_t * | rsc, |
const char * | id, | ||
int | score | ||
) |
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 | ||
) |
void dump_node_capacity | ( | int | level, |
const char * | comment, | ||
node_t * | node | ||
) |
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_rsc_utilization | ( | int | level, |
const char * | comment, | ||
resource_t * | rsc, | ||
node_t * | node | ||
) |
GList* find_actions_exact | ( | GList * | input, |
const char * | key, | ||
const pe_node_t * | on_node | ||
) |
resource_t* find_clone_instance | ( | resource_t * | rsc, |
const char * | sub_id, | ||
pe_working_set_t * | data_set | ||
) |
xmlNode* find_rsc_op_entry | ( | resource_t * | rsc, |
const char * | key | ||
) |
enum action_tasks get_complex_task | ( | resource_t * | rsc, |
const char * | name, | ||
gboolean | allow_non_atomic | ||
) |
time_t get_effective_time | ( | pe_working_set_t * | data_set | ) |
action_t* get_pseudo_op | ( | const char * | name, |
pe_working_set_t * | data_set | ||
) |
gboolean get_target_role | ( | resource_t * | rsc, |
enum rsc_role_e * | role | ||
) |
gboolean group_active | ( | resource_t * | rsc, |
gboolean | all | ||
) |
void group_free | ( | resource_t * | rsc | ) |
void group_print | ( | resource_t * | rsc, |
const char * | pre_text, | ||
long | options, | ||
void * | print_data | ||
) |
enum rsc_role_e group_resource_state | ( | const resource_t * | rsc, |
gboolean | current | ||
) |
gboolean group_unpack | ( | resource_t * | rsc, |
pe_working_set_t * | data_set | ||
) |
bool is_set_recursive | ( | resource_t * | rsc, |
long long | flag, | ||
bool | any | ||
) |
gboolean native_active | ( | resource_t * | rsc, |
gboolean | all | ||
) |
void native_add_running | ( | resource_t * | rsc, |
node_t * | node, | ||
pe_working_set_t * | data_set | ||
) |
resource_t* native_find_rsc | ( | resource_t * | rsc, |
const char * | id, | ||
const node_t * | node, | ||
int | flags | ||
) |
void native_free | ( | resource_t * | rsc | ) |
pe_node_t* native_location | ( | const pe_resource_t * | rsc, |
GList ** | list, | ||
int | current | ||
) |
char* native_parameter | ( | resource_t * | rsc, |
node_t * | node, | ||
gboolean | create, | ||
const char * | name, | ||
pe_working_set_t * | data_set | ||
) |
void native_print | ( | resource_t * | rsc, |
const char * | pre_text, | ||
long | options, | ||
void * | print_data | ||
) |
enum rsc_role_e native_resource_state | ( | const resource_t * | rsc, |
gboolean | current | ||
) |
gboolean native_unpack | ( | resource_t * | rsc, |
pe_working_set_t * | data_set | ||
) |
GHashTable* node_hash_dup | ( | GHashTable * | hash | ) |
Definition at line 286 of file pcmk_sched_native.c.
void node_list_exclude | ( | GHashTable * | list, |
GListPtr | list2, | ||
gboolean | merge_scores | ||
) |
gboolean order_actions | ( | action_t * | lh_action, |
action_t * | rh_action, | ||
enum pe_ordering | order | ||
) |
const char* pe__add_bundle_remote_name | ( | pe_resource_t * | rsc, |
xmlNode * | xml, | ||
const char * | field | ||
) |
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 | ||
) |
gboolean pe__bundle_active | ( | pe_resource_t * | rsc, |
gboolean | all | ||
) |
bool pe__bundle_needs_remote_name | ( | pe_resource_t * | rsc | ) |
enum rsc_role_e pe__bundle_resource_state | ( | const pe_resource_t * | rsc, |
gboolean | current | ||
) |
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.
[in] | rsc | Resource with failure |
[in] | node | Node failure occurred on |
[in] | reason | Readable description why needed (for logging) |
[in] | data_set | Working set for cluster |
Definition at line 360 of file failcounts.c.
pe_node_t* pe__find_active_on | ( | const pe_resource_t * | rsc, |
unsigned int * | count_all, | ||
unsigned int * | count_clean | ||
) |
pe_node_t* pe__find_active_requires | ( | const pe_resource_t * | rsc, |
unsigned int * | count | ||
) |
pe_resource_t* pe__find_bundle_replica | ( | const pe_resource_t * | bundle, |
const pe_node_t * | node | ||
) |
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 | ||
) |
void pe__free_bundle | ( | pe_resource_t * | rsc | ) |
void pe__free_param_checks | ( | pe_working_set_t * | data_set | ) |
bool pe__is_universal_clone | ( | pe_resource_t * | rsc, |
pe_working_set_t * | data_set | ||
) |
void pe__print_bundle | ( | pe_resource_t * | rsc, |
const char * | pre_text, | ||
long | options, | ||
void * | print_data | ||
) |
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.
[in] | rsc | Resource to search |
[in] | node | Find only actions scheduled on this node |
[in] | task | Action name to search for |
[in] | require_node | If TRUE, NULL node or action node will not match |
gboolean pe__unpack_bundle | ( | pe_resource_t * | rsc, |
pe_working_set_t * | data_set | ||
) |
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 pe_action_set_reason | ( | pe_action_t * | action, |
const char * | reason, | ||
bool | overwrite | ||
) |
bool pe_can_fence | ( | pe_working_set_t * | data_set, |
node_t * | node | ||
) |
node_t* pe_create_node | ( | const char * | id, |
const char * | uname, | ||
const char * | type, | ||
const char * | score, | ||
pe_working_set_t * | data_set | ||
) |
void pe_fence_node | ( | pe_working_set_t * | data_set, |
node_t * | node, | ||
const char * | reason | ||
) |
action_t* pe_fence_op | ( | node_t * | node, |
const char * | op, | ||
bool | optional, | ||
const char * | reason, | ||
pe_working_set_t * | data_set | ||
) |
int pe_get_configured_timeout | ( | resource_t * | rsc, |
const char * | action, | ||
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 | ||
) |
Definition at line 251 of file failcounts.c.
const char* pe_node_attribute_calculated | ( | const pe_node_t * | node, |
const char * | name, | ||
const resource_t * | rsc | ||
) |
const char* pe_node_attribute_raw | ( | pe_node_t * | node, |
const char * | name | ||
) |
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 print_rscs_brief | ( | GListPtr | rsc_list, |
const char * | pre_text, | ||
long | options, | ||
void * | print_data, | ||
gboolean | print_all | ||
) |
bool remote_id_conflict | ( | const char * | remote_name, |
pe_working_set_t * | data | ||
) |
void resource_location | ( | resource_t * | rsc, |
node_t * | node, | ||
int | score, | ||
const char * | tag, | ||
pe_working_set_t * | data_set | ||
) |
op_digest_cache_t* rsc_action_digest_cmp | ( | resource_t * | rsc, |
xmlNode * | xml_op, | ||
node_t * | node, | ||
pe_working_set_t * | data_set | ||
) |
void set_bit_recursive | ( | resource_t * | rsc, |
unsigned long long | flag | ||
) |
gint sort_op_by_callid | ( | gconstpointer | a, |
gconstpointer | b | ||
) |
ticket_t* ticket_new | ( | const char * | ticket_id, |
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 | ||
) |