summaryrefslogtreecommitdiffstats
path: root/iw/lvm_dialog_gui.py
diff options
context:
space:
mode:
authorDavid Lehman <dlehman@redhat.com>2009-04-02 18:52:26 -0500
committerDavid Lehman <dlehman@redhat.com>2009-04-02 22:09:03 -0500
commitabd3649a49e6b2d63c7084c48a842492914dafe9 (patch)
tree867bc8217b752ca6081a57623efdb5a665e1cc1a /iw/lvm_dialog_gui.py
parentb3a27828ca7d46db19eef11e6d2f70a37abc0d93 (diff)
downloadanaconda-abd3649a49e6b2d63c7084c48a842492914dafe9.tar.gz
anaconda-abd3649a49e6b2d63c7084c48a842492914dafe9.tar.xz
anaconda-abd3649a49e6b2d63c7084c48a842492914dafe9.zip
Present the correct max lv size in the dialog.
Diffstat (limited to 'iw/lvm_dialog_gui.py')
-rw-r--r--iw/lvm_dialog_gui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/iw/lvm_dialog_gui.py b/iw/lvm_dialog_gui.py
index 2cee546ba..9a9566aa7 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)