pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Functions
pcmk_sched_resource.c File Reference
#include <crm_internal.h>
#include <stdlib.h>
#include <string.h>
#include <crm/msg_xml.h>
#include <pacemaker-internal.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_sched_resource.c:

Go to the source code of this file.

Functions

bool pcmk__rsc_agent_changed (pe_resource_t *rsc, pe_node_t *node, const xmlNode *rsc_entry, bool active_on_node)
 
GList * pcmk__rscs_matching_id (const char *id, pe_working_set_t *data_set)
 
void pcmk__set_allocation_methods (pe_working_set_t *data_set)
 
GList * pcmk__colocated_resources (pe_resource_t *rsc, pe_resource_t *orig_rsc, GList *colocated_rscs)
 
void pcmk__noop_add_graph_meta (pe_resource_t *rsc, xmlNode *xml)
 
void pcmk__output_resource_actions (pe_resource_t *rsc)
 
bool pcmk__finalize_assignment (pe_resource_t *rsc, pe_node_t *chosen, bool force)
 
bool pcmk__assign_resource (pe_resource_t *rsc, pe_node_t *node, bool force)
 
void pcmk__unassign_resource (pe_resource_t *rsc)
 
bool pcmk__threshold_reached (pe_resource_t *rsc, pe_node_t *node, pe_resource_t **failed)
 
void pcmk__sort_resources (pe_working_set_t *data_set)
 
gint pcmk__cmp_instance_number (gconstpointer a, gconstpointer b)
 
gint pcmk__cmp_instance (gconstpointer a, gconstpointer b)
 

Function Documentation

◆ pcmk__assign_resource()

bool pcmk__assign_resource ( pe_resource_t rsc,
pe_node_t node,
bool  force 
)

Definition at line 435 of file pcmk_sched_resource.c.

◆ pcmk__cmp_instance()

gint pcmk__cmp_instance ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 930 of file pcmk_sched_resource.c.

◆ pcmk__cmp_instance_number()

gint pcmk__cmp_instance_number ( gconstpointer  a,
gconstpointer  b 
)

Definition at line 881 of file pcmk_sched_resource.c.

◆ pcmk__colocated_resources()

GList* pcmk__colocated_resources ( pe_resource_t rsc,
pe_resource_t orig_rsc,
GList *  colocated_rscs 
)

Definition at line 211 of file pcmk_sched_resource.c.

◆ pcmk__finalize_assignment()

bool pcmk__finalize_assignment ( pe_resource_t rsc,
pe_node_t chosen,
bool  force 
)

Definition at line 337 of file pcmk_sched_resource.c.

◆ pcmk__noop_add_graph_meta()

void pcmk__noop_add_graph_meta ( pe_resource_t rsc,
xmlNode *  xml 
)

Definition at line 275 of file pcmk_sched_resource.c.

◆ pcmk__output_resource_actions()

void pcmk__output_resource_actions ( pe_resource_t rsc)

Definition at line 280 of file pcmk_sched_resource.c.

◆ pcmk__rsc_agent_changed()

bool pcmk__rsc_agent_changed ( pe_resource_t rsc,
pe_node_t node,
const xmlNode *  rsc_entry,
bool  active_on_node 
)

Definition at line 99 of file pcmk_sched_resource.c.

◆ pcmk__rscs_matching_id()

GList* pcmk__rscs_matching_id ( const char *  id,
pe_working_set_t data_set 
)

Definition at line 171 of file pcmk_sched_resource.c.

◆ pcmk__set_allocation_methods()

void pcmk__set_allocation_methods ( pe_working_set_t data_set)

Definition at line 203 of file pcmk_sched_resource.c.

◆ pcmk__sort_resources()

void pcmk__sort_resources ( pe_working_set_t data_set)

Definition at line 698 of file pcmk_sched_resource.c.

◆ pcmk__threshold_reached()

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

Definition at line 500 of file pcmk_sched_resource.c.

◆ pcmk__unassign_resource()

void pcmk__unassign_resource ( pe_resource_t rsc)

Definition at line 466 of file pcmk_sched_resource.c.