[master 18/19] Change StorageDevice.resizable to use raw_device.
mulkieran
installerbot-noreply at redhat.com
Thu Jun 18 21:04:19 UTC 2015
From: mulhern <amulhern at redhat.com>
Related: #56
Except for LUKS devices, nothing is changed. However, a LUKS device is
resizable if it's slave's format, which is always a LUKS format,
does not exist or is resizable (it should never have type None).
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/devices/storage.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/devices/storage.py b/blivet/devices/storage.py
index e63c7f9..7f4e157 100644
--- a/blivet/devices/storage.py
+++ b/blivet/devices/storage.py
@@ -287,9 +287,9 @@ def formatArgs(self):
@property
def resizable(self):
""" Can this device be resized? """
+ fmt = self.raw_device.format
return (self._resizable and self.exists and
- (self.format.type is None or self.format.resizable or
- not self.format.exists))
+ (fmt.type is None or fmt.resizable or not fmt.exists))
def notifyKernel(self):
""" Send a 'change' uevent to the kernel for this device. """
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/e549bdfebab419e2e9bb77df5d4bce129c04a838
More information about the anaconda-patches
mailing list