pacemaker  2.1.9-49aab99839
Scalable High-Availability cluster resource manager
Functions
pcmk_verify.c File Reference
#include <crm_internal.h>
#include <crm/cib/internal.h>
#include <crm/common/output.h>
#include <crm/common/results.h>
#include <crm/common/scheduler.h>
#include <pacemaker-internal.h>
#include <pacemaker.h>
#include <stdint.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include "libpacemaker_private.h"
Include dependency graph for pcmk_verify.c:

Go to the source code of this file.

Functions

int pcmk__parse_cib (pcmk__output_t *out, const char *cib_source, xmlNodePtr *cib_object)
 
int pcmk__verify (pcmk_scheduler_t *scheduler, pcmk__output_t *out, xmlNode **cib_object)
 
int pcmk_verify (xmlNodePtr *xml, const char *cib_source)
 Verify that a CIB is error-free or output errors and warnings. More...
 

Function Documentation

◆ pcmk__parse_cib()

int pcmk__parse_cib ( pcmk__output_t out,
const char *  cib_source,
xmlNodePtr *  cib_object 
)

Definition at line 26 of file pcmk_verify.c.

◆ pcmk__verify()

int pcmk__verify ( pcmk_scheduler_t scheduler,
pcmk__output_t out,
xmlNode **  cib_object 
)

Definition at line 50 of file pcmk_verify.c.

◆ pcmk_verify()

int pcmk_verify ( xmlNodePtr *  xml,
const char *  cib_source 
)

Verify that a CIB is error-free or output errors and warnings.

This high-level function essentially implements crm_verify(8). It operates on an input CIB file, which can be inputted through one of several ways. It writes out XML-formatted output.

Parameters
[in,out]xmlThe destination for the result, as an XML tree
[in]cib_sourceSource of the CIB: NULL -> use live cib, "-" -> stdin "<..." -> xml str, otherwise -> xml file name
Returns
Standard Pacemaker return code

Definition at line 119 of file pcmk_verify.c.