Motr  M0
Pre-Loading of Configuration Cache

When configuration cache is created, it can be pre-loaded with configuration data. Cache pre-loading can be useful for testing, boot-strapping, and manual control. One of use cases is a situation when confc cannot or should not communicate with confd.


Configuration string

The application pre-loads confc cache by passing textual description of configuration objects – so called configuration string – to m0_confc_init() via ‘local_conf’ parameter.

When confc API is used by a kernel module, configuration string is provided via mount(8) option.

Format

The format of configuration string corresponds to the format of string argument of m0_xcode_read() function.

Examples

See examples of configuration strings in ut/conf.cg and m0t1fs/linux_kernel/st/st.

See also
Detailed Functional Specification