pacemaker  3.0.0-d8340737c4
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/common/xml.h>
#include <crm/common/output.h>
#include <crm/common/xml_internal.h>
#include <crm/common/scheduler_internal.h>
Include dependency graph for clone.c:

Go to the source code of this file.

Macros

#define get_clone_variant_data(data, rsc)
 

Typedefs

typedef struct clone_variant_data_s clone_variant_data_t
 

Functions

int pe__clone_max (const pcmk_resource_t *clone)
 
int pe__clone_node_max (const pcmk_resource_t *clone)
 
int pe__clone_promoted_max (const pcmk_resource_t *clone)
 
int pe__clone_promoted_node_max (const pcmk_resource_t *clone)
 
void pe__force_anon (const char *standard, pcmk_resource_t *rsc, const char *rid, pcmk_scheduler_t *scheduler)
 
pcmk_resource_tpe__create_clone_child (pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
 
gboolean clone_unpack (pcmk_resource_t *rsc, pcmk_scheduler_t *scheduler)
 
gboolean clone_active (pcmk_resource_t *rsc, gboolean all)
 
bool is_set_recursive (const pcmk_resource_t *rsc, long long flag, bool any)
 
void clone_free (pcmk_resource_t *rsc)
 
enum rsc_role_e clone_resource_state (const pcmk_resource_t *rsc, gboolean current)
 
bool pe__is_universal_clone (const pcmk_resource_t *rsc, const pcmk_scheduler_t *scheduler)
 
gboolean pe__clone_is_filtered (const pcmk_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 
const char * pe__clone_child_id (const pcmk_resource_t *rsc)
 
bool pe__clone_is_ordered (const pcmk_resource_t *clone)
 
int pe__set_clone_flag (pcmk_resource_t *clone, enum pcmk__clone_flags flag)
 
bool pe__clone_flag_is_set (const pcmk_resource_t *clone, uint32_t flags)
 
void pe__create_promotable_pseudo_ops (pcmk_resource_t *clone, bool any_promoting, bool any_demoting)
 
void pe__create_clone_notifications (pcmk_resource_t *clone)
 
void pe__free_clone_notification_data (pcmk_resource_t *clone)
 
void pe__create_clone_notif_pseudo_ops (pcmk_resource_t *clone, pcmk_action_t *start, pcmk_action_t *started, pcmk_action_t *stop, pcmk_action_t *stopped)
 
unsigned int pe__clone_max_per_node (const pcmk_resource_t *rsc)
 

Macro Definition Documentation

◆ get_clone_variant_data

#define get_clone_variant_data (   data,
  rsc 
)
Value:
do { \
pcmk__assert(pcmk__is_clone(rsc)); \
data = rsc->priv->variant_opaque; \
} while (0)

Definition at line 42 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 ( pcmk_resource_t rsc,
gboolean  all 
)

Definition at line 442 of file clone.c.

◆ clone_free()

void clone_free ( pcmk_resource_t rsc)

Definition at line 915 of file clone.c.

◆ clone_resource_state()

enum rsc_role_e clone_resource_state ( const pcmk_resource_t rsc,
gboolean  current 
)

Definition at line 951 of file clone.c.

◆ clone_unpack()

gboolean clone_unpack ( pcmk_resource_t rsc,
pcmk_scheduler_t scheduler 
)

Definition at line 323 of file clone.c.

◆ is_set_recursive()

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

Definition at line 497 of file clone.c.

◆ pe__clone_child_id()

const char* pe__clone_child_id ( const pcmk_resource_t rsc)

Definition at line 1025 of file clone.c.

◆ pe__clone_flag_is_set()

bool pe__clone_flag_is_set ( const pcmk_resource_t clone,
uint32_t  flags 
)

Definition at line 1084 of file clone.c.

◆ pe__clone_is_filtered()

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

Definition at line 993 of file clone.c.

◆ pe__clone_is_ordered()

bool pe__clone_is_ordered ( const pcmk_resource_t clone)

Definition at line 1041 of file clone.c.

◆ pe__clone_max()

int pe__clone_max ( const pcmk_resource_t clone)

Definition at line 56 of file clone.c.

◆ pe__clone_max_per_node()

unsigned int pe__clone_max_per_node ( const pcmk_resource_t rsc)

Definition at line 1251 of file clone.c.

◆ pe__clone_node_max()

int pe__clone_node_max ( const pcmk_resource_t clone)

Definition at line 73 of file clone.c.

◆ pe__clone_promoted_max()

int pe__clone_promoted_max ( const pcmk_resource_t clone)

Definition at line 90 of file clone.c.

◆ pe__clone_promoted_node_max()

int pe__clone_promoted_node_max ( const pcmk_resource_t clone)

Definition at line 107 of file clone.c.

◆ pe__create_clone_child()

pcmk_resource_t* pe__create_clone_child ( pcmk_resource_t rsc,
pcmk_scheduler_t scheduler 
)

Definition at line 222 of file clone.c.

◆ pe__create_clone_notif_pseudo_ops()

void pe__create_clone_notif_pseudo_ops ( pcmk_resource_t clone,
pcmk_action_t start,
pcmk_action_t started,
pcmk_action_t stop,
pcmk_action_t stopped 
)

Definition at line 1216 of file clone.c.

◆ pe__create_clone_notifications()

void pe__create_clone_notifications ( pcmk_resource_t clone)

Definition at line 1167 of file clone.c.

◆ pe__create_promotable_pseudo_ops()

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

Definition at line 1103 of file clone.c.

◆ pe__force_anon()

void pe__force_anon ( const char *  standard,
pcmk_resource_t rsc,
const char *  rid,
pcmk_scheduler_t scheduler 
)

Definition at line 205 of file clone.c.

◆ pe__free_clone_notification_data()

void pe__free_clone_notification_data ( pcmk_resource_t clone)

Definition at line 1186 of file clone.c.

◆ pe__is_universal_clone()

bool pe__is_universal_clone ( const pcmk_resource_t rsc,
const pcmk_scheduler_t scheduler 
)

Definition at line 979 of file clone.c.

◆ pe__set_clone_flag()

int pe__set_clone_flag ( pcmk_resource_t clone,
enum pcmk__clone_flags  flag 
)

Definition at line 1060 of file clone.c.