1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-21 22:04:19 +03:00
Jonathan Earl Brassow 9bdfb30720 Fix allocation code to allow replacement of single RAID 4/5/6 device.
The code fail to account for the case where we just need a single device
in a RAID 4/5/6 array.  There is no good way to tell the allocation functions
that we don't need parity devices when we are allocating just a single device.
So, I've used a bit of a hack.  If we are allocating an area_count that is <=
the parity count, then we can assume we are simply allocating a replacement
device (i.e. no need to include parity devices in the calculations).  This
should make sense in most cases.  If we need to allocate replacement devices
due to failure (or moving), we will never allocate more than the parity count;
or we would cause the array to become unusable.  If we are creating a new device,
we should always create more stripes than parity devices.
2012-02-23 03:57:23 +00:00
..
2012-02-08 13:44:49 +00:00
2012-01-26 14:02:42 +00:00
2012-02-08 12:52:58 +00:00
2011-06-17 14:14:19 +00:00
2012-02-13 11:16:42 +00:00
2012-02-08 11:31:29 +00:00
2012-02-13 11:07:55 +00:00
2012-02-15 11:20:12 +00:00
2011-09-24 21:19:30 +00:00
2011-06-17 14:14:19 +00:00