1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-02-07 05:58:00 +03:00
Jonathan Brassow 5555d2a000 RAID: Fix segfault when attempting to replace RAID 4/5/6 device
Commit 8767435ef847831455fadc1f7e8f4d2d94aef0d5 allowed RAID 4/5/6
LV to be extended properly, but introduced a regression in device
replacement - a critical component of fault tolerance.

When only 1 or 2 drives are being replaced, the 'area_count' needed
can be equal to the parity_count.  The 'area_multiple' for RAID 4/5/6
was computed as 'area_count - parity_devs', which could result in
'area_multiple' being 0.  This would ultimately lead to a division by
zero error.  Therefore, in calc_area_multiple, it is important to take
into account the number of areas that are being requested - just as
we already do in _alloc_init.
2012-07-24 19:02:06 -05:00
..
2012-06-28 09:42:47 -04:00
2012-02-08 12:52:58 +00:00
2011-06-17 14:14:19 +00:00
2012-03-28 11:11:25 +00:00
2012-02-23 22:30:20 +00:00
2012-06-22 13:48:04 +02:00
2012-02-28 14:23:41 +00:00
2011-09-24 21:19:30 +00:00
2011-06-17 14:14:19 +00:00