![]() |
pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
|
Fencing aka. STONITH. More...
#include <dlfcn.h>#include <errno.h>#include <stdbool.h>#include <stdint.h>#include <time.h>

Go to the source code of this file.
Data Structures | |
| struct | stonith_key_value_s |
| Key-value pair list node. More... | |
| struct | stonith_history_s |
| Fencing history entry. More... | |
| struct | stonith_event_s |
| Fencing event. More... | |
| struct | stonith_callback_data_s |
| Data for an asynchronous fencing request callback. More... | |
| struct | stonith_api_operations_s |
| Fencer API operations. More... | |
| struct | stonith_s |
| Fencer API connection object. More... | |
Macros | |
| #define | STONITH_LIBRARY "libstonithd.so.56" |
Typedefs | |
| typedef struct stonith_key_value_s | stonith_key_value_t |
| Key-value pair list node. | |
| typedef struct stonith_history_s | stonith_history_t |
| Fencing history entry. | |
| typedef struct stonith_s | stonith_t |
| typedef struct stonith_event_s | stonith_event_t |
| Fencing event. | |
| typedef struct stonith_callback_data_s | stonith_callback_data_t |
| Data for an asynchronous fencing request callback. | |
| typedef struct stonith_api_operations_s | stonith_api_operations_t |
| Fencer API operations. | |
| typedef int(* | st_api_kick_fn) (int nodeid, const char *uname, int timeout, bool off) |
| typedef time_t(* | st_api_time_fn) (int nodeid, const char *uname, bool in_progress) |
Enumerations | |
| enum | stonith_state { stonith_connected_command , stonith_connected_query , stonith_disconnected } |
| Fencer API connection state. More... | |
| enum | stonith_call_options { st_opt_none = 0 , st_opt_verbose = (1 << 0) , st_opt_allow_self_fencing = (1 << 1) , st_opt_allow_suicide = st_opt_allow_self_fencing , st_opt_manual_ack = (1 << 3) , st_opt_discard_reply = (1 << 4) , st_opt_topology = (1 << 6) , st_opt_scope_local = (1 << 8) , st_opt_cs_nodeid = (1 << 9) , st_opt_sync_call = (1 << 12) , st_opt_timeout_updates = (1 << 13) , st_opt_report_only_success = (1 << 14) , st_opt_cleanup = (1 << 19) , st_opt_broadcast = (1 << 20) } |
| Flags that can be set in call options for API requests. More... | |
| enum | op_state { st_query , st_exec , st_done , st_duplicate , st_failed } |
| Fencing operation states. More... | |
| enum | stonith_namespace { st_namespace_invalid , st_namespace_any , st_namespace_internal , st_namespace_rhcs , st_namespace_lha } |
| Supported fence agent interface standards. More... | |
Functions | |
| int | stonith_api_kick (uint32_t nodeid, const char *uname, int timeout, bool off) |
| time_t | stonith_api_time (uint32_t nodeid, const char *uname, bool in_progress) |
| stonith_t * | stonith_api_new (void) |
| void | stonith_api_delete (stonith_t *stonith) |
| void | stonith_dump_pending_callbacks (stonith_t *stonith) |
| bool | stonith_dispatch (stonith_t *stonith_api) |
| stonith_key_value_t * | stonith_key_value_add (stonith_key_value_t *kvp, const char *key, const char *value) |
| void | stonith_key_value_freeall (stonith_key_value_t *head, int keys, int values) |
| void | stonith_history_free (stonith_history_t *head) |
| int | stonith_api_connect_retry (stonith_t *st, const char *name, int max_attempts) |
| const char * | stonith_op_state_str (enum op_state state) |
| bool | stonith_agent_exists (const char *agent, int timeout) |
| const char * | stonith_action_str (const char *action) |
| enum stonith_namespace | stonith_text2namespace (const char *namespace_s) |
| const char * | stonith_namespace2text (enum stonith_namespace st_namespace) |
| enum stonith_namespace | stonith_get_namespace (const char *agent, const char *namespace_s) |
Fencing aka. STONITH.
Definition in file stonith-ng.h.
| #define STONITH_LIBRARY "libstonithd.so.56" |
Definition at line 714 of file stonith-ng.h.
Definition at line 717 of file stonith-ng.h.
| typedef time_t(* st_api_time_fn) (int nodeid, const char *uname, bool in_progress) |
Definition at line 718 of file stonith-ng.h.
| typedef struct stonith_api_operations_s stonith_api_operations_t |
Fencer API operations.
| typedef struct stonith_callback_data_s stonith_callback_data_t |
Data for an asynchronous fencing request callback.
| typedef struct stonith_event_s stonith_event_t |
Fencing event.
| typedef struct stonith_history_s stonith_history_t |
Fencing history entry.
| typedef struct stonith_key_value_s stonith_key_value_t |
Key-value pair list node.
Definition at line 187 of file stonith-ng.h.
| enum op_state |
Fencing operation states.
| Enumerator | |
|---|---|
| st_query | |
| st_exec |
|
| st_done |
|
| st_duplicate |
|
| st_failed |
|
Definition at line 125 of file stonith-ng.h.
| enum stonith_call_options |
Flags that can be set in call options for API requests.
| Enumerator | |
|---|---|
| st_opt_none |
|
| st_opt_verbose |
|
| st_opt_allow_self_fencing |
|
| st_opt_allow_suicide |
|
| st_opt_manual_ack |
|
| st_opt_discard_reply |
|
| st_opt_topology |
|
| st_opt_scope_local |
|
| st_opt_cs_nodeid |
|
| st_opt_sync_call |
|
| st_opt_timeout_updates |
|
| st_opt_report_only_success |
|
| st_opt_cleanup |
|
| st_opt_broadcast |
|
Definition at line 56 of file stonith-ng.h.
| enum stonith_namespace |
Supported fence agent interface standards.
| Enumerator | |
|---|---|
| st_namespace_invalid | |
| st_namespace_any |
|
| st_namespace_internal |
|
| st_namespace_rhcs |
|
| st_namespace_lha |
|
Definition at line 138 of file stonith-ng.h.
| enum stonith_state |
Fencer API connection state.
| Enumerator | |
|---|---|
| stonith_connected_command | |
| stonith_connected_query | |
| stonith_disconnected | |
Definition at line 44 of file stonith-ng.h.
| const char * stonith_action_str | ( | const char * | action | ) |
Definition at line 2909 of file st_client.c.
| bool stonith_agent_exists | ( | const char * | agent, |
| int | timeout ) |
Definition at line 2901 of file st_client.c.
| int stonith_api_connect_retry | ( | stonith_t * | st, |
| const char * | name, | ||
| int | max_attempts ) |
Definition at line 2885 of file st_client.c.
| void stonith_api_delete | ( | stonith_t * | stonith | ) |
Definition at line 2819 of file st_client.c.
| int stonith_api_kick | ( | uint32_t | nodeid, |
| const char * | uname, | ||
| int | timeout, | ||
| bool | off ) |
Definition at line 2053 of file st_client.c.
| stonith_t * stonith_api_new | ( | void | ) |
Definition at line 2811 of file st_client.c.
| time_t stonith_api_time | ( | uint32_t | nodeid, |
| const char * | uname, | ||
| bool | in_progress ) |
Definition at line 2095 of file st_client.c.
| bool stonith_dispatch | ( | stonith_t * | stonith_api | ) |
Definition at line 2850 of file st_client.c.
| void stonith_dump_pending_callbacks | ( | stonith_t * | stonith | ) |
Definition at line 2836 of file st_client.c.
| enum stonith_namespace stonith_get_namespace | ( | const char * | agent, |
| const char * | namespace_s ) |
Definition at line 2942 of file st_client.c.
| void stonith_history_free | ( | stonith_history_t * | head | ) |
Definition at line 2876 of file st_client.c.
| stonith_key_value_t * stonith_key_value_add | ( | stonith_key_value_t * | kvp, |
| const char * | key, | ||
| const char * | value ) |
Definition at line 2859 of file st_client.c.
| void stonith_key_value_freeall | ( | stonith_key_value_t * | head, |
| int | keys, | ||
| int | values ) |
Definition at line 2868 of file st_client.c.
| const char * stonith_namespace2text | ( | enum stonith_namespace | st_namespace | ) |
Definition at line 2933 of file st_client.c.
| const char * stonith_op_state_str | ( | enum op_state | state | ) |
Definition at line 2893 of file st_client.c.
| enum stonith_namespace stonith_text2namespace | ( | const char * | namespace_s | ) |
Definition at line 2925 of file st_client.c.