pacemaker  1.1.18-7fdfbbe
Scalable High-Availability cluster resource manager
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Typedefs | Functions
cib_file.c File Reference
#include <crm_internal.h>
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
#include <pwd.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <glib.h>
#include <crm/crm.h>
#include <crm/cib/internal.h>
#include <crm/msg_xml.h>
#include <crm/common/ipc.h>
#include <crm/common/xml.h>
Include dependency graph for cib_file.c:

Go to the source code of this file.

Macros

#define cib_flag_dirty   0x00001
 
#define cib_flag_live   0x00002
 
#define CIB_SERIES   "cib"
 
#define CIB_SERIES_MAX   100
 
#define CIB_SERIES_BZIP
 
#define CIB_LIVE_NAME   CIB_SERIES ".xml"
 

Typedefs

typedef struct cib_file_opaque_s cib_file_opaque_t
 

Functions

int cib_file_perform_op (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options)
 
int cib_file_perform_op_delegate (cib_t *cib, const char *op, const char *host, const char *section, xmlNode *data, xmlNode **output_data, int call_options, const char *user_name)
 
int cib_file_signon (cib_t *cib, const char *name, enum cib_conn_type type)
 
int cib_file_signoff (cib_t *cib)
 
int cib_file_free (cib_t *cib)
 
int cib_file_read_and_verify (const char *filename, const char *sigfile, xmlNode **root)
 
int cib_file_write_with_digest (xmlNode *cib_root, const char *cib_dirname, const char *cib_filename)
 
cib_tcib_file_new (const char *cib_location)
 

Macro Definition Documentation

#define cib_flag_dirty   0x00001

Definition at line 38 of file cib_file.c.

#define cib_flag_live   0x00002

Definition at line 39 of file cib_file.c.

#define CIB_LIVE_NAME   CIB_SERIES ".xml"

Definition at line 181 of file cib_file.c.

#define CIB_SERIES   "cib"

Definition at line 175 of file cib_file.c.

#define CIB_SERIES_BZIP
Value:
FALSE /* Must be false because archived copies are
created with hard links
*/

Definition at line 177 of file cib_file.c.

#define CIB_SERIES_MAX   100

Definition at line 176 of file cib_file.c.

Typedef Documentation

typedef struct cib_file_opaque_s cib_file_opaque_t

Function Documentation

int cib_file_free ( cib_t cib)

Definition at line 721 of file cib_file.c.

cib_t* cib_file_new ( const char *  cib_location)

Definition at line 477 of file cib_file.c.

int cib_file_perform_op ( cib_t cib,
const char *  op,
const char *  host,
const char *  section,
xmlNode *  data,
xmlNode **  output_data,
int  call_options 
)

Definition at line 765 of file cib_file.c.

int cib_file_perform_op_delegate ( cib_t cib,
const char *  op,
const char *  host,
const char *  section,
xmlNode *  data,
xmlNode **  output_data,
int  call_options,
const char *  user_name 
)

Definition at line 773 of file cib_file.c.

int cib_file_read_and_verify ( const char *  filename,
const char *  sigfile,
xmlNode **  root 
)

Definition at line 125 of file cib_file.c.

int cib_file_signoff ( cib_t cib)

Definition at line 679 of file cib_file.c.

int cib_file_signon ( cib_t cib,
const char *  name,
enum cib_conn_type  type 
)

Definition at line 564 of file cib_file.c.

int cib_file_write_with_digest ( xmlNode *  cib_root,
const char *  cib_dirname,
const char *  cib_filename 
)

Definition at line 346 of file cib_file.c.