pacemaker 3.0.1-16e74fc4da
Scalable High-Availability cluster resource manager
Loading...
Searching...
No Matches
st_rhcs.c File Reference
#include <crm_internal.h>
#include <dirent.h>
#include <stdio.h>
#include <string.h>
#include <sys/stat.h>
#include <glib.h>
#include <libxml/xpath.h>
#include <crm/crm.h>
#include <crm/common/xml.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.

Functions

int stonith__list_rhcs_agents (stonith_key_value_t **devices)
 
int stonith__rhcs_metadata (const char *agent, int timeout_sec, char **output)
 Retrieve metadata for RHCS-compatible fence agent.
 
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)
 

Function Documentation

◆ stonith__agent_is_rhcs()

bool stonith__agent_is_rhcs ( const char * agent)

Definition at line 257 of file st_rhcs.c.

◆ stonith__list_rhcs_agents()

int stonith__list_rhcs_agents ( stonith_key_value_t ** devices)

Definition at line 69 of file st_rhcs.c.

◆ stonith__rhcs_metadata()

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

Retrieve metadata for RHCS-compatible fence agent.

Parameters
[in]agentAgent to execute
[in]timeout_secAction timeout
[out]outputWhere to store action output (or NULL to ignore)

Definition at line 225 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 268 of file st_rhcs.c.