Motr  M0
m0_conf_glob Struct Reference

#include <glob.h>

Collaboration diagram for m0_conf_glob:
Collaboration graph

Data Fields

int cg_flags
 
m0_conf_glob_errfunc_t cg_errfunc
 
int cg_errcode
 
const struct m0_conf_objcg_errobj
 
const struct m0_fidcg_errpath
 
const struct m0_conf_cachecg_cache
 
const struct m0_conf_objcg_origin
 
struct m0_fid cg_path [M0_CONF_PATH_MAX+1]
 
const struct m0_conf_objcg_trace [M0_CONF_PATH_MAX+1]
 
uint32_t cg_depth
 
bool cg_down_p
 

Detailed Description

Conf DAG traversal context.

Prepared by m0_conf_glob_init(), used and modified by m0_conf_glob() calls.

Definition at line 81 of file glob.h.

Field Documentation

◆ cg_cache

const struct m0_conf_cache* cg_cache

Definition at line 105 of file glob.h.

◆ cg_depth

uint32_t cg_depth

Current position in .cg_path[] and .cg_trace[].

Definition at line 122 of file glob.h.

◆ cg_down_p

bool cg_down_p

Whether next conf_glob_step() should move away from the root.

Definition at line 125 of file glob.h.

◆ cg_errcode

int cg_errcode

Definition at line 100 of file glob.h.

◆ cg_errfunc

If set, this function will be called in case of traversal error.

If .cg_errfunc() returns nonzero, or M0_CONF_GLOB_ERR is set in .cg_flags, m0_conf_glob() will terminate after the call to .cg_errfunc().

A traversal error occurs when the path cannot be went through. This may happen if some path component refers to nonexistent object (-ENOENT), or a stub object is reached (-EPERM).

See also
m0_conf_glob_error()

Definition at line 98 of file glob.h.

◆ cg_errobj

const struct m0_conf_obj* cg_errobj

Definition at line 101 of file glob.h.

◆ cg_errpath

const struct m0_fid* cg_errpath

Definition at line 102 of file glob.h.

◆ cg_flags

int cg_flags

Bitwise OR of zero or more M0_CONF_GLOB_* symbolic constants.

Definition at line 83 of file glob.h.

◆ cg_origin

const struct m0_conf_obj* cg_origin

Configuration object to start traversal from.

Definition at line 108 of file glob.h.

◆ cg_path

struct m0_fid cg_path[M0_CONF_PATH_MAX+1]

Path to target object(s).

Relative to .cg_origin object. Terminated with M0_FID0.

Definition at line 116 of file glob.h.

◆ cg_trace

const struct m0_conf_obj* cg_trace[M0_CONF_PATH_MAX+1]

Route from .cg_origin to where m0_conf_glob() currently is.

Definition at line 119 of file glob.h.


The documentation for this struct was generated from the following file: