mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-03 05:18:29 +03:00
raid: cleanup raid4/5/6/10 validation check
This commit is contained in:
parent
44275c763c
commit
3a639d8144
@ -169,11 +169,13 @@ static void _check_raid45610_seg(struct lv_segment *seg, int *error_count)
|
||||
_check_raid_region_recovery(seg, error_count);
|
||||
/* END: checks applying to any raid4/5/6/10 */
|
||||
|
||||
if (seg->lv->status & LV_RESHAPE_DATA_OFFSET) {
|
||||
if (seg->data_offset > 1 && (seg->data_offset & (seg->lv->vg->extent_size - 1)))
|
||||
if (seg->data_offset > 1) {
|
||||
if (seg->lv->status & LV_RESHAPE_DATA_OFFSET) {
|
||||
if (seg->data_offset & (seg->lv->vg->extent_size - 1))
|
||||
raid_seg_error_val("data_offset", seg->data_offset);
|
||||
} else
|
||||
raid_seg_error_val("data_offset", seg->data_offset);
|
||||
} else if (seg->data_offset)
|
||||
raid_seg_error_val("data_offset", seg->data_offset);
|
||||
}
|
||||
|
||||
/* Specific checks per raid level */
|
||||
if (seg_is_raid4(seg) ||
|
||||
|
Loading…
Reference in New Issue
Block a user