pacemaker  2.1.0-7c3f660
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
clone.c File Reference
#include <crm_internal.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/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_html (pcmk__output_t *out, va_list args)
 
int pe__clone_text (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)
 

Macro Definition Documentation

#define PROMOTED_INSTANCES   RSC_ROLE_PROMOTED_S

Definition at line 26 of file clone.c.

#define UNPROMOTED_INSTANCES   RSC_ROLE_UNPROMOTED_S

Definition at line 27 of file clone.c.

#define VARIANT_CLONE   1

Definition at line 19 of file clone.c.

Function Documentation

gboolean clone_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 261 of file clone.c.

void clone_free ( pe_resource_t rsc)

Definition at line 1142 of file clone.c.

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

Definition at line 394 of file clone.c.

enum rsc_role_e clone_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1176 of file clone.c.

gboolean clone_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 120 of file clone.c.

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

Definition at line 50 of file clone.c.

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

Definition at line 363 of file clone.c.

int pe__clone_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 668 of file clone.c.

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

Definition at line 1217 of file clone.c.

int pe__clone_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 908 of file clone.c.

int pe__clone_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 610 of file clone.c.

pe_resource_t* pe__create_clone_child ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 68 of file clone.c.

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

Definition at line 31 of file clone.c.

bool pe__is_universal_clone ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1202 of file clone.c.