pacemaker  2.0.4-2deceaa
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
unpack.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <time.h>
#include <crm/crm.h>
#include <crm/services.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <crm/common/util.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/internal.h>
#include <crm/common/iso8601_internal.h>
#include <pe_status_private.h>
Include dependency graph for unpack.c:

Go to the source code of this file.


#define set_config_flag(data_set, option, flag)
#define STATUS_PATH_MAX   1024


 CRM_TRACE_INIT_DATA (pe_status)
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...
gboolean unpack_config (xmlNode *config, pe_working_set_t *data_set)
pe_node_tpe_create_node (const char *id, const char *uname, const char *type, const char *score, pe_working_set_t *data_set)
gboolean unpack_nodes (xmlNode *xml_nodes, pe_working_set_t *data_set)
gboolean unpack_remote_nodes (xmlNode *xml_resources, pe_working_set_t *data_set)
gboolean unpack_resources (xmlNode *xml_resources, pe_working_set_t *data_set)
gboolean unpack_tags (xmlNode *xml_tags, pe_working_set_t *data_set)
gboolean unpack_status (xmlNode *status, 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)
void calculate_active_ops (GListPtr sorted_op_list, int *start_index, int *stop_index)
int pe__target_rc_from_xml (xmlNode *xml_op)
GListPtr find_operations (const char *rsc, const char *node, gboolean active_filter, pe_working_set_t *data_set)


uint32_t pe_wo = 0

Macro Definition Documentation

#define set_config_flag (   data_set,
do { \
const char *tmp = pe_pref(data_set->config_hash, option); \
if(tmp) { \
if(crm_is_true(tmp)) { \
set_bit(data_set->flags, flag); \
} else { \
clear_bit(data_set->flags, flag); \
} \
} \
} while(0)
const char * pe_pref(GHashTable *options, const char *name)
Definition: common.c:315
#define clear_bit(word, bit)
Definition: crm_internal.h:69
#define set_bit(word, bit)
Definition: crm_internal.h:68
gboolean crm_is_true(const char *s)
Definition: strings.c:278

Definition at line 30 of file unpack.c.

#define STATUS_PATH_MAX   1024

Definition at line 2408 of file unpack.c.

Definition: msg_xml.h:140
Definition: unpack.c:158
Definition: msg_xml.h:164
#define XML_TAG_CIB
Definition: msg_xml.h:76
Definition: msg_xml.h:146
Definition: msg_xml.h:138

Definition at line 164 of file unpack.c.

"and @" XML_NVPAIR_ATTR_VALUE "='unfencing']"
Definition: msg_xml.h:339
Definition: msg_xml.h:204
Definition: msg_xml.h:160
Definition: msg_xml.h:203
Definition: msg_xml.h:340

Definition at line 158 of file unpack.c.

Function Documentation

void calculate_active_ops ( GListPtr  sorted_op_list,
int *  start_index,
int *  stop_index 

Definition at line 2140 of file unpack.c.

char* clone_strip ( const char *  last_rsc_id)

Definition at line 1537 of file unpack.c.

char* clone_zero ( const char *  last_rsc_id)

Definition at line 1559 of file unpack.c.

CRM_TRACE_INIT_DATA ( pe_status  )
GListPtr find_operations ( const char *  rsc,
const char *  node,
gboolean  active_filter,
pe_working_set_t data_set 

Definition at line 3805 of file unpack.c.

int pe__target_rc_from_xml ( xmlNode *  xml_op)

Definition at line 3277 of file unpack.c.

const char* pe_base_name_end ( const char *  id)

Definition at line 1497 of file unpack.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.

[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.

gboolean unpack_config ( xmlNode *  config,
pe_working_set_t data_set 

Definition at line 186 of file unpack.c.

gboolean unpack_nodes ( xmlNode *  xml_nodes,
pe_working_set_t data_set 

Definition at line 509 of file unpack.c.

gboolean unpack_remote_nodes ( xmlNode *  xml_resources,
pe_working_set_t data_set 

Definition at line 599 of file unpack.c.

gboolean unpack_resources ( xmlNode *  xml_resources,
pe_working_set_t data_set 

Definition at line 736 of file unpack.c.

gboolean unpack_status ( xmlNode *  status,
pe_working_set_t data_set 

Definition at line 1091 of file unpack.c.

gboolean unpack_tags ( xmlNode *  xml_tags,
pe_working_set_t data_set 

Definition at line 799 of file unpack.c.

Variable Documentation

uint32_t pe_wo = 0

Definition at line 57 of file unpack.c.