diff options
author | Peter Rajnoha <prajnoha@redhat.com> | 2013-06-25 12:30:34 +0200 |
---|---|---|
committer | Peter Rajnoha <prajnoha@redhat.com> | 2013-07-02 15:19:09 +0200 |
commit | 50bf2c0db14400d80b08afabe917deee51f32ac8 (patch) | |
tree | d79b8d6f96094b945a7ab525d38d5bc0fffc9f05 /tools/lvresize.c | |
parent | 8ac4fcf8ffa4af3ee8d524add632f0f3139b929d (diff) | |
download | lvm2-50bf2c0db14400d80b08afabe917deee51f32ac8.tar.gz |
config: add profile arg to find_config_tree_int
Diffstat (limited to 'tools/lvresize.c')
-rw-r--r-- | tools/lvresize.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/lvresize.c b/tools/lvresize.c index 1ba5a5c6e..bd29bc64f 100644 --- a/tools/lvresize.c +++ b/tools/lvresize.c @@ -306,16 +306,16 @@ 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) * PERCENT_1; + find_config_tree_int(cmd, activation_thin_pool_autoextend_threshold_CFG, NULL) * PERCENT_1; policy_amount = - find_config_tree_int(cmd, activation_thin_pool_autoextend_percent_CFG); + find_config_tree_int(cmd, activation_thin_pool_autoextend_percent_CFG, NULL); if (!policy_amount && policy_threshold < PERCENT_100) return 0; } else { policy_threshold = - find_config_tree_int(cmd, activation_snapshot_autoextend_threshold_CFG) * PERCENT_1; + find_config_tree_int(cmd, activation_snapshot_autoextend_threshold_CFG, NULL) * PERCENT_1; policy_amount = - find_config_tree_int(cmd, activation_snapshot_autoextend_percent_CFG); + find_config_tree_int(cmd, activation_snapshot_autoextend_percent_CFG, NULL); } if (policy_threshold >= PERCENT_100) @@ -754,7 +754,7 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg, lp->stripe_size = seg_stripesize; } else { lp->stripe_size = - find_config_tree_int(cmd, metadata_stripesize_CFG) * 2; + find_config_tree_int(cmd, metadata_stripesize_CFG, NULL) * 2; log_print_unless_silent("Using default stripesize %s", display_size(cmd, (uint64_t) lp->stripe_size)); } |