1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-27 10:25:13 +03:00

dumpconfig: honour --atversion with --type profilable

raw/~ $ lvm dumpconfig --type profilable
  allocation {
	  thin_pool_zero=1
	  thin_pool_discards="passdown"
	  thin_pool_chunk_size=64
  }
  activation {
	  thin_pool_autoextend_threshold=100
	  thin_pool_autoextend_percent=20
  }

  raw/~ $ lvm dumpconfig --type profilable --atversion 2.2.90
  activation {
	  thin_pool_autoextend_threshold=100
	  thin_pool_autoextend_percent=20
  }
This commit is contained in:
Peter Rajnoha 2013-07-09 10:23:46 +02:00
parent 953a438e93
commit 934616d4c7

View File

@ -1371,7 +1371,8 @@ static int _should_skip_def_node(struct config_def_tree_spec *spec, int section_
return 1;
break;
case CFG_DEF_TREE_PROFILABLE:
if (!(def->flags & CFG_PROFILABLE))
if (!(def->flags & CFG_PROFILABLE) ||
(def->since_version > spec->version))
return 1;
break;
default: