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

Brian C. Lane bcl at redhat.com
Wed Sep 24 01:10:59 UTC 2014


On Tue, Sep 23, 2014 at 02:04:35PM -0500, David Lehman wrote:
> ---
>  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

Ack

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)


More information about the anaconda-patches mailing list