1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 20:25:52 +03:00
lvm2/lib
Peter Rajnoha a3d891a290 config: add structs to represent config definition and register config_settings.h content
This patch adds basic structures that encapsulate the config_settings.h
content - it takes each item and puts it in structures:

  - cfg_def_type_t to define config item type

  - cfg_def_value_t to define config item (default) value

  - flags used to define the nature and use of the config item:
      - CFG_NAME_VARIABLE for items with variable names (e.g. tags)
      - CFG_ALLOW_EMPTY for items where empty value is allowed
      - CFG_ADVANCED for items which are considered as "advanced settings"
      - CFG_UNSUPPORTED for items which are not officially supported
        (config options mostly for internal use and testing/debugging)

  - cfg_def_item_t to encapsulate the whole definition of the config
    definition itself

Each config item is referenced by named ID, e.g. "devices_dir_CFG"
instead of directly typing the path "devices/dir" as it was before.

This patch also adds cfg_def_get_path helper function to get the
config setting path up to the root for given config ID
(it returns the path in form of "abc/def/.../xyz" where the "abc"
is the topmost element).
2013-03-06 10:14:33 +01:00
..
activate activation: fix pvmove partial tree creation 2013-02-23 12:09:12 +01:00
cache lvmetad: fix to properly process embedding area 2013-02-27 10:36:49 +01:00
commands logging: add debug classes 2013-01-07 22:25:19 +00:00
config config: add structs to represent config definition and register config_settings.h content 2013-03-06 10:14:33 +01:00
datastruct Switch to return void 2012-02-08 12:52:58 +00:00
device logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
display thin: report external origin 2013-02-23 10:37:01 +01:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters filters: add scm devices 2013-01-11 09:24:07 +01:00
format1 pv_header_extension: add support for writing PV header extension (flags & Embedding Area) 2013-02-26 11:28:00 +01:00
format_pool cleanup: use struct pvcreate_restorable_params throughout 2013-02-26 11:25:11 +01:00
format_text cleanup: remove struct pv_header_extension reference from struct pv_header 2013-02-27 10:47:24 +01: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 logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
log logging: add debug classes 2013-01-07 22:25:19 +00:00
metadata pv_header_extension: add support for writing PV header extension (flags & Embedding Area) 2013-02-26 11:28:00 +01:00
mirror clean-up: Rename lvm.conf setting 'mirror_region_size' to 'raid_region_size' 2013-02-20 14:40:17 -06:00
misc logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
mm logging: classify log_debug messages 2013-01-07 22:30:29 +00:00
raid RAID: Add support for RAID10 2012-08-24 15:34:19 -05:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report report: add reporting fields for Embedding Area start and size 2013-02-26 14:46:42 +01:00
snapshot Differentiate between snapshot status of "Invalid" and "Merge failed". 2012-01-20 22:02:04 +00:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin thin: add support for external origin 2013-02-23 10:36:58 +01: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 cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00