[PATCH 1/5] Don't prevent grow actions on devices with no max size.

David Lehman dlehman at redhat.com
Thu Mar 20 17:06:36 UTC 2014


---
 blivet/deviceaction.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py
index cfb8022..d9a6a87 100644
--- a/blivet/deviceaction.py
+++ b/blivet/deviceaction.py
@@ -381,7 +381,7 @@ class ActionResizeDevice(DeviceAction):
         if newsize < device.minSize:
             raise ValueError("new size is too small")
 
-        if newsize > device.maxSize:
+        if device.maxSize and newsize > device.maxSize:
             raise ValueError("new size is too large")
 
         DeviceAction.__init__(self, device)
-- 
1.8.5.3



More information about the anaconda-patches mailing list