pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <crm/cluster/internal.h>
#include <sys/types.h>
#include <stdlib.h>
#include <unistd.h>
#include <fcntl.h>
#include <errno.h>
#include <stdio.h>
#include <signal.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <pwd.h>
#include <glib.h>
#include <bzlib.h>
#include <grp.h>
#include "./utils.h"
#include "./plugin.h"
Go to the source code of this file.
Macros | |
#define | PW_BUFFER_LEN 500 |
Functions | |
void | log_ais_message (int level, const AIS_Message *msg) |
gboolean | spawn_child (crm_child_t *child) |
gboolean | stop_child (crm_child_t *child, int signal) |
void | destroy_ais_node (gpointer data) |
int | update_member (unsigned int id, uint64_t born, uint64_t seq, int32_t votes, uint32_t procs, const char *uname, const char *state, const char *version) |
void | delete_member (uint32_t id, const char *uname) |
const char * | member_uname (uint32_t id) |
char * | append_member (char *data, crm_node_t *node) |
void | swap_sender (AIS_Message *msg) |
char * | get_ais_data (const AIS_Message *msg) |
int | send_plugin_msg (enum crm_ais_msg_types type, const char *host, const char *data) |
int | send_client_ipc (void *conn, const AIS_Message *ais_msg) |
int | send_client_msg (void *conn, enum crm_ais_msg_class class, enum crm_ais_msg_types type, const char *data) |
char * | ais_concat (const char *prefix, const char *suffix, char join) |
hdb_handle_t | config_find_init (struct corosync_api_v1 *config, char *name) |
hdb_handle_t | config_find_next (struct corosync_api_v1 *config, char *name, hdb_handle_t top_handle) |
void | config_find_done (struct corosync_api_v1 *config, hdb_handle_t local_handle) |
int | get_config_opt (struct corosync_api_v1 *config, hdb_handle_t object_service_handle, char *key, char **value, const char *fallback) |
int | ais_get_boolean (const char *value) |
long long | ais_get_int (const char *text, char **end_text) |
int | pcmk_user_lookup (const char *name, uid_t *uid, gid_t *gid) |
Variables | |
struct pcmk_env_s | pcmk_env |
struct corosync_api_v1 * | pcmk_api |
char* ais_concat | ( | const char * | prefix, |
const char * | suffix, | ||
char | join | ||
) |
long long ais_get_int | ( | const char * | text, |
char ** | end_text | ||
) |
char* append_member | ( | char * | data, |
crm_node_t * | node | ||
) |
void config_find_done | ( | struct corosync_api_v1 * | config, |
hdb_handle_t | local_handle | ||
) |
hdb_handle_t config_find_init | ( | struct corosync_api_v1 * | config, |
char * | name | ||
) |
hdb_handle_t config_find_next | ( | struct corosync_api_v1 * | config, |
char * | name, | ||
hdb_handle_t | top_handle | ||
) |
char* get_ais_data | ( | const AIS_Message * | msg | ) |
int get_config_opt | ( | struct corosync_api_v1 * | config, |
hdb_handle_t | object_service_handle, | ||
char * | key, | ||
char ** | value, | ||
const char * | fallback | ||
) |
void log_ais_message | ( | int | level, |
const AIS_Message * | msg | ||
) |
int pcmk_user_lookup | ( | const char * | name, |
uid_t * | uid, | ||
gid_t * | gid | ||
) |
int send_client_ipc | ( | void * | conn, |
const AIS_Message * | ais_msg | ||
) |
int send_client_msg | ( | void * | conn, |
enum crm_ais_msg_class | class, | ||
enum crm_ais_msg_types | type, | ||
const char * | data | ||
) |
int send_plugin_msg | ( | enum crm_ais_msg_types | type, |
const char * | host, | ||
const char * | data | ||
) |
gboolean spawn_child | ( | crm_child_t * | child | ) |
gboolean stop_child | ( | crm_child_t * | child, |
int | signal | ||
) |
void swap_sender | ( | AIS_Message * | msg | ) |
struct pcmk_env_s pcmk_env |