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

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



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 redhat com>
Red Hat / Honolulu, HI


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