1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/lib
Peter Rajnoha 558c932444 dumpconfig: comment out config lines without default values defined
To make "lvm dumpconfig --type default" output to be usable like any
other config, we need to comment out lines that have no default value
defined. Otherwise, we'd have the output with config options
with blank or zero values which is not the same as when the value
is not defined! And such configuration can't be feed into lvm again
without further edits. So let's fix this.

Currently this covers these configuration options exactly:

  devices/loopfiles
  devices/preferred_names
  devices/filter
  devices/global_filter
  devices/types
  allocation/cling_tag_list
  global/format_libraries
  global/segment_libraries
  activation/volume_list
  activation/auto_activation_volume_list
  activation/read_only_volume_list
  activation/mlock_filter
  metadata/dirs
  metadata/disk_areas
  metadata/disk_areas/<disk_area>
  metadata/disk_areas/<disk_area>/start_sector
  metadata/disk_areas/<disk_area>/size
  metadata/disk_areas/<disk_area>/id
  tags/<tag>
  tags/<tag>/host_list
2014-02-25 11:32:54 +01:00
..
activate raid: use feature attributes for raid10 2014-02-24 21:10:13 +01:00
cache cleanup: spelling 2014-02-24 21:13:35 +01:00
cache_segtype cache-pool: Change segtype name from cache_pool to cache-pool 2014-02-19 09:26:03 -06:00
commands cache: New 'cachepool' segment type 2014-01-27 05:27:16 -06:00
config dumpconfig: comment out config lines without default values defined 2014-02-25 11:32:54 +01:00
datastruct cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
device cleanup: reorder commonly available devs in system to the front 2014-02-24 21:13:35 +01:00
display allocation: misc fixes for percent/raid rounding 2014-02-22 00:26:01 +00:00
error cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
filters filters: drop extra slash from sysfs path 2013-11-22 20:53:31 +01:00
format1 format1: Mark obsolete and do not use with lvmetad. 2014-01-14 03:27:45 +00:00
format_pool pvscan: use format feature flags in lvmetad code 2014-01-08 02:13:13 +00:00
format_text cleanup: missing header file 2014-02-20 09:07:38 +01:00
freeseg cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
label cleanup: remove unneeded header files 2014-02-11 19:00:06 +01:00
locking locking: avoid dropping locks 2014-01-27 12:13:29 +01:00
log cleanup: simplify logging code 2013-12-12 13:27:59 +01:00
metadata allocation: add default path 2014-02-25 09:36:26 +01:00
mirror mirror: move declaration to define 2014-02-25 09:35:26 +01:00
misc cleanup: remove unneeded header files 2014-02-11 19:00:06 +01:00
mm gcc: replace #ifdef linux with __linux__ 2013-11-13 13:56:29 +00:00
properties lvm2app: Add thin and thin pool lv creation 2013-07-12 16:52:16 -05:00
raid raid: use feature attributes for raid10 2014-02-24 21:10:13 +01:00
replicator cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
report cache[pool]: Populate existing report fields with cache data 2014-02-05 09:44:37 -06:00
snapshot snapshot: rework parsing of snapshot metadata 2013-10-14 00:26:58 +02:00
striped Add activation/use_linear_target enabled by default. (prajnoha) 2011-11-28 20:37:51 +00:00
thin thin: cleanup target_present call 2014-02-24 21:09:29 +01:00
unknown cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
uuid cleanup: self compilable headers 2013-12-12 13:28:19 +01:00
zero cleanup: drop unneeded included header files 2012-08-23 14:37:20 +02:00
Makefile.in cache: Add functions that create/remove cache LVs 2014-02-04 07:59:58 -06:00