pacemaker  2.1.3-ea053b43a
Scalable High-Availability cluster resource manager
Macros | Functions
st_rhcs.c File Reference
#include <crm_internal.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <glib.h>
#include <dirent.h>
#include <crm/crm.h>
#include <crm/stonith-ng.h>
#include <crm/fencing/internal.h>
#include "fencing_private.h"
Include dependency graph for st_rhcs.c:

Go to the source code of this file.

Macros

#define RH_STONITH_PREFIX   "fence_"
 

Functions

int stonith__list_rhcs_agents (stonith_key_value_t **devices)
 
int stonith__rhcs_metadata (const char *agent, int timeout, char **output)
 Execute RHCS-compatible agent's meta-data action. More...
 
bool stonith__agent_is_rhcs (const char *agent)
 
int stonith__rhcs_validate (stonith_t *st, int call_options, const char *target, const char *agent, GHashTable *params, const char *host_arg, int timeout, char **output, char **error_output)
 

Macro Definition Documentation

◆ RH_STONITH_PREFIX

#define RH_STONITH_PREFIX   "fence_"

Definition at line 24 of file st_rhcs.c.

Function Documentation

◆ stonith__agent_is_rhcs()

bool stonith__agent_is_rhcs ( const char *  agent)

Definition at line 245 of file st_rhcs.c.

◆ stonith__list_rhcs_agents()

int stonith__list_rhcs_agents ( stonith_key_value_t **  devices)

Definition at line 35 of file st_rhcs.c.

◆ stonith__rhcs_metadata()

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

Execute RHCS-compatible agent's meta-data action.

Parameters
[in]agentAgent to execute
[in]timeoutAction timeout
[out]outputWhere to store action output (or NULL to ignore)
Todo:
timeout is currently ignored; shouldn't we use it?

Definition at line 219 of file st_rhcs.c.

◆ stonith__rhcs_validate()

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

Definition at line 256 of file st_rhcs.c.