mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
vg_validate: only reject min_recovery_rate in case max_recovery_rate is set and smaller
This commit is contained in:
parent
d46de28a6c
commit
43f4555893
@ -118,8 +118,9 @@ static void _check_raid_region_recovery(struct lv_segment *seg, int *error_count
|
||||
raid_seg_error("zero region_size");
|
||||
if (!is_power_of_2(seg->region_size))
|
||||
raid_seg_error_val("non power of 2 region size", seg->region_size);
|
||||
/* min/max recovery rate may be zero but min may not be larger than max*/
|
||||
if (seg->min_recovery_rate > seg->max_recovery_rate)
|
||||
/* min/max recovery rate may be zero but min may not be larger than max if set */
|
||||
if (seg->max_recovery_rate &&
|
||||
seg->min_recovery_rate > seg->max_recovery_rate)
|
||||
raid_seg_error_val("min recovery larger than max recovery larger", seg->min_recovery_rate);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user