1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
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
..
activate RAID: Remove optimization using static vars in lv_raid_dev_health 2013-06-17 13:03:15 -05:00
cache cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
commands config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
config config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device dev-type: dev_get_primary_dev: fix ret value if dev is a partition and we used sysfs 2013-06-23 12:39:35 +02:00
display thin: fix cut&paste bug 2013-04-21 23:07:00 +02:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
format1 cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
format_pool cleanup: drop unused headers 2013-06-16 00:07:32 +02:00
format_text config: add config_source_t type to identify configuration source 2013-07-02 15:19:08 +02:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
locking cleanup: stack usage 2013-07-01 23:11:14 +02:00
log cleanup: introduce return_ECMD_FAILED macro 2013-07-01 23:10:33 +02:00
metadata archiver: do not archive vg more then once 2013-07-01 23:09:26 +02:00
mirror config: refer to config nodes using assigned IDs 2013-03-06 10:14:33 +01:00
misc cleanup: simplify code around flock 2013-07-01 23:06:41 +02:00
mm mm: fix leak in fail path 2013-05-13 13:13:20 +02:00
raid DM RAID: Add ability to throttle sync operations for RAID LVs. 2013-05-31 11:25:52 -05:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report cleanup: access pool segs with check 2013-06-16 00:07:33 +02:00
snapshot snapshot: use dm_get_status_snapshot() 2013-05-27 10:32:02 +02:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin cleanup: add extra internal error 2013-06-16 00:07:32 +02:00
unknown cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
uuid Revert the #include changes. Need to fix this at the #include site for now, and 2011-07-18 14:34:33 +00:00
zero cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
Makefile.in refactor: move lib/device/device.c -> lib/device/dev-type.c 2013-06-12 11:54:37 +02:00