pacemaker  2.1.4-dc6eb4362
Scalable High-Availability cluster resource manager
Macros | Functions
st_actions.c File Reference
#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"
Include dependency graph for st_actions.c:

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_tstonith__action_result (stonith_action_t *action)
 
stonith_action_tstonith_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)
 

Macro Definition Documentation

◆ FAILURE_MAX_RETRIES

#define FAILURE_MAX_RETRIES   2

Definition at line 234 of file st_actions.c.

Function Documentation

◆ stonith__action_result()

pcmk__action_result_t* stonith__action_result ( stonith_action_t action)

Definition at line 229 of file st_actions.c.

◆ stonith__destroy_action()

void stonith__destroy_action ( stonith_action_t action)

Definition at line 203 of file st_actions.c.

◆ stonith__execute()

int stonith__execute ( stonith_action_t action)

Definition at line 673 of file st_actions.c.

◆ stonith__find_xe_with_result()

xmlNode* stonith__find_xe_with_result ( xmlNode *  xml)

Definition at line 448 of file st_actions.c.

◆ stonith__legacy2status()

int stonith__legacy2status ( int  rc)

Definition at line 379 of file st_actions.c.

◆ stonith__result2rc()

int stonith__result2rc ( const pcmk__action_result_t result)

Definition at line 305 of file st_actions.c.

◆ stonith__xe_get_result()

void stonith__xe_get_result ( xmlNode *  xml,
pcmk__action_result_t result 
)

Definition at line 469 of file st_actions.c.

◆ stonith__xe_set_result()

void stonith__xe_set_result ( xmlNode *  xml,
const pcmk__action_result_t result 
)

Definition at line 409 of file st_actions.c.

◆ stonith_action_create()

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.

◆ stonith_action_execute_async()

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.