pacemaker  2.1.6-802a72226b
Scalable High-Availability cluster resource manager
Macros | Typedefs | 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 dependency graph for clone.c:

Go to the source code of this file.

Macros

#define PROMOTED_INSTANCES   RSC_ROLE_PROMOTED_S
 
#define UNPROMOTED_INSTANCES   RSC_ROLE_UNPROMOTED_S
 
#define get_clone_variant_data(data, rsc)
 

Typedefs

typedef struct clone_variant_data_s clone_variant_data_t
 

Functions

int pe__clone_max (const pe_resource_t *clone)
 
int pe__clone_node_max (const pe_resource_t *clone)
 
int pe__clone_promoted_max (const pe_resource_t *clone)
 
int pe__clone_promoted_node_max (const 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 (const pe_resource_t *rsc, const char *sub_id)
 
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 (const pe_resource_t *rsc, const pe_working_set_t *data_set)
 
gboolean pe__clone_is_filtered (const pe_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 
const char * pe__clone_child_id (const pe_resource_t *rsc)
 
bool pe__clone_is_ordered (const 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)
 
void pe__create_clone_notifications (pe_resource_t *clone)
 
void pe__free_clone_notification_data (pe_resource_t *clone)
 
void pe__create_clone_notif_pseudo_ops (pe_resource_t *clone, pe_action_t *start, pe_action_t *started, pe_action_t *stop, pe_action_t *stopped)
 

Macro Definition Documentation

◆ get_clone_variant_data

#define get_clone_variant_data (   data,
  rsc 
)
Value:
CRM_ASSERT((rsc != NULL) && (rsc->variant == pe_clone)); \
data = (clone_variant_data_t *) rsc->variant_opaque;
struct clone_variant_data_s clone_variant_data_t
#define CRM_ASSERT(expr)
Definition: results.h:42

Definition at line 49 of file clone.c.

◆ PROMOTED_INSTANCES

#define PROMOTED_INSTANCES   RSC_ROLE_PROMOTED_S

Definition at line 26 of file clone.c.

◆ UNPROMOTED_INSTANCES

#define UNPROMOTED_INSTANCES   RSC_ROLE_UNPROMOTED_S

Definition at line 27 of file clone.c.

Typedef Documentation

◆ clone_variant_data_t

typedef struct clone_variant_data_s clone_variant_data_t

Function Documentation

◆ clone_active()

gboolean clone_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 442 of file clone.c.

◆ clone_free()

void clone_free ( pe_resource_t rsc)

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

◆ clone_resource_state()

enum rsc_role_e clone_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 1203 of file clone.c.

◆ clone_unpack()

gboolean clone_unpack ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 295 of file clone.c.

◆ find_clone_instance()

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

Definition at line 226 of file clone.c.

◆ is_set_recursive()

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

Definition at line 555 of file clone.c.

◆ pe__clone_child_id()

const char* pe__clone_child_id ( const pe_resource_t rsc)

Definition at line 1273 of file clone.c.

◆ pe__clone_default()

int pe__clone_default ( pcmk__output_t out,
va_list  args 
)

Definition at line 884 of file clone.c.

◆ pe__clone_is_filtered()

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

Definition at line 1243 of file clone.c.

◆ pe__clone_is_ordered()

bool pe__clone_is_ordered ( const pe_resource_t clone)

Definition at line 1289 of file clone.c.

◆ pe__clone_max()

int pe__clone_max ( const pe_resource_t clone)

Definition at line 62 of file clone.c.

◆ pe__clone_node_max()

int pe__clone_node_max ( const pe_resource_t clone)

Definition at line 79 of file clone.c.

◆ pe__clone_promoted_max()

int pe__clone_promoted_max ( const pe_resource_t clone)

Definition at line 96 of file clone.c.

◆ pe__clone_promoted_node_max()

int pe__clone_promoted_node_max ( const pe_resource_t clone)

Definition at line 113 of file clone.c.

◆ pe__clone_xml()

int pe__clone_xml ( pcmk__output_t out,
va_list  args 
)

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

◆ pe__create_clone_notif_pseudo_ops()

void pe__create_clone_notif_pseudo_ops ( pe_resource_t clone,
pe_action_t start,
pe_action_t started,
pe_action_t stop,
pe_action_t stopped 
)

Definition at line 1448 of file clone.c.

◆ pe__create_clone_notifications()

void pe__create_clone_notifications ( pe_resource_t clone)

Definition at line 1399 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 1331 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 209 of file clone.c.

◆ pe__free_clone_notification_data()

void pe__free_clone_notification_data ( pe_resource_t clone)

Definition at line 1418 of file clone.c.

◆ pe__is_universal_clone()

bool pe__is_universal_clone ( const pe_resource_t rsc,
const pe_working_set_t data_set 
)

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