pacemaker  2.1.2-ada5c3b36
Scalable High-Availability cluster resource manager
Macros | Functions
pcmk_sched_utils.c File Reference
#include <crm_internal.h>
#include <crm/msg_xml.h>
#include <crm/lrmd.h>
#include <crm/common/xml_internal.h>
#include <crm/lrmd_internal.h>
#include <pacemaker-internal.h>
#include <pacemaker.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_utils.c:

Go to the source code of this file.

Macros

#define FAKE_TE_ID   "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
 

Functions

gboolean can_run_resources (const pe_node_t *node)
 
GHashTable * pcmk__copy_node_table (GHashTable *nodes)
 
GList * pcmk__copy_node_list (const GList *list, bool reset)
 
GList * sort_nodes_by_weight (GList *nodes, pe_node_t *active_node, pe_working_set_t *data_set)
 
void native_deallocate (pe_resource_t *rsc)
 
gboolean native_assign_node (pe_resource_t *rsc, pe_node_t *chosen, gboolean force)
 
void log_action (unsigned int log_level, const char *pre_text, pe_action_t *action, gboolean details)
 
gboolean can_run_any (GHashTable *nodes)
 
pe_action_tcreate_pseudo_resource_op (pe_resource_t *rsc, const char *task, bool optional, bool runnable, pe_working_set_t *data_set)
 
pe_action_tpe_cancel_op (pe_resource_t *rsc, const char *task, guint interval_ms, pe_node_t *node, pe_working_set_t *data_set)
 
pe_action_tsched_shutdown_op (pe_node_t *node, pe_working_set_t *data_set)
 
xmlNode * pcmk__create_history_xml (xmlNode *parent, lrmd_event_data_t *op, const char *caller_version, int target_rc, const char *node, const char *origin, int level)
 
pcmk__output_tpcmk__new_logger (void)
 
bool pcmk__threshold_reached (pe_resource_t *rsc, pe_node_t *node, pe_working_set_t *data_set, pe_resource_t **failed)
 
void pcmk_free_injections (pcmk_injections_t *injections)
 Free a :pcmk_injections_t structure. More...
 

Macro Definition Documentation

◆ FAKE_TE_ID

#define FAKE_TE_ID   "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Definition at line 543 of file pcmk_sched_utils.c.

Function Documentation

◆ can_run_any()

gboolean can_run_any ( GHashTable *  nodes)

Definition at line 407 of file pcmk_sched_utils.c.

◆ can_run_resources()

gboolean can_run_resources ( const pe_node_t node)

Definition at line 20 of file pcmk_sched_utils.c.

◆ create_pseudo_resource_op()

pe_action_t* create_pseudo_resource_op ( pe_resource_t rsc,
const char *  task,
bool  optional,
bool  runnable,
pe_working_set_t data_set 
)

Definition at line 427 of file pcmk_sched_utils.c.

◆ log_action()

void log_action ( unsigned int  log_level,
const char *  pre_text,
pe_action_t action,
gboolean  details 
)

Definition at line 309 of file pcmk_sched_utils.c.

◆ native_assign_node()

gboolean native_assign_node ( pe_resource_t rsc,
pe_node_t chosen,
gboolean  force 
)

Definition at line 226 of file pcmk_sched_utils.c.

◆ native_deallocate()

void native_deallocate ( pe_resource_t rsc)

Definition at line 208 of file pcmk_sched_utils.c.

◆ pcmk__copy_node_list()

GList* pcmk__copy_node_list ( const GList *  list,
bool  reset 
)

Definition at line 81 of file pcmk_sched_utils.c.

◆ pcmk__copy_node_table()

GHashTable* pcmk__copy_node_table ( GHashTable *  nodes)

Definition at line 51 of file pcmk_sched_utils.c.

◆ pcmk__create_history_xml()

xmlNode* pcmk__create_history_xml ( xmlNode *  parent,
lrmd_event_data_t op,
const char *  caller_version,
int  target_rc,
const char *  node,
const char *  origin,
int  level 
)

Definition at line 560 of file pcmk_sched_utils.c.

◆ pcmk__new_logger()

pcmk__output_t* pcmk__new_logger ( void  )

Definition at line 721 of file pcmk_sched_utils.c.

◆ pcmk__threshold_reached()

bool pcmk__threshold_reached ( pe_resource_t rsc,
pe_node_t node,
pe_working_set_t data_set,
pe_resource_t **  failed 
)

Definition at line 757 of file pcmk_sched_utils.c.

◆ pcmk_free_injections()

void pcmk_free_injections ( pcmk_injections_t injections)

Free a :pcmk_injections_t structure.

Parameters
[in,out]injectionsThe structure to be freed

Definition at line 809 of file pcmk_sched_utils.c.

◆ pe_cancel_op()

pe_action_t* pe_cancel_op ( pe_resource_t rsc,
const char *  task,
guint  interval_ms,
pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 452 of file pcmk_sched_utils.c.

◆ sched_shutdown_op()

pe_action_t* sched_shutdown_op ( pe_node_t node,
pe_working_set_t data_set 
)

Definition at line 487 of file pcmk_sched_utils.c.

◆ sort_nodes_by_weight()

GList* sort_nodes_by_weight ( GList *  nodes,
pe_node_t active_node,
pe_working_set_t data_set 
)

Definition at line 199 of file pcmk_sched_utils.c.