#include <crm_internal.h>
#include <unistd.h>
#include <limits.h>
#include <stdlib.h>
#include <stdint.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 <crm/common/xml_internal.h>
 
Go to the source code of this file.
 | 
| 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_t *  | cib_file_new (const char *cib_location) | 
|   | 
◆ cib_clear_file_flags
      
        
          | #define cib_clear_file_flags | 
          ( | 
            | 
          cibfile,  | 
        
        
           | 
           | 
            | 
          flags_to_clear  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:do {              \
        (cibfile)->
flags = pcmk__clear_flags_as(__func__, __LINE__,     \
                                                cibfile->filename,      \
                                                (cibfile)->flags,       \
                                                (flags_to_clear),       \
                                                #flags_to_clear);       \
    } while (0)
 
Definition at line 51 of file cib_file.c.
 
 
◆ CIB_LIVE_NAME
◆ CIB_SERIES
◆ CIB_SERIES_BZIP
◆ CIB_SERIES_MAX
      
        
          | #define CIB_SERIES_MAX   100 | 
        
      
 
 
◆ cib_set_file_flags
      
        
          | #define cib_set_file_flags | 
          ( | 
            | 
          cibfile,  | 
        
        
           | 
           | 
            | 
          flags_to_set  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
Value:do {                  \
        (cibfile)->
flags = pcmk__set_flags_as(__func__, __LINE__,       \
                                              cibfile->filename,        \
                                              (cibfile)->flags,         \
                                              (flags_to_set),           \
                                              #flags_to_set);           \
    } while (0)
 
Definition at line 42 of file cib_file.c.
 
 
◆ cib_file_opaque_t
◆ cib_file_flags
| Enumerator | 
|---|
| cib_file_flag_dirty  |  | 
| cib_file_flag_live  |  | 
Definition at line 32 of file cib_file.c.
 
 
◆ cib_file_free()
      
        
          | int cib_file_free  | 
          ( | 
          cib_t *  | 
          cib | ) | 
           | 
        
      
 
 
◆ cib_file_new()
      
        
          | cib_t* cib_file_new  | 
          ( | 
          const char *  | 
          cib_location | ) | 
           | 
        
      
 
 
◆ cib_file_perform_op()
      
        
          | 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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ cib_file_perform_op_delegate()
      
        
          | 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  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ cib_file_read_and_verify()
      
        
          | int cib_file_read_and_verify  | 
          ( | 
          const char *  | 
          filename,  | 
        
        
           | 
           | 
          const char *  | 
          sigfile,  | 
        
        
           | 
           | 
          xmlNode **  | 
          root  | 
        
        
           | 
          ) | 
           |  | 
        
      
 
 
◆ cib_file_signoff()
      
        
          | int cib_file_signoff  | 
          ( | 
          cib_t *  | 
          cib | ) | 
           | 
        
      
 
 
◆ cib_file_signon()
◆ cib_file_write_with_digest()
      
        
          | int cib_file_write_with_digest  | 
          ( | 
          xmlNode *  | 
          cib_root,  | 
        
        
           | 
           | 
          const char *  | 
          cib_dirname,  | 
        
        
           | 
           | 
          const char *  | 
          cib_filename  | 
        
        
           | 
          ) | 
           |  |