pacemaker
2.1.7-0f7f88312f
Scalable High-Availability cluster resource manager
|
#include <crm_internal.h>
#include <stdbool.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_name, const char *target, uint32_t target_nodeid, int timeout_sec, 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 (const xmlNode *xml, pcmk__action_result_t *result) |
int | stonith__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 247 of file st_actions.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 265 of file st_actions.c.
pcmk__action_result_t* stonith__action_result | ( | stonith_action_t * | action | ) |
Definition at line 242 of file st_actions.c.
void stonith__destroy_action | ( | stonith_action_t * | action | ) |
Definition at line 217 of file st_actions.c.
int stonith__execute | ( | stonith_action_t * | action | ) |
Definition at line 698 of file st_actions.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 671 of file st_actions.c.
xmlNode* stonith__find_xe_with_result | ( | xmlNode * | xml | ) |
Definition at line 473 of file st_actions.c.
int stonith__legacy2status | ( | int | rc | ) |
Definition at line 404 of file st_actions.c.
int stonith__result2rc | ( | const pcmk__action_result_t * | result | ) |
Definition at line 330 of file st_actions.c.
void stonith__xe_get_result | ( | const xmlNode * | xml, |
pcmk__action_result_t * | result | ||
) |
Definition at line 494 of file st_actions.c.
void stonith__xe_set_result | ( | xmlNode * | xml, |
const pcmk__action_result_t * | result | ||
) |
Definition at line 434 of file st_actions.c.