[blivet:master 02/11] Check resizable when assigning a new target size.

mulhern amulhern at redhat.com
Tue Nov 25 23:22:38 UTC 2014


Signed-off-by: mulhern <amulhern at redhat.com>
---
 blivet/formats/fs.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index eb7f0bb..746221f 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -196,6 +196,9 @@ class FS(DeviceFormat):
         if not self.exists:
             raise FSError("filesystem has not been created")
 
+        if not self.resizable:
+            raise FSError("filesystem is not resizable")
+
         if newsize is None:
             # unset any outstanding resize request
             self._targetSize = self._size
-- 
1.9.3



More information about the anaconda-patches mailing list