1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

Check for error code in _adjust_policy_params

If error is detected in _adjust_policy_params, break further command processing.
This commit is contained in:
Zdenek Kabelac 2012-01-09 12:31:52 +00:00
parent f9fb138bdd
commit 7afa7b079c
2 changed files with 3 additions and 1 deletions

View File

@ -1,5 +1,6 @@
Version 2.02.89 - Version 2.02.89 -
================================== ==================================
Add check for error in _adjust_policy_params() (lvextend --use-policies).
Supports rounding of percentage (%LV, %VG...) for LV resize upward. Supports rounding of percentage (%LV, %VG...) for LV resize upward.
Use dmeventd_lvm2_command in dmeventd plugins snapshot, raid, mirror. Use dmeventd_lvm2_command in dmeventd plugins snapshot, raid, mirror.
Add helper dmeventd_lvm2_command() into libdevmapper-event-lvm2 library. Add helper dmeventd_lvm2_command() into libdevmapper-event-lvm2 library.

View File

@ -421,7 +421,8 @@ static int _lvresize(struct cmd_context *cmd, struct volume_group *vg,
log_error("Policy-based resize is supported only for snapshot and thin pool volumes."); log_error("Policy-based resize is supported only for snapshot and thin pool volumes.");
return ECMD_FAILED; return ECMD_FAILED;
} }
_adjust_policy_params(cmd, lv, lp); if (!_adjust_policy_params(cmd, lv, lp))
return ECMD_FAILED;
} }
if (!lv_is_visible(lv)) { if (!lv_is_visible(lv)) {