[PATCH] Enforce upper bound for resize. (#1027947)

David Lehman dlehman at redhat.com
Tue Nov 12 17:41:40 UTC 2013


---
 pyanaconda/ui/gui/spokes/custom.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/pyanaconda/ui/gui/spokes/custom.py b/pyanaconda/ui/gui/spokes/custom.py
index 94c4416..1950a5b 100644
--- a/pyanaconda/ui/gui/spokes/custom.py
+++ b/pyanaconda/ui/gui/spokes/custom.py
@@ -1443,6 +1443,8 @@ class CustomPartitioningSpoke(NormalSpoke, StorageChecker):
                 size = device.maxSize
             elif size < device.minSize:
                 size = device.minSize
+            elif size > device.maxSize:
+                size = device.maxSize
 
             # And then we need to re-check that the max size is actually
             # different from the current size.
-- 
1.8.1.4



More information about the anaconda-patches mailing list