Re: [PATCH] Present the correct max lv size in the dialog.

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

 



Looks good.

On 04/02/2009 04:44 PM, David Lehman wrote:
---
  iw/lvm_dialog_gui.py |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 2cee546..9a9566a 100644
--- a/iw/lvm_dialog_gui.py
+++ b/iw/lvm_dialog_gui.py
@@ -470,7 +470,7 @@ class VolumeGroupEditor:
          row += 1

          if not lv['exists']:
-            maxlv = min(lvm.getMaxLVSize(), lv['size'])
+            maxlv = min(lvm.getMaxLVSize(), lv['size'] + tempvg.freeSpace)
              maxlabel = createAlignedLabel(_("(Max size is %s MB)") % (maxlv,))
              maintable.attach(maxlabel, 1, 2, row, row + 1)



--
David Cantrell <dcantrell@xxxxxxxxxx>
Red Hat / Honolulu, HI

_______________________________________________
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