Motr  M0
validation.c File Reference
#include "lib/trace.h"
#include "conf/validation.h"
#include "conf/glob.h"
#include "conf/dir.h"
#include "conf/walk.h"
#include "conf/pvers.h"
#include "lib/string.h"
#include "lib/errno.h"
#include "lib/memory.h"
#include "net/net.h"
Include dependency graph for validation.c:

Go to the source code of this file.

Data Structures

struct  conf_io_stats
 
struct  conf_pver_width_st
 

Macros

#define M0_TRACE_SUBSYSTEM   M0_TRACE_SUBSYS_CONF
 
#define _ENTRY(name)   { #name, name }
 

Enumerations

enum  { CONF_GLOB_BATCH = 16 }
 

Functions

char * m0_conf_validation_error (struct m0_conf_cache *cache, char *buf, size_t buflen)
 
M0_INTERNAL char * m0_conf_validation_error_locked (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static char * conf_orphans_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static char * conf_io_stats_get (const struct m0_conf_cache *cache, struct conf_io_stats *stats, char *buf, size_t buflen)
 
static bool conf_oostore_mode (const struct m0_conf_root *r)
 
static char * _conf_root_error (const struct m0_conf_root *root, char *buf, size_t buflen, struct conf_io_stats *stats)
 
static char * conf_root_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static const struct m0_conf_nodeconf_node_from_sdev (const struct m0_conf_sdev *sdev)
 
static char * conf_iodev_error (const struct m0_conf_sdev *sdev, const struct m0_conf_sdev **iodevs, uint32_t nr_iodevs, char *buf, size_t buflen)
 
static int conf_pver_width_measure__dir (const struct m0_conf_obj *obj, struct conf_pver_width_st *st)
 
static int conf_pver_width_measure_w (struct m0_conf_obj *obj, void *args)
 
static char * conf_pver_width_error (const struct m0_conf_pver *pver, uint32_t *pver_width, size_t pver_width_nr, char *buf, size_t buflen)
 
static char * conf_pver_formulaic_base_error (const struct m0_conf_pver *fpver, const struct m0_conf_pver **out, char *buf, size_t buflen)
 
static char * conf_pver_formulaic_error (const struct m0_conf_pver *fpver, char *buf, size_t buflen)
 
static char * conf_pver_actual_error (const struct m0_conf_pver *pver, const struct m0_conf_sdev **iodevs, uint32_t nr_iodevs, char *buf, size_t buflen)
 
static char * conf_pvers_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static char * conf_process_endpoint_error (const struct m0_conf_process *proc, char *buf, size_t buflen)
 
static char * conf_endpoint_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static char * conf_service_type_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 
static char * _conf_service_sdevs_error (const struct m0_conf_service *svc, char *buf, size_t buflen)
 
static char * conf_service_sdevs_error (const struct m0_conf_cache *cache, char *buf, size_t buflen)
 

Variables

static const struct m0_conf_ruleset conf_rules
 
static const struct m0_conf_rulesetconf_validity_checks []
 

Macro Definition Documentation

◆ _ENTRY

#define _ENTRY (   name)    { #name, name }