|
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_node * | conf_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) |
|
Motr subsystems that use confc API (m0t1fs, m0d, ioservice, &c.) have certain expectations of the configuration objects they work with. Subsystem developers specify these expectations in the form of "rules", which valid configuration data should conform to.
char * m0_conf_validation_error |
( |
struct m0_conf_cache * |
cache, |
|
|
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
Performs semantic validation of the DAG of configuration objects.
If m0_conf_validation_error() finds a problem with configuration data, it returns a pointer to a string that describes the problem. This may be either a pointer to a string that the function stores in ‘buf’, or a pointer to some (imutable) static string (in which case ‘buf’ is unused). If the function stores a string in ‘buf’, then at most ‘buflen’ bytes are stored (the string may be truncated if ‘buflen’ is too small). The string always includes a terminating null byte ('\0').
If no issues with configuration data are found, m0_conf_validation_error() returns NULL.
- Precondition
- buf != NULL && buflen != 0
Definition at line 60 of file validation.c.