Re: [PATCH] Lets make sure to use the Volume Group size getter function (#468944).

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



----- "Joel Granados Moreno" <jgranado@xxxxxxxxxx> wrote:

> ---
>  iw/lvm_dialog_gui.py |   13 +++----------
>  1 files changed, 3 insertions(+), 10 deletions(-)
> 
> diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
> index 8b40890..8efd96e 100644
> --- a/iw/lvm_dialog_gui.py
> +++ b/iw/lvm_dialog_gui.py
> @@ -818,17 +818,10 @@ class VolumeGroupEditor:
>  	return pv
>  
>      def computeVGSize(self, pvlist, curpe):
> -	availSpaceMB = 0L
> -	for id in pvlist:
> -	    pvreq = self.partitions.getRequestByID(id)
> -	    pvsize = pvreq.getActualSize(self.partitions, self.diskset)
> -	    # have to clamp pvsize to multiple of PE
> -	    pvsize = lvm.clampPVSize(pvsize, curpe)
> -
> -	    availSpaceMB = availSpaceMB + pvsize
> -
> +        import pdb; pdb.set_trace()

^^^^^  I;ll erase this of course. :)

> +        availSpaceMB =
> self.origvgrequest.getActualSize(self.partitions, self.diskset)
>          log.debug("computeVGSize: vgsize is %s" % (availSpaceMB,))
> -	return availSpaceMB
> +        return availSpaceMB
>  
>      def computeLVSpaceNeeded(self, logreqs, pesize):
>  	neededSpaceMB = 0
> -- 
> 1.5.6.5
> 
> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

-- 
Joel Andres Granados
Red Hat / Brno Czech Republic

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux