1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/format_text
Peter Rajnoha da3ea66a96 config: add config_source_t type to identify configuration source
A helper type that helps with identification of the configuration source
which makes handling the configuration cascade a bit easier, mainly
removing and adding configuration trees to cascade dynamically.

Currently, the possible types are:

  CONFIG_UNDEFINED - configuration is not defined yet (not initialized)
  CONFIG_FILE - one file configuration
  CONFIG_MERGED_FILES - configuration that is a result of merging more files into one
  CONFIG_STRING - configuration string typed on cmd line directly
  CONFIG_PROFILE - profile configuration (the new type of configuration, patches will follow...)

Also, generalize existing "remove_overridden_config_tree" to work with
configuration type identification in a cascade. Before, it was just
the CONFIG_STRING we used. Now, we need some more to add in a
cascade (like the CONFIG_PROFILE). So, we have:

  struct dm_config_tree *remove_config_tree_by_source(struct cmd_context *cmd, config_source_t source);
  config_source_t config_get_source_type(struct dm_config_tree *cft);

... for removing the tree by its source type from the cascade and
simply getting the source type.
2013-07-02 15:19:08 +02:00
..
archive.c cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
archiver.c archive: add missing bit set 2013-07-02 11:07:15 +02:00
archiver.h thin: allow restore with --force 2012-11-27 14:08:24 +01:00
export.c Move export_vg_to_config_tree alongside export_vg_to_buffer. 2013-06-10 15:55:55 +02:00
flags.c archiver: do not archive vg more then once 2013-07-01 23:09:26 +02:00
format-text.c cleanup: clear outdated comment (TODO already done) 2013-06-27 15:26:39 +02:00
format-text.h refactor: rename embedding area -> bootloader area 2013-05-28 12:37:22 +02:00
import_vsn1.c metadata: log_debug only when BA found in metadata 2013-06-27 16:03:35 +02:00
import-export.h Pass 'single_device' parameter down to suppress 'Can't find uuid' messages 2012-02-29 02:35:35 +00:00
import.c config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
layout.h refactor: rename embedding area -> bootloader area 2013-05-28 12:37:22 +02:00
tags.c Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
text_export.h Move the core of the lib/config/config.c functionality into libdevmapper, 2011-08-30 14:55:15 +00:00
text_import.h Replace const usage of dm_config_find_node with more appropriate value-lookup 2011-08-31 15:19:19 +00:00
text_label.c refactor: rename embedding area -> bootloader area 2013-05-28 12:37:22 +02:00