pacemaker  1.1.18-7fdfbbe
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 <unpack.h>
#include <crm/msg_xml.h>
#include "./variant.h"
Include dependency graph for clone.c:

Go to the source code of this file.

Macros

#define VARIANT_CLONE   1
 

Functions

void force_non_unique_clone (resource_t *rsc, const char *rid, pe_working_set_t *data_set)
 
resource_tcreate_child_clone (resource_t *rsc, int sub_id, pe_working_set_t *data_set)
 
resource_tfind_clone_instance (resource_t *rsc, const char *sub_id, pe_working_set_t *data_set)
 
gboolean master_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_unpack (resource_t *rsc, pe_working_set_t *data_set)
 
gboolean clone_active (resource_t *rsc, gboolean all)
 
bool is_set_recursive (resource_t *rsc, long long flag, bool any)
 
void clone_print (resource_t *rsc, const char *pre_text, long options, void *print_data)
 
void clone_free (resource_t *rsc)
 
enum rsc_role_e clone_resource_state (const resource_t *rsc, gboolean current)
 

Macro Definition Documentation

#define VARIANT_CLONE   1

Definition at line 27 of file clone.c.

Function Documentation

gboolean clone_active ( resource_t rsc,
gboolean  all 
)

Definition at line 250 of file clone.c.

void clone_free ( resource_t rsc)

Definition at line 585 of file clone.c.

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

Definition at line 383 of file clone.c.

enum rsc_role_e clone_resource_state ( const resource_t rsc,
gboolean  current 
)

Definition at line 620 of file clone.c.

gboolean clone_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 153 of file clone.c.

resource_t * create_child_clone ( resource_t rsc,
int  sub_id,
pe_working_set_t data_set 
)

Definition at line 84 of file clone.c.

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

Definition at line 66 of file clone.c.

void force_non_unique_clone ( resource_t rsc,
const char *  rid,
pe_working_set_t data_set 
)

Definition at line 48 of file clone.c.

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

Definition at line 352 of file clone.c.

gboolean master_unpack ( resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 135 of file clone.c.