pacemaker  2.0.5-ba59be712
Scalable High-Availability cluster resource manager
Macros | Functions
st_lha.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <glib.h>
#include <dlfcn.h>
#include <crm/crm.h>
#include <crm/stonith-ng.h>
#include <crm/fencing/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/xml.h>
#include <stonith/stonith.h>
#include <pils/plugin.h>
Include dependency graph for st_lha.c:

Go to the source code of this file.

Macros

#define LHA_STONITH_LIBRARY   "libstonith.so.1"
 

Functions

bool stonith__agent_is_lha (const char *agent)
 Determine namespace of a fence agent. More...
 
int stonith__list_lha_agents (stonith_key_value_t **devices)
 
int stonith__lha_metadata (const char *agent, int timeout, char **output)
 
const char * i_hate_pils (int rc)
 
int stonith__lha_validate (stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, int timeout, char **output, char **error_output)
 

Macro Definition Documentation

◆ LHA_STONITH_LIBRARY

#define LHA_STONITH_LIBRARY   "libstonith.so.1"

Definition at line 25 of file st_lha.c.

Function Documentation

◆ i_hate_pils()

const char * i_hate_pils ( int  rc)

Definition at line 268 of file st_lha.c.

◆ stonith__agent_is_lha()

bool stonith__agent_is_lha ( const char *  agent)

Determine namespace of a fence agent.

Parameters
[in]agentFence agent type
[in]namespace_sName of agent namespace as string, if known
Returns
Namespace of specified agent, as enum value

Definition at line 79 of file st_lha.c.

◆ stonith__lha_metadata()

int stonith__lha_metadata ( const char *  agent,
int  timeout,
char **  output 
)

Definition at line 175 of file st_lha.c.

◆ stonith__lha_validate()

int stonith__lha_validate ( stonith_t st,
int  call_options,
const char *  target,
const char *  agent,
GHashTable *  params,
int  timeout,
char **  output,
char **  error_output 
)

Definition at line 274 of file st_lha.c.

◆ stonith__list_lha_agents()

int stonith__list_lha_agents ( stonith_key_value_t **  devices)

Definition at line 106 of file st_lha.c.