pacemaker  2.0.4-2deceaa
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 <crm/msg_xml.h>
#include <pe_status_private.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)
int pe__bundle_xml (pcmk__output_t *out, va_list args)
int pe__bundle_html (pcmk__output_t *out, va_list args)
int pe__bundle_text (pcmk__output_t *out, va_list args)
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 pe_resource_t *rsc)
 Get the number of configured replicas in a bundle. More...
void pe__count_bundle (pe_resource_t *rsc)

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 986 of file bundle.c.

gboolean pe__bundle_active ( pe_resource_t rsc,
gboolean  all 

Definition at line 1362 of file bundle.c.

int pe__bundle_html ( pcmk__output_t out,
va_list  args 

Definition at line 1594 of file bundle.c.

bool pe__bundle_needs_remote_name ( pe_resource_t rsc)

Definition at line 956 of file bundle.c.

enum rsc_role_e pe__bundle_resource_state ( const pe_resource_t rsc,
gboolean  current 

Definition at line 1925 of file bundle.c.

int pe__bundle_text ( pcmk__output_t out,
va_list  args 

Definition at line 1694 of file bundle.c.

int pe__bundle_xml ( pcmk__output_t out,
va_list  args 

Definition at line 1498 of file bundle.c.

void pe__count_bundle ( pe_resource_t rsc)

Definition at line 1952 of file bundle.c.

pe_resource_t* pe__find_bundle_replica ( const pe_resource_t bundle,
const pe_node_t node 

Definition at line 1410 of file bundle.c.

void pe__free_bundle ( pe_resource_t rsc)

Definition at line 1891 of file bundle.c.

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

Definition at line 1789 of file bundle.c.

gboolean pe__unpack_bundle ( pe_resource_t rsc,
pe_working_set_t data_set 

Definition at line 1025 of file bundle.c.

int pe_bundle_replicas ( const pe_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 1939 of file bundle.c.