[master][blivet][PATCH] Consider existing None format nonresizable (#1033778)
Vratislav Podzimek
vpodzime at redhat.com
Tue Nov 26 13:57:02 UTC 2013
If there is an existing format, but we cannot recognize it we shouldn't consider
it resizable.
Signed-off-by: Vratislav Podzimek <vpodzime at redhat.com>
---
blivet/devices.py | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index d8ca488..c0cc809 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -656,8 +656,7 @@ class StorageDevice(Device):
def resizable(self):
""" Can this type of device be resized? """
return (self._resizable and self.exists and
- (self.format.type is None or self.format.resizable or
- not self.format.exists))
+ (not self.format.exists or self.format.resizable))
def notifyKernel(self):
""" Send a 'change' uevent to the kernel for this device. """
--
1.8.4.2
More information about the anaconda-patches
mailing list