pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
pcmk_sched_transition.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <sys/param.h>
#include <sys/types.h>
#include <dirent.h>
#include <crm/crm.h>
#include <crm/cib.h>
#include <crm/common/util.h>
#include <crm/transition.h>
#include <crm/common/iso8601.h>
#include <crm/pengine/status.h>
#include <pacemaker-internal.h>
Include dependency graph for pcmk_sched_transition.c:

Go to the source code of this file.

Macros

#define STATUS_PATH_MAX   512
 
#define quiet_log(fmt, args...)
 
#define NEW_NODE_TEMPLATE   "//"XML_CIB_TAG_NODE"[@uname='%s']"
 
#define NODE_TEMPLATE   "//"XML_CIB_TAG_STATE"[@uname='%s']"
 
#define RSC_TEMPLATE   "//"XML_CIB_TAG_STATE"[@uname='%s']//"XML_LRM_TAG_RESOURCE"[@id='%s']"
 
#define XPATH_MAX   1024
 

Functions

void modify_configuration (pe_working_set_t *data_set, cib_t *cib, const char *quorum, const char *watchdog, GListPtr node_up, GListPtr node_down, GListPtr node_fail, GListPtr op_inject, GListPtr ticket_grant, GListPtr ticket_revoke, GListPtr ticket_standby, GListPtr ticket_activate)
 
int run_simulation (pe_working_set_t *data_set, cib_t *cib, GListPtr op_fail_list, bool quiet)
 

Variables

gboolean bringing_nodes_online = FALSE
 

Macro Definition Documentation

#define NEW_NODE_TEMPLATE   "//"XML_CIB_TAG_NODE"[@uname='%s']"

Definition at line 43 of file pcmk_sched_transition.c.

#define NODE_TEMPLATE   "//"XML_CIB_TAG_STATE"[@uname='%s']"

Definition at line 44 of file pcmk_sched_transition.c.

#define quiet_log (   fmt,
  args... 
)
Value:
do { \
if(fake_quiet) { \
crm_trace(fmt, ##args); \
} else { \
printf(fmt , ##args); \
} \
} while(0)
#define crm_trace(fmt, args...)
Definition: logging.h:246

Definition at line 35 of file pcmk_sched_transition.c.

#define RSC_TEMPLATE   "//"XML_CIB_TAG_STATE"[@uname='%s']//"XML_LRM_TAG_RESOURCE"[@id='%s']"

Definition at line 45 of file pcmk_sched_transition.c.

#define STATUS_PATH_MAX   512

Definition at line 33 of file pcmk_sched_transition.c.

#define XPATH_MAX   1024

Definition at line 325 of file pcmk_sched_transition.c.

Function Documentation

void modify_configuration ( pe_working_set_t data_set,
cib_t cib,
const char *  quorum,
const char *  watchdog,
GListPtr  node_up,
GListPtr  node_down,
GListPtr  node_fail,
GListPtr  op_inject,
GListPtr  ticket_grant,
GListPtr  ticket_revoke,
GListPtr  ticket_standby,
GListPtr  ticket_activate 
)

Definition at line 406 of file pcmk_sched_transition.c.

int run_simulation ( pe_working_set_t data_set,
cib_t cib,
GListPtr  op_fail_list,
bool  quiet 
)

Definition at line 811 of file pcmk_sched_transition.c.

Variable Documentation

gboolean bringing_nodes_online = FALSE

Definition at line 31 of file pcmk_sched_transition.c.