[PATCH] Only pad for md metadata if pvs use multiple disks.

David Lehman dlehman at redhat.com
Tue Sep 23 19:04:35 UTC 2014


---
 blivet/partitioning.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/partitioning.py b/blivet/partitioning.py
index ed001f7..9d5f08f 100644
--- a/blivet/partitioning.py
+++ b/blivet/partitioning.py
@@ -1661,7 +1661,7 @@ class VGChunk(Chunk):
         # on RAID (see the devicefactory.LVMFactory._get_total_space method)
         if not req.device.exists and req.device.vg.pvs:
             max_raid_disks = max(len(pv.disks) for pv in req.device.vg.pvs)
-            if max_raid_disks:
+            if max_raid_disks > 1:
                 self.pool -= 5 * max_raid_disks
 
         super(VGChunk, self).addRequest(req)
-- 
1.9.3



More information about the anaconda-patches mailing list