1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib/filters
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
..
filter-composite.c refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-composite.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
filter-md.c refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-md.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-mpath.c dev-type: add/fix references for dev_types in non-linux case 2013-06-17 15:17:15 +02:00
filter-mpath.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-persistent.c config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
filter-persistent.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-regex.c refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-regex.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter-sysfs.c cleanup: use libdm's dm_sysfs_dir() for sysfs directory throughout 2013-06-12 11:44:58 +02:00
filter-sysfs.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00
filter.c cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
filter.h refactor: make device type recognition code common for general use 2013-06-12 12:08:56 +02:00