{\bfseries{Mounting}} is the process of integrating a backend that reads and writes a specific configuration file into the global key database. Mounting allows you to use different configuration files but also allows you to change the behavior of writing/reading keys to/from the global key database. For example, you need to mount if you want to\+:


\begin{DoxyItemize}
\item change the syntax of a configuration file,
\item log every change of a configuration file,
\item validate a configuration file on every access,
\item change the representation (e.\+g. the date-\/format or booleans), and
\item everything else plugins can do.
\end{DoxyItemize}

{\bfseries{Mounting}} allegorises a common technique for virtual file systems. File systems on different partitions or devices can be added to the currently accessible file system. Mounting is typically used to access data from external media. A more advanced use case presents mounting a file system that is optimised for specific purposes, for example, one that can handle many small files well. Mounting also allows us to access data via network storage. As a result, mounting of file systems has proved to be extremely successful.

Mounting in Elektra specifically allows us to map a part of the global key database to be handled by a different storage. A difference to file systems is that key names express what file names express in a file system. And instead of file systems writing to block devices, backends writing to key databases are mounted into the global key database. Mounting allows multiple backends to deal with configuration at the same time. Each of them is responsible for its own subtree of the global key database.

Mounting works for file systems only if the file system below is accessible and a directory exists at the mount point. Elektra does not enforce such restrictions.

Note, that you cannot mount the same configuration file multiple times. You can, however, use the specification to link between configuration items which gives an impression of a {\itshape bind mount}, i.\+e. having the same configuration values on multiple places.\hypertarget{md_doc_help_elektra_mounting_autotoc_md2438}{}\doxysection{SEE ALSO}\label{md_doc_help_elektra_mounting_autotoc_md2438}

\begin{DoxyItemize}
\item See \mbox{\hyperlink{md_doc_help_elektra_glossary}{elektra-\/glossary(7)}}
\item More information about \mbox{\hyperlink{md_doc_help_elektra_backends}{elektra-\/backends(7)}}
\item The tool for mounting plugins is \mbox{\hyperlink{md_doc_help_kdb_mount}{kdb-\/mount(1)}}
\item Back to main page if you started from there 
\end{DoxyItemize}