diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2013-06-27 11:22:02 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2013-07-02 15:22:11 +0200 |
commit | 24a84549a88a6c937091b894d1f0babe10aed17d (patch) | |
tree | 664e7deee5b8fb458ab752f18fecd4959811afc2 /tools/lvresize.c | |
parent | 6f0427cc56b1ef3ca63ba20b0ac8c0764d38632a (diff) | |
download | lvm2-24a84549a88a6c937091b894d1f0babe10aed17d.tar.gz |
thin: make selected thinp settings profilable
These settins are customizable by profiles:
allocation/thin_pool_zero
allocation/thin_pool_discards
allocation/thin_pool_chunk_size
activation/thin_pool_autoextend_threshold
activation/thin_pool_autoextend_percent
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index bd29bc64f..47cb6aa70 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -306,9 +306,11 @@ static int _adjust_policy_params(struct cmd_context *cmd, if (lv_is_thin_pool(lv)) { policy_threshold = - find_config_tree_int(cmd, activation_thin_pool_autoextend_threshold_CFG, NULL) * PERCENT_1; + find_config_tree_int(cmd, activation_thin_pool_autoextend_threshold_CFG, + lv_config_profile(lv)) * PERCENT_1; policy_amount = - find_config_tree_int(cmd, activation_thin_pool_autoextend_percent_CFG, NULL); + find_config_tree_int(cmd, activation_thin_pool_autoextend_percent_CFG, + lv_config_profile(lv)); if (!policy_amount && policy_threshold < PERCENT_100) return 0; } else { |