pacemaker  2.1.4-dc6eb4362
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

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 (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)
 

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 346 of file clone.c.

◆ clone_free()

void clone_free ( pe_resource_t rsc)

Definition at line 1035 of file clone.c.

◆ clone_print()

void clone_print ( pe_resource_t rsc,
const char *  pre_text,
long  options,
void *  print_data 
)

Definition at line 479 of file clone.c.

◆ clone_resource_state()

enum rsc_role_e clone_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1069 of file clone.c.

◆ clone_unpack()

gboolean clone_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 205 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 135 of file clone.c.

◆ is_set_recursive()

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

Definition at line 448 of file clone.c.

◆ pe__clone_child_id()

const char* pe__clone_child_id ( pe_resource_t rsc)

Definition at line 1137 of file clone.c.

◆ pe__clone_default()

int pe__clone_default ( pcmk__output_t out,
va_list  args 
)

Definition at line 757 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 1110 of file clone.c.

◆ pe__clone_xml()

int pe__clone_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 695 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 153 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 116 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 1095 of file clone.c.