pacemaker  2.0.2-debe490
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
bundle.c File Reference
#include <crm_internal.h>
#include <ctype.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 bundle.c:

Go to the source code of this file.


#define PE__VARIANT_BUNDLE   1


bool pe__bundle_needs_remote_name (pe_resource_t *rsc)
const char * pe__add_bundle_remote_name (pe_resource_t *rsc, xmlNode *xml, const char *field)
gboolean pe__unpack_bundle (pe_resource_t *rsc, pe_working_set_t *data_set)
gboolean pe__bundle_active (pe_resource_t *rsc, gboolean all)
pe_resource_tpe__find_bundle_replica (const pe_resource_t *bundle, const pe_node_t *node)
void pe__print_bundle (pe_resource_t *rsc, const char *pre_text, long options, void *print_data)
void pe__free_bundle (pe_resource_t *rsc)
enum rsc_role_e pe__bundle_resource_state (const pe_resource_t *rsc, gboolean current)
int pe_bundle_replicas (const resource_t *rsc)
 Get the number of configured replicas in a bundle. More...

Macro Definition Documentation

#define PE__VARIANT_BUNDLE   1

Definition at line 20 of file bundle.c.

Function Documentation

const char* pe__add_bundle_remote_name ( pe_resource_t rsc,
xmlNode *  xml,
const char *  field 

Definition at line 985 of file bundle.c.

gboolean pe__bundle_active ( pe_resource_t rsc,
gboolean  all 

Definition at line 1356 of file bundle.c.

bool pe__bundle_needs_remote_name ( pe_resource_t rsc)

Definition at line 955 of file bundle.c.

enum rsc_role_e pe__bundle_resource_state ( const pe_resource_t rsc,
gboolean  current 

Definition at line 1657 of file bundle.c.

pe_resource_t* pe__find_bundle_replica ( const pe_resource_t bundle,
const pe_node_t node 

Definition at line 1404 of file bundle.c.

void pe__free_bundle ( pe_resource_t rsc)

Definition at line 1623 of file bundle.c.

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

Definition at line 1521 of file bundle.c.

gboolean pe__unpack_bundle ( pe_resource_t rsc,
pe_working_set_t data_set 

Definition at line 1024 of file bundle.c.

int pe_bundle_replicas ( const resource_t rsc)

Get the number of configured replicas in a bundle.

[in]rscBundle resource
Number of configured replicas, or 0 on error

Definition at line 1671 of file bundle.c.