pacemaker  2.1.5-b7adf64e51
Scalable High-Availability cluster resource manager
Macros | Functions
clone.c File Reference
#include <crm_internal.h>
#include <stdint.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/status.h>
#include <crm/pengine/internal.h>
#include <pe_status_private.h>
#include <crm/msg_xml.h>
#include <crm/common/output.h>
#include <crm/common/xml_internal.h>
#include "./variant.h"
Include dependency graph for clone.c:

Go to the source code of this file.

Macros

#define VARIANT_CLONE   1
 
#define PROMOTED_INSTANCES   RSC_ROLE_PROMOTED_S
 
#define UNPROMOTED_INSTANCES   RSC_ROLE_UNPROMOTED_S
 

Functions

int pe__clone_promoted_max (pe_resource_t *clone)
 
int pe__clone_promoted_node_max (pe_resource_t *clone)
 
void pe__force_anon (const char *standard, pe_resource_t *rsc, const char *rid, pe_working_set_t *data_set)
 
pe_resource_tfind_clone_instance (pe_resource_t *rsc, const char *sub_id, pe_working_set_t *data_set)
 
pe_resource_tpe__create_clone_child (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_unpack (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_active (pe_resource_t *rsc, gboolean all)
 
bool is_set_recursive (const pe_resource_t *rsc, long long flag, bool any)
 
void clone_print (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
 
int pe__clone_xml (pcmk__output_t *out, va_list args)
 
int pe__clone_default (pcmk__output_t *out, va_list args)
 
void clone_free (pe_resource_t *rsc)
 
enum rsc_role_e clone_resource_state (const pe_resource_t *rsc, gboolean current)
 
bool pe__is_universal_clone (pe_resource_t *rsc, pe_working_set_t *data_set)
 
gboolean pe__clone_is_filtered (pe_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 
const char * pe__clone_child_id (pe_resource_t *rsc)
 
bool pe__clone_is_ordered (pe_resource_t *clone)
 
int pe__set_clone_flag (pe_resource_t *clone, enum pe__clone_flags flag)
 
void pe__create_promotable_pseudo_ops (pe_resource_t *clone, bool any_promoting, bool any_demoting)
 

Macro Definition Documentation

◆ PROMOTED_INSTANCES

#define PROMOTED_INSTANCES   RSC_ROLE_PROMOTED_S

Definition at line 29 of file clone.c.

◆ UNPROMOTED_INSTANCES

#define UNPROMOTED_INSTANCES   RSC_ROLE_UNPROMOTED_S

Definition at line 30 of file clone.c.

◆ VARIANT_CLONE

#define VARIANT_CLONE   1

Definition at line 22 of file clone.c.

Function Documentation

◆ clone_active()

gboolean clone_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 383 of file clone.c.

◆ clone_free()

void clone_free ( pe_resource_t rsc)

Definition at line 1098 of file clone.c.

◆ clone_print()

void clone_print ( pe_resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)
Deprecated:
This function will be removed in a future release

Definition at line 531 of file clone.c.

◆ clone_resource_state()

enum rsc_role_e clone_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1132 of file clone.c.

◆ clone_unpack()

gboolean clone_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 236 of file clone.c.

◆ find_clone_instance()

pe_resource_t* find_clone_instance ( pe_resource_t rsc,
const char *  sub_id,
pe_working_set_t data_set 
)

Definition at line 167 of file clone.c.

◆ is_set_recursive()

bool is_set_recursive ( const pe_resource_t rsc,
long long  flag,
bool  any 
)

Definition at line 496 of file clone.c.

◆ pe__clone_child_id()

const char* pe__clone_child_id ( pe_resource_t rsc)

Definition at line 1200 of file clone.c.

◆ pe__clone_default()

int pe__clone_default ( pcmk__output_t out,
va_list  args 
)

Definition at line 817 of file clone.c.

◆ pe__clone_is_filtered()

gboolean pe__clone_is_filtered ( pe_resource_t rsc,
GList *  only_rsc,
gboolean  check_parent 
)

Definition at line 1173 of file clone.c.

◆ pe__clone_is_ordered()

bool pe__clone_is_ordered ( pe_resource_t clone)

Definition at line 1216 of file clone.c.

◆ pe__clone_promoted_max()

int pe__clone_promoted_max ( pe_resource_t clone)

Definition at line 42 of file clone.c.

◆ pe__clone_promoted_node_max()

int pe__clone_promoted_node_max ( pe_resource_t clone)

Definition at line 59 of file clone.c.

◆ pe__clone_xml()

int pe__clone_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 755 of file clone.c.

◆ pe__create_clone_child()

pe_resource_t* pe__create_clone_child ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 185 of file clone.c.

◆ pe__create_promotable_pseudo_ops()

void pe__create_promotable_pseudo_ops ( pe_resource_t clone,
bool  any_promoting,
bool  any_demoting 
)

Definition at line 1258 of file clone.c.

◆ pe__force_anon()

void pe__force_anon ( const char *  standard,
pe_resource_t rsc,
const char *  rid,
pe_working_set_t data_set 
)

Definition at line 148 of file clone.c.

◆ pe__is_universal_clone()

bool pe__is_universal_clone ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1158 of file clone.c.

◆ pe__set_clone_flag()

int pe__set_clone_flag ( pe_resource_t clone,
enum pe__clone_flags  flag 
)

Definition at line 1235 of file clone.c.