mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-09 01:18:39 +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:
parent
8a3960d217
commit
7da3845926
@ -1,5 +1,6 @@
|
||||
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.
|
||||
Use dmeventd_lvm2_command in dmeventd plugins snapshot, raid, mirror.
|
||||
Add helper dmeventd_lvm2_command() into libdevmapper-event-lvm2 library.
|
||||
|
@ -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.");
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
_adjust_policy_params(cmd, lv, lp);
|
||||
if (!_adjust_policy_params(cmd, lv, lp))
|
||||
return ECMD_FAILED;
|
||||
}
|
||||
|
||||
if (!lv_is_visible(lv)) {
|
||||
|
Loading…
Reference in New Issue
Block a user