[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [PATCH] Lets make sure to use the Volume Group size getter function (#468944).
- From: Joel Granados <jgranado redhat com>
- To: Discussion of Development and Customization of the Red Hat Linux Installer <anaconda-devel-list redhat com>
- Subject: Re: [PATCH] Lets make sure to use the Volume Group size getter function (#468944).
- Date: Mon, 24 Nov 2008 08:49:08 -0500 (EST)
----- "Joel Granados Moreno" <jgranado redhat com> 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 redhat com
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list
--
Joel Andres Granados
Red Hat / Brno Czech Republic
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]