pacemaker
2.1.9-49aab99839
Scalable High-Availability cluster resource manager
|
#include <glib.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
#include <crm/common/output_internal.h>
#include <crm/stonith-ng.h>
Go to the source code of this file.
Macros | |
#define | stonith__set_device_flags(device_flags, device_id, flags_to_set) |
#define | stonith__set_call_options(st_call_opts, call_for, flags_to_set) |
#define | stonith__clear_call_options(st_call_opts, call_for, flags_to_clear) |
#define | ST__LEVEL_COUNT 10 |
#define | STONITH_ATTR_ACTION_OP "action" |
#define | STONITH_OP_EXEC "st_execute" |
#define | STONITH_OP_TIMEOUT_UPDATE "st_timeout_update" |
#define | STONITH_OP_QUERY "st_query" |
#define | STONITH_OP_FENCE "st_fence" |
#define | STONITH_OP_RELAY "st_relay" |
#define | STONITH_OP_DEVICE_ADD "st_device_register" |
#define | STONITH_OP_DEVICE_DEL "st_device_remove" |
#define | STONITH_OP_FENCE_HISTORY "st_fence_history" |
#define | STONITH_OP_LEVEL_ADD "st_level_add" |
#define | STONITH_OP_LEVEL_DEL "st_level_remove" |
#define | STONITH_OP_NOTIFY "st_notify" |
#define | STONITH_OP_POKE "poke" |
#define | STONITH_WATCHDOG_AGENT "fence_watchdog" |
#define | STONITH_WATCHDOG_AGENT_INTERNAL "#watchdog" |
#define | STONITH_WATCHDOG_ID "watchdog" |
Typedefs | |
typedef struct stonith_action_s | stonith_action_t |
Enumerations | |
enum | st_device_flags { st_device_supports_none = (0 << 0), st_device_supports_list = (1 << 0), st_device_supports_status = (1 << 1), st_device_supports_reboot = (1 << 2), st_device_supports_parameter_plug = (1 << 3), st_device_supports_parameter_port = (1 << 4), st_device_supports_on = (1 << 5) } |
#define ST__LEVEL_COUNT 10 |
Definition at line 107 of file internal.h.
#define stonith__clear_call_options | ( | st_call_opts, | |
call_for, | |||
flags_to_clear | |||
) |
Definition at line 43 of file internal.h.
#define stonith__set_call_options | ( | st_call_opts, | |
call_for, | |||
flags_to_set | |||
) |
Definition at line 36 of file internal.h.
#define stonith__set_device_flags | ( | device_flags, | |
device_id, | |||
flags_to_set | |||
) |
Definition at line 29 of file internal.h.
#define STONITH_ATTR_ACTION_OP "action" |
Definition at line 110 of file internal.h.
#define STONITH_OP_DEVICE_ADD "st_device_register" |
Definition at line 117 of file internal.h.
#define STONITH_OP_DEVICE_DEL "st_device_remove" |
Definition at line 118 of file internal.h.
#define STONITH_OP_EXEC "st_execute" |
Definition at line 112 of file internal.h.
#define STONITH_OP_FENCE "st_fence" |
Definition at line 115 of file internal.h.
#define STONITH_OP_FENCE_HISTORY "st_fence_history" |
Definition at line 119 of file internal.h.
#define STONITH_OP_LEVEL_ADD "st_level_add" |
Definition at line 120 of file internal.h.
#define STONITH_OP_LEVEL_DEL "st_level_remove" |
Definition at line 121 of file internal.h.
#define STONITH_OP_NOTIFY "st_notify" |
Definition at line 122 of file internal.h.
#define STONITH_OP_POKE "poke" |
Definition at line 123 of file internal.h.
#define STONITH_OP_QUERY "st_query" |
Definition at line 114 of file internal.h.
#define STONITH_OP_RELAY "st_relay" |
Definition at line 116 of file internal.h.
#define STONITH_OP_TIMEOUT_UPDATE "st_timeout_update" |
Definition at line 113 of file internal.h.
#define STONITH_WATCHDOG_AGENT "fence_watchdog" |
Definition at line 126 of file internal.h.
#define STONITH_WATCHDOG_AGENT_INTERNAL "#watchdog" |
Definition at line 128 of file internal.h.
#define STONITH_WATCHDOG_ID "watchdog" |
Definition at line 129 of file internal.h.
typedef struct stonith_action_s stonith_action_t |
Definition at line 51 of file internal.h.
enum st_device_flags |
Enumerator | |
---|---|
st_device_supports_none | |
st_device_supports_list | |
st_device_supports_status | |
st_device_supports_reboot | |
st_device_supports_parameter_plug | |
st_device_supports_parameter_port | |
st_device_supports_on |
Definition at line 19 of file internal.h.
xmlNode* create_device_registration_xml | ( | const char * | id, |
enum stonith_namespace | namespace, | ||
const char * | agent, | ||
const stonith_key_value_t * | params, | ||
const char * | rsc_provides | ||
) |
Definition at line 293 of file st_client.c.
xmlNode* create_level_registration_xml | ( | const char * | node, |
const char * | pattern, | ||
const char * | attr, | ||
const char * | value, | ||
int | level, | ||
const stonith_key_value_t * | device_list | ||
) |
Definition at line 417 of file st_client.c.
stonith_action_t* stonith__action_create | ( | const char * | agent, |
const char * | action_name, | ||
const char * | target, | ||
uint32_t | target_nodeid, | ||
int | timeout_sec, | ||
GHashTable * | device_args, | ||
GHashTable * | port_map, | ||
const char * | host_arg | ||
) |
Definition at line 263 of file st_actions.c.
pcmk__action_result_t* stonith__action_result | ( | stonith_action_t * | action | ) |
Definition at line 240 of file st_actions.c.
void stonith__destroy_action | ( | stonith_action_t * | action | ) |
Definition at line 215 of file st_actions.c.
void stonith__device_parameter_flags | ( | uint32_t * | device_flags, |
const char * | device_name, | ||
xmlNode * | metadata | ||
) |
Definition at line 2405 of file st_client.c.
char* stonith__event_description | ( | const stonith_event_t * | event | ) |
Definition at line 2650 of file st_client.c.
int stonith__event_execution_status | ( | const stonith_event_t * | event | ) |
Definition at line 2608 of file st_client.c.
const char* stonith__event_exit_reason | ( | const stonith_event_t * | event | ) |
Definition at line 2628 of file st_client.c.
int stonith__event_exit_status | ( | const stonith_event_t * | event | ) |
Definition at line 2588 of file st_client.c.
bool stonith__event_state_eq | ( | stonith_history_t * | history, |
void * | user_data | ||
) |
Definition at line 2393 of file st_client.c.
bool stonith__event_state_neq | ( | stonith_history_t * | history, |
void * | user_data | ||
) |
Definition at line 2399 of file st_client.c.
bool stonith__event_state_pending | ( | stonith_history_t * | history, |
void * | user_data | ||
) |
Definition at line 2387 of file st_client.c.
int stonith__execute_async | ( | stonith_action_t * | action, |
void * | userdata, | ||
void(*)(int pid, const pcmk__action_result_t *result, void *user_data) | done, | ||
void(*)(int pid, void *user_data) | fork_cb | ||
) |
Definition at line 667 of file st_actions.c.
int stonith__execution_status | ( | const stonith_callback_data_t * | data | ) |
Definition at line 2554 of file st_client.c.
const char* stonith__exit_reason | ( | const stonith_callback_data_t * | data | ) |
Definition at line 2571 of file st_client.c.
int stonith__exit_status | ( | const stonith_callback_data_t * | data | ) |
Definition at line 2537 of file st_client.c.
xmlNode* stonith__find_xe_with_result | ( | xmlNode * | xml | ) |
Definition at line 469 of file st_actions.c.
stonith_history_t* stonith__first_matching_event | ( | stonith_history_t * | history, |
bool(*)(stonith_history_t *, void *) | matching_fn, | ||
void * | user_data | ||
) |
Definition at line 2373 of file st_client.c.
gchar* stonith__history_description | ( | const stonith_history_t * | event, |
bool | full_history, | ||
const char * | later_succeeded, | ||
uint32_t | show_opts | ||
) |
Definition at line 89 of file st_output.c.
const char* stonith__later_succeeded | ( | const stonith_history_t * | event, |
const stonith_history_t * | top_history | ||
) |
Definition at line 2266 of file st_client.c.
int stonith__legacy2status | ( | int | rc | ) |
Definition at line 400 of file st_actions.c.
int stonith__metadata_async | ( | const char * | agent, |
int | timeout_sec, | ||
void(*)(int pid, const pcmk__action_result_t *result, void *user_data) | callback, | ||
void * | user_data | ||
) |
Definition at line 2466 of file st_client.c.
GList* stonith__parse_targets | ( | const char * | hosts | ) |
Definition at line 2222 of file st_client.c.
void stonith__register_messages | ( | pcmk__output_t * | out | ) |
Definition at line 604 of file st_output.c.
int stonith__result2rc | ( | const pcmk__action_result_t * | result | ) |
Definition at line 326 of file st_actions.c.
stonith_history_t* stonith__sort_history | ( | stonith_history_t * | history | ) |
Definition at line 2306 of file st_client.c.
gboolean stonith__watchdog_fencing_enabled_for_node | ( | const char * | node | ) |
Definition at line 231 of file st_client.c.
gboolean stonith__watchdog_fencing_enabled_for_node_api | ( | stonith_t * | st, |
const char * | node | ||
) |
Definition at line 172 of file st_client.c.
void stonith__xe_get_result | ( | const xmlNode * | xml, |
pcmk__action_result_t * | result | ||
) |
Definition at line 490 of file st_actions.c.
void stonith__xe_set_result | ( | xmlNode * | xml, |
const pcmk__action_result_t * | result | ||
) |
Definition at line 430 of file st_actions.c.