pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
Functions | Variables
corosync.c File Reference
#include <crm_internal.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <netdb.h>
#include <inttypes.h>
#include <bzlib.h>
#include <crm/common/ipc.h>
#include <crm/cluster/internal.h>
#include <crm/common/mainloop.h>
#include <sys/utsname.h>
#include <qb/qbipcc.h>
#include <qb/qbutil.h>
#include <corosync/corodefs.h>
#include <corosync/corotypes.h>
#include <corosync/hdb.h>
#include <corosync/cfg.h>
#include <corosync/cmap.h>
#include <corosync/quorum.h>
#include <crm/msg_xml.h>
#include <crm/common/ipc_internal.h>
Include dependency graph for corosync.c:

Go to the source code of this file.

Functions

char * get_corosync_uuid (crm_node_t *node)
 
char * corosync_node_name (uint64_t cmap_handle, uint32_t nodeid)
 
void terminate_cs_connection (crm_cluster_t *cluster)
 
gboolean cluster_connect_quorum (gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer))
 
gboolean init_cs_connection (crm_cluster_t *cluster)
 
gboolean init_cs_connection_once (crm_cluster_t *cluster)
 
gboolean check_message_sanity (const AIS_Message *msg, const char *data)
 
enum cluster_type_e find_corosync_variant (void)
 
gboolean crm_is_corosync_peer_active (const crm_node_t *node)
 
gboolean corosync_initialize_nodelist (void *cluster, gboolean force_member, xmlNode *xml_parent)
 
char * corosync_cluster_name (void)
 
int corosync_cmap_has_config (const char *prefix)
 

Variables

quorum_handle_t pcmk_quorum_handle = 0
 
gboolean(* quorum_app_callback )(unsigned long long seq, gboolean quorate) = NULL
 
quorum_callbacks_t quorum_callbacks
 

Function Documentation

◆ check_message_sanity()

gboolean check_message_sanity ( const AIS_Message msg,
const char *  data 
)

Definition at line 421 of file corosync.c.

◆ cluster_connect_quorum()

gboolean cluster_connect_quorum ( gboolean(*)(unsigned long long, gboolean)  dispatch,
void(*)(gpointer)  destroy 
)

Definition at line 272 of file corosync.c.

◆ corosync_cluster_name()

char* corosync_cluster_name ( void  )

Definition at line 639 of file corosync.c.

◆ corosync_cmap_has_config()

int corosync_cmap_has_config ( const char *  prefix)

Definition at line 704 of file corosync.c.

◆ corosync_initialize_nodelist()

gboolean corosync_initialize_nodelist ( void *  cluster,
gboolean  force_member,
xmlNode *  xml_parent 
)

Definition at line 530 of file corosync.c.

◆ corosync_node_name()

char* corosync_node_name ( uint64_t  cmap_handle,
uint32_t  nodeid 
)

Definition at line 61 of file corosync.c.

◆ crm_is_corosync_peer_active()

gboolean crm_is_corosync_peer_active ( const crm_node_t node)

Definition at line 512 of file corosync.c.

◆ find_corosync_variant()

enum cluster_type_e find_corosync_variant ( void  )

Definition at line 484 of file corosync.c.

◆ get_corosync_uuid()

char* get_corosync_uuid ( crm_node_t node)

Definition at line 44 of file corosync.c.

◆ init_cs_connection()

gboolean init_cs_connection ( crm_cluster_t cluster)

Definition at line 357 of file corosync.c.

◆ init_cs_connection_once()

gboolean init_cs_connection_once ( crm_cluster_t cluster)

Definition at line 383 of file corosync.c.

◆ terminate_cs_connection()

void terminate_cs_connection ( crm_cluster_t cluster)

Definition at line 174 of file corosync.c.

Variable Documentation

◆ pcmk_quorum_handle

quorum_handle_t pcmk_quorum_handle = 0

Definition at line 39 of file corosync.c.

◆ quorum_app_callback

gboolean(* quorum_app_callback) (unsigned long long seq, gboolean quorate) = NULL

Definition at line 41 of file corosync.c.

◆ quorum_callbacks

quorum_callbacks_t quorum_callbacks
Initial value:
= {
.quorum_notify_fn = pcmk_quorum_notification,
}

Definition at line 267 of file corosync.c.