diff options
author | Michael Adam <obnox@samba.org> | 2008-01-16 16:18:28 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-16 17:10:02 +0100 |
commit | 89b1c68b37dd5f020982de82ba6ef9790986d8c7 (patch) | |
tree | 4e855437f2585e063fdafb84117881497cf5a99f /source3/iniparser/test | |
parent | 789720e0ed8506d7373c2879187dd7b43f76c040 (diff) | |
download | samba-89b1c68b37dd5f020982de82ba6ef9790986d8c7.tar.gz samba-89b1c68b37dd5f020982de82ba6ef9790986d8c7.tar.bz2 samba-89b1c68b37dd5f020982de82ba6ef9790986d8c7.zip |
Add config parameter "config backend = registry".
This adds a new config parameter "config backend" that can have
values "file" (default) and "registry". When lp_load() encounters
a "config backend = registry", then all config read up to that
point is discarded and globals are read from registry.
This is done in suche a way that as with "config file",
there is no way back to non-registry config during the
lifetime of a process: The file_list_changed mechanism
does not look at files anymore once config backend is
set to registry. This is modelled after the behaviour
of the "config file" option.
Note that only the global section is read by lp_load().
The shares are handled by the registry shares mechanism,
thus allowing for a smaller memory footprint since
share definitions are read on demand.
This new parameter is intended as a substitute of the
previously installed special semantics of "include = registry"
which allows for messed up mixed configurations.
This parameter (which has not yet been released) will
vanish next.
Michael
(This used to be commit 77b33cf34c2aec6673dfab3962733a60a60d126a)
Diffstat (limited to 'source3/iniparser/test')
0 files changed, 0 insertions, 0 deletions