]> sourceware.org Git - lvm2.git/commit
RAID: Fix broken allocation policies for parity RAID types
authorJonathan Brassow <jbrassow@redhat.com>
Wed, 25 Sep 2013 02:32:10 +0000 (21:32 -0500)
committerJonathan Brassow <jbrassow@redhat.com>
Wed, 25 Sep 2013 02:32:10 +0000 (21:32 -0500)
commit5ded7314ae00629da8d21d925c3fa091cce2a939
treee79d25a073323ec75d565578ac0716b101cdc96e
parent6553f86818404cd34fa3600dc976ed25fcf6d65a
RAID: Fix broken allocation policies for parity RAID types

A previous commit (b6bfddcd0a830d0c9312bc3ab906cb3d1b7a6dd9) which
was designed to prevent segfaults during lvextend when trying to
extend striped logical volumes forgot to include calculations for
RAID4/5/6 parity devices.  This was causing the 'contiguous' and
'cling_by_tags' allocation policies to fail for RAID 4/5/6.

The solution is to remember that while we can compare
ah->area_count == prev_lvseg->area_count
for non-RAID, we should compare
(ah->area_count + ah->parity_count) == prev_lvseg->area_count
for a general solution.
WHATS_NEW
lib/metadata/lv_manip.c
This page took 0.395802 seconds and 5 git commands to generate.