pacemaker
1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
|
Fencing aka. STONITH. More...
#include <dlfcn.h>
#include <errno.h>
#include <stdbool.h>
#include <libxml/tree.h>
Go to the source code of this file.
Data Structures | |
struct | stonith_key_value_s |
struct | stonith_history_s |
struct | stonith_event_s |
struct | stonith_callback_data_s |
struct | stonith_api_operations_s |
struct | stonith_s |
Macros | |
#define | T_STONITH_NOTIFY_DISCONNECT "st_notify_disconnect" |
#define | T_STONITH_NOTIFY_FENCE "st_notify_fence" |
#define | STONITH_LIBRARY "libstonithd.so.2" |
Typedefs | |
typedef struct stonith_key_value_s | stonith_key_value_t |
typedef struct stonith_history_s | stonith_history_t |
typedef struct stonith_s | stonith_t |
typedef struct stonith_event_s | stonith_event_t |
typedef struct stonith_callback_data_s | stonith_callback_data_t |
typedef struct stonith_api_operations_s | stonith_api_operations_t |
Enumerations | |
enum | stonith_state { stonith_connected_command, stonith_connected_query, stonith_disconnected } |
enum | stonith_call_options { st_opt_none = 0x00000000, st_opt_verbose = 0x00000001, st_opt_allow_suicide = 0x00000002, st_opt_manual_ack = 0x00000008, st_opt_discard_reply = 0x00000010, st_opt_topology = 0x00000040, st_opt_scope_local = 0x00000100, st_opt_cs_nodeid = 0x00000200, st_opt_sync_call = 0x00001000, st_opt_timeout_updates = 0x00002000, st_opt_report_only_success = 0x00004000 } |
enum | op_state { st_query, st_exec, st_done, st_duplicate, st_failed } |
Functions | |
stonith_t * | stonith_api_new (void) |
void | stonith_api_delete (stonith_t *st) |
void | stonith_dump_pending_callbacks (stonith_t *st) |
const char * | get_stonith_provider (const char *agent, const char *provider) |
bool | stonith_dispatch (stonith_t *st) |
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 *kvp, int keys, int values) |
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) |
Fencing aka. STONITH.
Definition in file stonith-ng.h.
#define STONITH_LIBRARY "libstonithd.so.2" |
Definition at line 436 of file stonith-ng.h.
#define T_STONITH_NOTIFY_DISCONNECT "st_notify_disconnect" |
Definition at line 35 of file stonith-ng.h.
#define T_STONITH_NOTIFY_FENCE "st_notify_fence" |
Definition at line 36 of file stonith-ng.h.
typedef struct stonith_api_operations_s stonith_api_operations_t |
typedef struct stonith_callback_data_s stonith_callback_data_t |
typedef struct stonith_event_s stonith_event_t |
typedef struct stonith_history_s stonith_history_t |
typedef struct stonith_key_value_s stonith_key_value_t |
Definition at line 92 of file stonith-ng.h.
enum op_state |
Order matters here, do not change values
Enumerator | |
---|---|
st_query | |
st_exec | |
st_done | |
st_duplicate | |
st_failed |
Definition at line 65 of file stonith-ng.h.
enum stonith_call_options |
Definition at line 45 of file stonith-ng.h.
enum stonith_state |
Enumerator | |
---|---|
stonith_connected_command | |
stonith_connected_query | |
stonith_disconnected |
Definition at line 39 of file stonith-ng.h.
const char* get_stonith_provider | ( | const char * | agent, |
const char * | provider | ||
) |
Definition at line 1599 of file st_client.c.
void stonith_api_delete | ( | stonith_t * | st | ) |
Definition at line 2443 of file st_client.c.
int stonith_api_kick | ( | uint32_t | nodeid, |
const char * | uname, | ||
int | timeout, | ||
bool | off | ||
) |
Definition at line 2552 of file st_client.c.
stonith_t* stonith_api_new | ( | void | ) |
Definition at line 2452 of file st_client.c.
time_t stonith_api_time | ( | uint32_t | nodeid, |
const char * | uname, | ||
bool | in_progress | ||
) |
Definition at line 2601 of file st_client.c.
bool stonith_dispatch | ( | stonith_t * | st | ) |
Definition at line 2340 of file st_client.c.
void stonith_dump_pending_callbacks | ( | stonith_t * | st | ) |
Definition at line 2060 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 2504 of file st_client.c.
void stonith_key_value_freeall | ( | stonith_key_value_t * | kvp, |
int | keys, | ||
int | values | ||
) |
Definition at line 2531 of file st_client.c.