pacemaker
2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <libgen.h>
#include <inttypes.h>
#include <sys/types.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/stonith-ng.h>
#include <crm/fencing/internal.h>
#include <crm/msg_xml.h>
#include <crm/services_internal.h>
#include "fencing_private.h"
Go to the source code of this file.
Macros | |
#define | FAILURE_MAX_RETRIES 2 |
Functions | |
void | stonith__destroy_action (stonith_action_t *action) |
pcmk__action_result_t * | stonith__action_result (stonith_action_t *action) |
stonith_action_t * | stonith_action_create (const char *agent, const char *_action, const char *victim, uint32_t victim_nodeid, int timeout, GHashTable *device_args, GHashTable *port_map, const char *host_arg) |
int | stonith__result2rc (const pcmk__action_result_t *result) |
int | stonith__legacy2status (int rc) |
void | stonith__xe_set_result (xmlNode *xml, const pcmk__action_result_t *result) |
xmlNode * | stonith__find_xe_with_result (xmlNode *xml) |
void | stonith__xe_get_result (xmlNode *xml, pcmk__action_result_t *result) |
int | stonith_action_execute_async (stonith_action_t *action, void *userdata, void(*done)(int pid, const pcmk__action_result_t *result, void *user_data), void(*fork_cb)(int pid, void *user_data)) |
int | stonith__execute (stonith_action_t *action) |
#define FAILURE_MAX_RETRIES 2 |
Definition at line 234 of file st_actions.c.
pcmk__action_result_t* stonith__action_result | ( | stonith_action_t * | action | ) |
Definition at line 229 of file st_actions.c.
void stonith__destroy_action | ( | stonith_action_t * | action | ) |
Definition at line 203 of file st_actions.c.
int stonith__execute | ( | stonith_action_t * | action | ) |
Definition at line 673 of file st_actions.c.
xmlNode* stonith__find_xe_with_result | ( | xmlNode * | xml | ) |
Definition at line 448 of file st_actions.c.
int stonith__legacy2status | ( | int | rc | ) |
Definition at line 379 of file st_actions.c.
int stonith__result2rc | ( | const pcmk__action_result_t * | result | ) |
Definition at line 305 of file st_actions.c.
void stonith__xe_get_result | ( | xmlNode * | xml, |
pcmk__action_result_t * | result | ||
) |
Definition at line 469 of file st_actions.c.
void stonith__xe_set_result | ( | xmlNode * | xml, |
const pcmk__action_result_t * | result | ||
) |
Definition at line 409 of file st_actions.c.
stonith_action_t* stonith_action_create | ( | const char * | agent, |
const char * | _action, | ||
const char * | victim, | ||
uint32_t | victim_nodeid, | ||
int | timeout, | ||
GHashTable * | device_args, | ||
GHashTable * | port_map, | ||
const char * | host_arg | ||
) |
Definition at line 236 of file st_actions.c.
int stonith_action_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 645 of file st_actions.c.