[blivet:master 16/20] Do not supply a default implementation for the resizeArgs() method.
mulhern
amulhern at redhat.com
Tue Dec 23 23:42:29 UTC 2014
The different resize utilities require different args and sometimes
different units specifications as well.
Be explicit that it needs to be overridden.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/formats/fs.py | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index e09d1e5..10c83ca 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -431,8 +431,14 @@ class FS(DeviceFormat):
@property
def resizeArgs(self):
- argv = [self.device, "%d" % (self.targetSize.convertTo(MiB),)]
- return argv
+ """ Returns the arguments for resizing the filesystem.
+
+ Must be overridden by every class that has non-None _resizefs.
+
+ :returns: arguments for resizing a filesystem.
+ :rtype: list of str
+ """
+ return []
def doResize(self):
""" Resize this filesystem based on this instance's targetSize attr.
--
1.9.3
More information about the anaconda-patches
mailing list