1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib/config
Peter Rajnoha f6adef9825 config: runtime default for devices/cache, devices/cache_dir
The devices/cache and devices/cache_dir are evaluated in runtime this way:

  - if devices/cache is set, use it

  - if devices_cache/dir or devices/cache_file_prefix is set, make up a
    path out of that for devices/cache in runtime, taking into account
    the LVM_SYSTEM_DIR environment variable if set

  - otherwise make up the path out of default which is:
    <LVM_SYSTEM_DIR>/<cache_dir>/<cache_file_prefix>.cache

With the runtime defaults, we can encode this easily now. Also, the lvm
dumpconfig can show proper and exact information about this setting then
(the variant that shows default values).
2014-03-06 11:07:54 +01:00
..
config_settings.h config: runtime default for devices/cache, devices/cache_dir 2014-03-06 11:07:54 +01:00
config.c config: runtime default for devices/cache, devices/cache_dir 2014-03-06 11:07:54 +01:00
config.h config: runtime default for devices/cache, devices/cache_dir 2014-03-06 11:07:54 +01:00
defaults.h cache: Code changes to allow creation of cache pools 2014-02-04 11:57:08 -06:00