38 #include <sys/types.h> 40 #include <sys/socket.h> 42 #include <netinet/in.h> 43 #include <arpa/inet.h> 55 #include <qb/qbipc_common.h> 57 #include <qb/qblist.h> 82 #define DEFAULT_SHUTDOWN_TIMEOUT 5 84 static struct qb_list_head trackers_list;
90 static struct cfg_info *shutdown_con;
91 static uint32_t shutdown_flags;
92 static int shutdown_yes;
93 static int shutdown_no;
94 static int shutdown_expected;
104 static void cfg_confchg_fn (
106 const unsigned int *member_list,
size_t member_list_entries,
107 const unsigned int *left_list,
size_t left_list_entries,
108 const unsigned int *joined_list,
size_t joined_list_entries,
113 static struct corosync_api_v1 *api;
115 static int cfg_lib_init_fn (
void *
conn);
117 static int cfg_lib_exit_fn (
void *
conn);
119 static void message_handler_req_exec_cfg_ringreenable (
123 static void message_handler_req_exec_cfg_killnode (
127 static void message_handler_req_exec_cfg_shutdown (
131 static void message_handler_req_exec_cfg_reload_config (
135 static void message_handler_req_exec_cfg_reconfig_crypto (
139 static void exec_cfg_killnode_endian_convert (
void *msg);
141 static void message_handler_req_lib_cfg_ringstatusget (
145 static void message_handler_req_lib_cfg_nodestatusget (
149 static void message_handler_req_lib_cfg_ringreenable (
153 static void message_handler_req_lib_cfg_killnode (
157 static void message_handler_req_lib_cfg_tryshutdown (
161 static void message_handler_req_lib_cfg_replytoshutdown (
165 static void message_handler_req_lib_cfg_get_node_addrs (
169 static void message_handler_req_lib_cfg_local_get (
173 static void message_handler_req_lib_cfg_reload_config (
177 static void message_handler_req_lib_cfg_reopen_log_files (
191 .lib_handler_fn = message_handler_req_lib_cfg_ringreenable,
195 .lib_handler_fn = message_handler_req_lib_cfg_killnode,
199 .lib_handler_fn = message_handler_req_lib_cfg_tryshutdown,
203 .lib_handler_fn = message_handler_req_lib_cfg_replytoshutdown,
207 .lib_handler_fn = message_handler_req_lib_cfg_get_node_addrs,
211 .lib_handler_fn = message_handler_req_lib_cfg_local_get,
215 .lib_handler_fn = message_handler_req_lib_cfg_reload_config,
219 .lib_handler_fn = message_handler_req_lib_cfg_reopen_log_files,
223 .lib_handler_fn = message_handler_req_lib_cfg_nodestatusget,
234 .exec_handler_fn = message_handler_req_exec_cfg_killnode,
235 .exec_endian_convert_fn = exec_cfg_killnode_endian_convert
238 .exec_handler_fn = message_handler_req_exec_cfg_shutdown,
241 .exec_handler_fn = message_handler_req_exec_cfg_reload_config,
244 .exec_handler_fn = message_handler_req_exec_cfg_reconfig_crypto,
252 .
name =
"corosync configuration service",
255 .private_data_size =
sizeof(
struct cfg_info),
258 .lib_init_fn = cfg_lib_init_fn,
259 .lib_exit_fn = cfg_lib_exit_fn,
260 .lib_engine = cfg_lib_engine,
262 .exec_init_fn = cfg_exec_init_fn,
263 .exec_engine = cfg_exec_engine,
265 .confchg_fn = cfg_confchg_fn
270 return (&cfg_service_engine);
274 struct qb_ipc_request_header header __attribute__((aligned(8)));
279 struct qb_ipc_request_header header __attribute__((aligned(8)));
284 struct qb_ipc_request_header header __attribute__((aligned(8)));
289 struct qb_ipc_request_header header __attribute__((aligned(8)));
295 struct qb_ipc_request_header header __attribute__((aligned(8)));
300 static char *cfg_exec_init_fn (
301 struct corosync_api_v1 *corosync_api_v1)
303 api = corosync_api_v1;
305 qb_list_init(&trackers_list);
309 static void cfg_confchg_fn (
311 const unsigned int *member_list,
size_t member_list_entries,
312 const unsigned int *left_list,
size_t left_list_entries,
313 const unsigned int *joined_list,
size_t joined_list_entries,
321 static int send_shutdown(
void)
327 req_exec_cfg_shutdown.header.size =
328 sizeof (
struct req_exec_cfg_shutdown);
332 iovec.iov_base = (
char *)&req_exec_cfg_shutdown;
333 iovec.iov_len =
sizeof (
struct req_exec_cfg_shutdown);
341 static void send_test_shutdown(
void *only_conn,
void *exclude_conn,
int status)
344 struct qb_list_head *iter;
347 res_lib_cfg_testshutdown.header.size =
sizeof(
struct res_lib_cfg_testshutdown);
349 res_lib_cfg_testshutdown.header.error = status;
350 res_lib_cfg_testshutdown.
flags = shutdown_flags;
353 TRACE1(
"sending testshutdown to only %p", only_conn);
355 sizeof(res_lib_cfg_testshutdown));
357 qb_list_for_each(iter, &trackers_list) {
360 if (ci->
conn != exclude_conn) {
363 sizeof(res_lib_cfg_testshutdown));
370 static void check_shutdown_status(
void)
385 if (shutdown_yes + shutdown_no >= shutdown_expected) {
390 if (shutdown_yes >= shutdown_expected ||
392 TRACE1(
"shutdown confirmed");
394 res_lib_cfg_tryshutdown.header.size =
sizeof(
struct res_lib_cfg_tryshutdown);
396 res_lib_cfg_tryshutdown.header.error =
CS_OK;
402 sizeof(res_lib_cfg_tryshutdown));
413 TRACE1(
"shutdown cancelled");
414 res_lib_cfg_tryshutdown.header.size =
sizeof(
struct res_lib_cfg_tryshutdown);
416 res_lib_cfg_tryshutdown.header.error =
CS_ERR_BUSY;
422 sizeof(res_lib_cfg_tryshutdown));
427 shutdown_yes, shutdown_no, shutdown_flags);
436 static void shutdown_timer_fn(
void *arg)
443 shutdown_no = shutdown_expected;
444 check_shutdown_status();
450 static void remove_ci_from_shutdown(
struct cfg_info *ci)
458 if (ci == shutdown_con) {
463 if (!qb_list_empty(&ci->
list)) {
464 qb_list_del(&ci->
list);
465 qb_list_init(&ci->
list);
483 check_shutdown_status();
489 int cfg_lib_exit_fn (
void *
conn)
494 remove_ci_from_shutdown(ci);
499 static int cfg_lib_init_fn (
void *
conn)
504 qb_list_init(&ci->
list);
513 static void message_handler_req_exec_cfg_ringreenable (
522 static void exec_cfg_killnode_endian_convert (
void *msg)
525 (
struct req_exec_cfg_killnode *)msg;
528 swab_mar_name_t(&req_exec_cfg_killnode->reason);
533 static void message_handler_req_exec_cfg_killnode (
544 marshall_from_mar_name_t(&reason, &req_exec_cfg_killnode->reason);
546 nodeid, reason.
value);
555 static void message_handler_req_exec_cfg_shutdown (
569 static int nullcheck_strcmp(
const char* left,
const char *right)
579 return strcmp(left, right);
585 static void delete_and_notify_if_changed(
icmap_map_t temp_map,
const char *key_name)
600 static void remove_ro_entries(
icmap_map_t temp_map)
602 #ifndef HAVE_KNET_CRYPTO_RECONF 603 delete_and_notify_if_changed(temp_map,
"totem.secauth");
604 delete_and_notify_if_changed(temp_map,
"totem.crypto_hash");
605 delete_and_notify_if_changed(temp_map,
"totem.crypto_cipher");
606 delete_and_notify_if_changed(temp_map,
"totem.keyfile");
607 delete_and_notify_if_changed(temp_map,
"totem.key");
609 delete_and_notify_if_changed(temp_map,
"totem.version");
610 delete_and_notify_if_changed(temp_map,
"totem.threads");
611 delete_and_notify_if_changed(temp_map,
"totem.ip_version");
612 delete_and_notify_if_changed(temp_map,
"totem.rrp_mode");
613 delete_and_notify_if_changed(temp_map,
"totem.netmtu");
614 delete_and_notify_if_changed(temp_map,
"totem.interface.ringnumber");
615 delete_and_notify_if_changed(temp_map,
"totem.interface.bindnetaddr");
616 delete_and_notify_if_changed(temp_map,
"totem.interface.mcastaddr");
617 delete_and_notify_if_changed(temp_map,
"totem.interface.broadcast");
618 delete_and_notify_if_changed(temp_map,
"totem.interface.mcastport");
619 delete_and_notify_if_changed(temp_map,
"totem.interface.ttl");
620 delete_and_notify_if_changed(temp_map,
"totem.transport");
621 delete_and_notify_if_changed(temp_map,
"totem.cluster_name");
622 delete_and_notify_if_changed(temp_map,
"quorum.provider");
623 delete_and_notify_if_changed(temp_map,
"system.move_to_root_cgroup");
624 delete_and_notify_if_changed(temp_map,
"system.sched_rr");
625 delete_and_notify_if_changed(temp_map,
"system.priority");
626 delete_and_notify_if_changed(temp_map,
"system.qb_ipc_type");
627 delete_and_notify_if_changed(temp_map,
"system.state_dir");
637 static void remove_deleted_entries(
icmap_map_t temp_map,
const char *prefix)
641 const char *old_key, *new_key;
650 while (old_key || new_key) {
651 ret = nullcheck_strcmp(old_key, new_key);
652 if ((ret < 0 && old_key) || !new_key) {
662 ret = nullcheck_strcmp(old_key, new_key);
663 }
while (ret < 0 && old_key);
665 else if ((ret > 0 && new_key) || !old_key) {
675 ret = nullcheck_strcmp(old_key, new_key);
676 }
while (ret > 0 && new_key);
690 static void message_handler_req_exec_cfg_reload_config (
698 const char *error_string;
708 memset(&new_config, 0,
sizeof(new_config));
714 goto reload_fini_nomap;
724 goto reload_fini_nofree;
731 remove_deleted_entries(temp_map,
"logging.");
732 remove_deleted_entries(temp_map,
"totem.");
733 remove_deleted_entries(temp_map,
"nodelist.");
734 remove_deleted_entries(temp_map,
"quorum.");
735 remove_deleted_entries(temp_map,
"uidgid.config.");
736 remove_deleted_entries(temp_map,
"nozzle.");
739 remove_ro_entries(temp_map);
742 memset(&new_config, 0,
sizeof(new_config));
787 #ifndef HAVE_KNET_CRYPTO_RECONF 831 req_exec_cfg_crypto_reconfig.header.size =
832 sizeof (
struct req_exec_cfg_crypto_reconfig);
837 iovec.iov_base = (
char *)&req_exec_cfg_crypto_reconfig;
838 iovec.iov_len =
sizeof (
struct req_exec_cfg_crypto_reconfig);
845 res_lib_cfg_reload_config.header.size =
sizeof(res_lib_cfg_reload_config);
847 res_lib_cfg_reload_config.header.error = res;
849 &res_lib_cfg_reload_config,
850 sizeof(res_lib_cfg_reload_config));
864 static void message_handler_req_exec_cfg_reconfig_crypto (
879 struct req_exec_cfg_crypto_reconfig req_exec_cfg_crypto_reconfig2;
882 req_exec_cfg_crypto_reconfig2.header.size =
883 sizeof (
struct req_exec_cfg_crypto_reconfig);
888 iovec.iov_base = (
char *)&req_exec_cfg_crypto_reconfig2;
889 iovec.iov_len =
sizeof (
struct req_exec_cfg_crypto_reconfig);
900 static void message_handler_req_lib_cfg_ringstatusget (
906 unsigned int iface_count;
908 const char *totem_ip_string;
917 res_lib_cfg_ringstatusget.header.size =
sizeof (
struct res_lib_cfg_ringstatusget);
929 res_lib_cfg_ringstatusget.interface_count = iface_count;
931 for (i = 0; i < iface_count; i++) {
935 if (!totem_ip_string) {
945 snprintf(ifname,
sizeof(ifname),
"%d %s", iface_ids[i], totem_ip_string);
953 strcpy ((
char *)&res_lib_cfg_ringstatusget.interface_status[i],
955 strcpy ((
char *)&res_lib_cfg_ringstatusget.interface_name[i],
960 res_lib_cfg_ringstatusget.header.error = res;
963 &res_lib_cfg_ringstatusget,
964 sizeof (
struct res_lib_cfg_ringstatusget));
970 static void message_handler_req_lib_cfg_nodestatusget (
976 void *res_lib_cfg_nodestatusget_ptr = NULL;
977 size_t res_lib_cfg_nodestatusget_size;
984 memset(&node_status, 0,
sizeof(node_status));
986 res_lib_cfg_nodestatusget_ptr = &res_lib_cfg_nodestatusget_version;
987 res_lib_cfg_nodestatusget_size =
sizeof(res_lib_cfg_nodestatusget_version);
991 res_lib_cfg_nodestatusget_version.header.size = res_lib_cfg_nodestatusget_size;
993 goto ipc_response_send;
997 switch (req_lib_cfg_nodestatusget->version) {
999 res_lib_cfg_nodestatusget_ptr = &res_lib_cfg_nodestatusget_v1;
1000 res_lib_cfg_nodestatusget_size =
sizeof(res_lib_cfg_nodestatusget_v1);
1002 res_lib_cfg_nodestatusget_v1.header.error =
CS_OK;
1004 res_lib_cfg_nodestatusget_v1.header.size = res_lib_cfg_nodestatusget_size;
1007 res_lib_cfg_nodestatusget_v1.node_status.nodeid = req_lib_cfg_nodestatusget->nodeid;
1008 res_lib_cfg_nodestatusget_v1.node_status.reachable = node_status.
reachable;
1009 res_lib_cfg_nodestatusget_v1.node_status.remote = node_status.
remote;
1010 res_lib_cfg_nodestatusget_v1.node_status.external = node_status.
external;
1011 res_lib_cfg_nodestatusget_v1.node_status.onwire_min = node_status.
onwire_min;
1012 res_lib_cfg_nodestatusget_v1.node_status.onwire_max = node_status.
onwire_max;
1013 res_lib_cfg_nodestatusget_v1.node_status.onwire_ver = node_status.
onwire_ver;
1015 for (i=0; i < KNET_MAX_LINK; i++) {
1016 res_lib_cfg_nodestatusget_v1.node_status.link_status[i].enabled = node_status.
link_status[i].enabled;
1017 res_lib_cfg_nodestatusget_v1.node_status.link_status[i].connected = node_status.
link_status[i].connected;
1018 res_lib_cfg_nodestatusget_v1.node_status.link_status[i].dynconnected = node_status.
link_status[i].dynconnected;
1019 res_lib_cfg_nodestatusget_v1.node_status.link_status[i].mtu = node_status.
link_status[i].mtu;
1020 memcpy(res_lib_cfg_nodestatusget_v1.node_status.link_status[i].src_ipaddr,
1022 memcpy(res_lib_cfg_nodestatusget_v1.node_status.link_status[i].dst_ipaddr,
1030 res_lib_cfg_nodestatusget_ptr = &res_lib_cfg_nodestatusget_version;
1031 res_lib_cfg_nodestatusget_size =
sizeof(res_lib_cfg_nodestatusget_version);
1035 res_lib_cfg_nodestatusget_version.header.size = res_lib_cfg_nodestatusget_size;
1042 res_lib_cfg_nodestatusget_ptr,
1043 res_lib_cfg_nodestatusget_size);
1049 static void message_handler_req_lib_cfg_ringreenable (
1057 res_lib_cfg_ringreenable.header.size =
sizeof (
struct res_lib_cfg_ringreenable);
1060 conn, &res_lib_cfg_ringreenable,
1061 sizeof (
struct res_lib_cfg_ringreenable));
1066 static void message_handler_req_lib_cfg_killnode (
1078 const char *iter_key;
1080 char *status_str = NULL;
1081 int match_nodeid_flag = 0;
1089 if (sscanf(iter_key,
"runtime.members.%u.%s", &nodeid, key_name) != 2) {
1092 if (strcmp(key_name,
"status") != 0) {
1095 if (nodeid != req_lib_cfg_killnode->nodeid) {
1098 match_nodeid_flag = 1;
1104 if (strcmp(status_str,
"joined") != 0) {
1111 if (!match_nodeid_flag) {
1116 req_exec_cfg_killnode.header.size =
1117 sizeof (
struct req_exec_cfg_killnode);
1120 req_exec_cfg_killnode.nodeid = req_lib_cfg_killnode->nodeid;
1121 marshall_to_mar_name_t(&req_exec_cfg_killnode.reason, &req_lib_cfg_killnode->reason);
1123 iovec.iov_base = (
char *)&req_exec_cfg_killnode;
1124 iovec.iov_len =
sizeof (
struct req_exec_cfg_killnode);
1129 res_lib_cfg_killnode.header.size =
sizeof(
struct res_lib_cfg_killnode);
1131 res_lib_cfg_killnode.header.error = error;
1134 sizeof(res_lib_cfg_killnode));
1142 static void message_handler_req_lib_cfg_tryshutdown (
1148 struct qb_list_head *iter;
1160 res_lib_cfg_tryshutdown.header.size =
sizeof(
struct res_lib_cfg_tryshutdown);
1162 res_lib_cfg_tryshutdown.header.error =
CS_OK;
1164 sizeof(res_lib_cfg_tryshutdown));
1176 res_lib_cfg_tryshutdown.header.size =
sizeof(
struct res_lib_cfg_tryshutdown);
1181 sizeof(res_lib_cfg_tryshutdown));
1191 shutdown_flags = req_lib_cfg_tryshutdown->
flags;
1198 shutdown_expected = 0;
1200 qb_list_for_each(iter, &trackers_list) {
1207 shutdown_expected++;
1214 if (shutdown_expected == 0) {
1217 res_lib_cfg_tryshutdown.header.size =
sizeof(
struct res_lib_cfg_tryshutdown);
1219 res_lib_cfg_tryshutdown.header.error =
CS_OK;
1225 sizeof(res_lib_cfg_tryshutdown));
1244 shutdown_timer_fn, &shutdown_timer);
1260 static void message_handler_req_lib_cfg_replytoshutdown (
1270 if (!shutdown_con) {
1275 if (req_lib_cfg_replytoshutdown->
response) {
1283 check_shutdown_status();
1286 res_lib_cfg_replytoshutdown.header.error = status;
1288 res_lib_cfg_replytoshutdown.header.size =
sizeof(res_lib_cfg_replytoshutdown);
1291 sizeof(res_lib_cfg_replytoshutdown));
1296 static void message_handler_req_lib_cfg_get_node_addrs (
void *
conn,
1303 unsigned int num_interfaces = 0;
1304 struct sockaddr_storage *ss;
1310 unsigned int nodeid = req_lib_cfg_get_node_addrs->
nodeid;
1316 if (api->
totem_ifaces_get(nodeid, iface_ids, node_ifs, INTERFACE_MAX, &status, &num_interfaces)) {
1321 res_lib_cfg_get_node_addrs->header.size =
sizeof(
struct res_lib_cfg_get_node_addrs) + (num_interfaces *
TOTEMIP_ADDRLEN);
1323 res_lib_cfg_get_node_addrs->header.error = ret;
1324 if (num_interfaces) {
1325 res_lib_cfg_get_node_addrs->
family = node_ifs[0].
family;
1326 for (i = 0, addr_buf = (
char *)res_lib_cfg_get_node_addrs->
addrs;
1327 i < num_interfaces; i++) {
1328 ss = (
struct sockaddr_storage *)&node_ifs[i].
addr;
1329 if (ss->ss_family) {
1335 res_lib_cfg_get_node_addrs->
num_addrs = live_addrs;
1342 static void message_handler_req_lib_cfg_local_get (
void *
conn,
const void *msg)
1346 res_lib_cfg_local_get.header.size =
sizeof(res_lib_cfg_local_get);
1348 res_lib_cfg_local_get.header.error =
CS_OK;
1352 sizeof(res_lib_cfg_local_get));
1355 static void message_handler_req_lib_cfg_reload_config (
void *
conn,
const void *msg)
1362 req_exec_cfg_reload_config.header.size =
1363 sizeof (
struct req_exec_cfg_reload_config);
1369 iovec.iov_base = (
char *)&req_exec_cfg_reload_config;
1370 iovec.iov_len =
sizeof (
struct req_exec_cfg_reload_config);
1377 static void message_handler_req_lib_cfg_reopen_log_files (
void *
conn,
const void *msg)
1388 res_lib_cfg_reopen_log_files.header.size =
sizeof(res_lib_cfg_reopen_log_files);
1390 res_lib_cfg_reopen_log_files.header.error = res;
1392 &res_lib_cfg_reopen_log_files,
1393 sizeof(res_lib_cfg_reopen_log_files));
void *(* ipc_private_data_get)(void *conn)
The res_lib_cfg_reopen_log_files struct.
struct knet_link_status link_status[KNET_MAX_LINK]
void(* timer_delete)(corosync_timer_handle_t timer_handle)
int(* timer_add_duration)(unsigned long long nanoseconds_in_future, void *data, void(*timer_nf)(void *data), corosync_timer_handle_t *handle)
const char * icmap_iter_next(icmap_iter_t iter, size_t *value_len, icmap_value_types_t *type)
Return next item in iterator iter.
#define CFG_INTERFACE_STATUS_MAX_LEN
struct totem_interface * interfaces
cs_error_t icmap_copy_map(icmap_map_t dst_map, const icmap_map_t src_map)
Copy content of src_map icmap to dst_map icmap.
The res_lib_cfg_replytoshutdown struct.
The res_lib_cfg_testshutdown struct.
The totem_ip_address struct.
The corosync_service_engine struct.
void icmap_iter_finalize(icmap_iter_t iter)
Finalize iterator.
totem_transport_t transport_number
void(* shutdown_request)(void)
cs_error_t logsys_reopen_log_files(void)
uint8_t value[CS_MAX_NAME_LENGTH]
int coroparse_configparse(icmap_map_t config_map, const char **error_string)
#define corosync_fatal_error(err)
int(* ipc_response_send)(void *conn, const void *msg, size_t mlen)
void totemconfig_commit_new_params(struct totem_config *totem_config, icmap_map_t map)
LOGSYS_DECLARE_SUBSYS("CFG")
int totempg_crypto_reconfigure_phase(cfg_message_crypto_reconfig_phase_t phase)
The res_lib_cfg_nodestatusget struct.
int icmap_key_value_eq(const icmap_map_t map1, const char *key_name1, const icmap_map_t map2, const char *key_name2)
Compare value of key with name key_name1 in map1 with key with name key_name2 in map2.
totem_configuration_type
The totem_configuration_type enum.
int(* totem_ifaces_get)(unsigned int nodeid, unsigned int *interface_ids, struct totem_ip_address *interfaces, unsigned int interfaces_size, char ***status, unsigned int *iface_count)
The res_lib_cfg_get_node_addrs struct.
The corosync_lib_handler struct.
void totempg_put_config(struct totem_config *config)
unsigned char addr[TOTEMIP_ADDRLEN]
The req_lib_cfg_get_node_addrs struct.
void totempg_get_config(struct totem_config *config)
The corosync_exec_handler struct.
void icmap_fini_r(const icmap_map_t map)
Finalize local, reentrant icmap.
icmap_map_t icmap_get_global_map(void)
Return global icmap.
enum cfg_info::@8 shutdown_reply
int(* totem_mcast)(const struct iovec *iovec, unsigned int iov_len, unsigned int guarantee)
#define log_printf(level, format, args...)
void(* exec_handler_fn)(const void *msg, unsigned int nodeid)
#define SERVICE_ID_MAKE(a, b)
#define ICMAP_KEYNAME_MAXLEN
Maximum length of key in icmap.
The res_lib_cfg_local_get struct.
The res_lib_cfg_killnode struct.
The req_lib_cfg_tryshutdown struct.
unsigned int(* totem_nodeid_get)(void)
void(* ipc_refcnt_dec)(void *conn)
The res_lib_cfg_ringreenable struct.
cs_error_t icmap_get_string_r(const icmap_map_t map, const char *key_name, char **str)
int totem_volatile_config_validate(struct totem_config *totem_config, icmap_map_t temp_map, const char **error_string)
#define LOGSYS_LEVEL_ERROR
#define TRACE1(format, args...)
#define CFG_INTERFACE_NAME_MAX_LEN
cs_error_t icmap_delete(const char *key_name)
Delete key from map.
cs_error_t
The cs_error_t enum.
#define LOGSYS_LEVEL_DEBUG
The corosync_api_v1 struct.
The req_lib_cfg_replytoshutdown struct.
The res_lib_cfg_tryshutdown struct.
cs_error_t icmap_get_uint32(const char *key_name, uint32_t *u32)
#define DEFAULT_SHUTDOWN_TIMEOUT
#define CFG_MAX_INTERFACES
const char *(* totem_ip_print)(const struct totem_ip_address *addr)
cs_error_t icmap_set_int32(const char *key_name, int32_t value)
void totem_volatile_config_read(struct totem_config *totem_config, icmap_map_t temp_map, const char *deleted_key)
cs_error_t icmap_delete_r(const icmap_map_t map, const char *key_name)
icmap_delete_r
The res_lib_cfg_ringstatusget struct.
int totemconfig_configure_new_params(struct totem_config *totem_config, icmap_map_t map, const char **error_string)
cs_error_t icmap_init_r(icmap_map_t *result)
Initialize additional (local, reentrant) icmap_map.
qb_loop_timer_handle corosync_timer_handle_t
corosync_timer_handle_t
int totem_reread_crypto_config(struct totem_config *totem_config, icmap_map_t map, const char **error_string)
struct totem_interface * orig_interfaces
struct corosync_service_engine cfg_service_engine
The req_lib_cfg_nodestatusget struct.
The res_lib_cfg_reload_config struct.
#define LOGSYS_LEVEL_NOTICE
cs_error_t icmap_set_uint8(const char *key_name, uint8_t value)
void(* lib_handler_fn)(void *conn, const void *msg)
struct corosync_service_engine * cfg_get_service_engine_ver0(void)
int(* ipc_dispatch_send)(void *conn, const void *msg, size_t mlen)
int totempg_nodestatus_get(unsigned int nodeid, struct totem_node_status *node_status)
icmap_iter_t icmap_iter_init_r(const icmap_map_t map, const char *prefix)
icmap_iter_init_r
icmap_iter_t icmap_iter_init(const char *prefix)
Initialize iterator with given prefix.
struct memb_ring_id ring_id
void(* ipc_source_set)(mar_message_source_t *source, void *conn)
The req_lib_cfg_killnode struct.
qb_map_iter_t * icmap_iter_t
Itterator type.
The mar_message_source_t struct.
void(* ipc_refcnt_inc)(void *conn)