10 #ifndef CRM_CLUSTER_INTERNAL__H
11 # define CRM_CLUSTER_INTERNAL__H
39 static inline uint32_t
40 crm_get_cluster_proc(
void)
60 static inline const char *
61 pcmk__cs_err_str(
int error)
65 case CS_OK:
return "OK";
66 case CS_ERR_LIBRARY:
return "Library error";
67 case CS_ERR_VERSION:
return "Version error";
68 case CS_ERR_INIT:
return "Initialization error";
69 case CS_ERR_TIMEOUT:
return "Timeout";
70 case CS_ERR_TRY_AGAIN:
return "Try again";
71 case CS_ERR_INVALID_PARAM:
return "Invalid parameter";
72 case CS_ERR_NO_MEMORY:
return "No memory";
73 case CS_ERR_BAD_HANDLE:
return "Bad handle";
74 case CS_ERR_BUSY:
return "Busy";
75 case CS_ERR_ACCESS:
return "Access error";
76 case CS_ERR_NOT_EXIST:
return "Doesn't exist";
77 case CS_ERR_NAME_TOO_LONG:
return "Name too long";
78 case CS_ERR_EXIST:
return "Exists";
79 case CS_ERR_NO_SPACE:
return "No space";
80 case CS_ERR_INTERRUPT:
return "Interrupt";
81 case CS_ERR_NAME_NOT_FOUND:
return "Name not found";
82 case CS_ERR_NO_RESOURCES:
return "No resources";
83 case CS_ERR_NOT_SUPPORTED:
return "Not supported";
84 case CS_ERR_BAD_OPERATION:
return "Bad operation";
85 case CS_ERR_FAILED_OPERATION:
return "Failed operation";
86 case CS_ERR_MESSAGE_ERROR:
return "Message error";
87 case CS_ERR_QUEUE_FULL:
return "Queue full";
88 case CS_ERR_QUEUE_NOT_AVAILABLE:
return "Queue not available";
89 case CS_ERR_BAD_FLAGS:
return "Bad flags";
90 case CS_ERR_TOO_BIG:
return "Too big";
91 case CS_ERR_NO_SECTIONS:
return "No sections";
94 return "Corosync error";
103 uint32_t flag,
const char *status);
105 const char *state, uint64_t membership);
108 const char *expected);
113 void (*destroy) (gpointer));
void pcmk__reap_unseen_nodes(uint64_t ring_id)
bool pcmk__corosync_add_nodes(xmlNode *xml_parent)
crm_node_t * pcmk__search_known_node_cache(unsigned int id, const char *uname, uint32_t flags)
char * pcmk__corosync_cluster_name(void)
crm_node_t * pcmk__update_peer_state(const char *source, crm_node_t *node, const char *state, uint64_t membership)
Update a node's state and membership information.
crm_node_t * pcmk__search_cluster_node_cache(unsigned int id, const char *uname)
crm_node_t * crm_update_peer_proc(const char *source, crm_node_t *peer, uint32_t flag, const char *status)
void pcmk__update_peer_expected(const char *source, crm_node_t *node, const char *expected)
crm_node_t * pcmk__search_node_caches(unsigned int id, const char *uname, uint32_t flags)
void pcmk__corosync_quorum_connect(gboolean(*dispatch)(unsigned long long, gboolean), void(*destroy)(gpointer))
enum cluster_type_e get_cluster_type(void)
Get (and validate) the local cluster type.
void pcmk__refresh_node_caches_from_cib(xmlNode *cib)