pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
bundle.c File Reference
#include <crm_internal.h>
#include <ctype.h>
#include <stdint.h>
#include <crm/pengine/rules.h>
#include <crm/pengine/status.h>
#include <crm/pengine/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/output.h>
#include <crm/common/xml_internal.h>
#include <pe_status_private.h>
#include "./variant.h"
Include dependency graph for bundle.c:

Go to the source code of this file.

Macros

#define PE__VARIANT_BUNDLE   1
 
#define pe__set_bundle_mount_flags(mount_xml, flags, flags_to_set)
 

Functions

bool pe__bundle_needs_remote_name (pe_resource_t *rsc, pe_working_set_t *data_set)
 
const char * pe__add_bundle_remote_name (pe_resource_t *rsc, pe_working_set_t *data_set, 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)
 
gboolean pe__bundle_is_filtered (pe_resource_t *rsc, GList *only_rsc, gboolean check_parent)
 

Macro Definition Documentation

◆ pe__set_bundle_mount_flags

#define pe__set_bundle_mount_flags (   mount_xml,
  flags,
  flags_to_set 
)
Value:
do { \
flags = pcmk__set_flags_as(__func__, __LINE__, LOG_TRACE, \
"Bundle mount", ID(mount_xml), flags, \
(flags_to_set), #flags_to_set); \
} while (0)
#define LOG_TRACE
Definition: logging.h:37
#define ID(x)
Definition: msg_xml.h:460
uint64_t flags
Definition: remote.c:149

Definition at line 1000 of file bundle.c.

◆ PE__VARIANT_BUNDLE

#define PE__VARIANT_BUNDLE   1

Definition at line 23 of file bundle.c.

Function Documentation

◆ pe__add_bundle_remote_name()

const char* pe__add_bundle_remote_name ( pe_resource_t rsc,
pe_working_set_t data_set,
xmlNode *  xml,
const char *  field 
)

Definition at line 961 of file bundle.c.

◆ pe__bundle_active()

gboolean pe__bundle_active ( pe_resource_t rsc,
gboolean  all 
)

Definition at line 1355 of file bundle.c.

◆ pe__bundle_html()

int pe__bundle_html ( pcmk__output_t out,
va_list  args 
)

Definition at line 1615 of file bundle.c.

◆ pe__bundle_is_filtered()

gboolean pe__bundle_is_filtered ( pe_resource_t rsc,
GList *  only_rsc,
gboolean  check_parent 
)

Definition at line 2059 of file bundle.c.

◆ pe__bundle_needs_remote_name()

bool pe__bundle_needs_remote_name ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 943 of file bundle.c.

◆ pe__bundle_resource_state()

enum rsc_role_e pe__bundle_resource_state ( const pe_resource_t rsc,
gboolean  current 
)

Definition at line 2008 of file bundle.c.

◆ pe__bundle_text()

int pe__bundle_text ( pcmk__output_t out,
va_list  args 
)

Definition at line 1743 of file bundle.c.

◆ pe__bundle_xml()

int pe__bundle_xml ( pcmk__output_t out,
va_list  args 
)

Definition at line 1491 of file bundle.c.

◆ pe__count_bundle()

void pe__count_bundle ( pe_resource_t rsc)

Definition at line 2035 of file bundle.c.

◆ pe__find_bundle_replica()

pe_resource_t* pe__find_bundle_replica ( const pe_resource_t bundle,
const pe_node_t node 
)

Definition at line 1403 of file bundle.c.

◆ pe__free_bundle()

void pe__free_bundle ( pe_resource_t rsc)

Definition at line 1974 of file bundle.c.

◆ pe__print_bundle()

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

Definition at line 1872 of file bundle.c.

◆ pe__unpack_bundle()

gboolean pe__unpack_bundle ( pe_resource_t rsc,
pe_working_set_t data_set 
)

Definition at line 1007 of file bundle.c.

◆ pe_bundle_replicas()

int pe_bundle_replicas ( const pe_resource_t rsc)

Get the number of configured replicas in a bundle.

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

Definition at line 2022 of file bundle.c.