1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +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; return 1;
break; break;
case CFG_DEF_TREE_PROFILABLE: case CFG_DEF_TREE_PROFILABLE:
if (!(def->flags & CFG_PROFILABLE)) if (!(def->flags & CFG_PROFILABLE) ||
(def->since_version > spec->version))
return 1; return 1;
break; break;
default: default: