[master 24/30] Do not call _getFSInfo() in minsize and size methods.
mulkieran
installerbot-noreply at redhat.com
Fri Apr 17 21:49:49 UTC 2015
From: mulhern <amulhern at redhat.com>
Related: #12
The only place these methods were called, _getFSInfo has just been
called. Also, it makes dealing with these methods a bit more awkward in task
framework.
Signed-off-by: mulhern <amulhern at redhat.com>
---
blivet/formats/fs.py | 7 -------
1 file changed, 7 deletions(-)
diff --git a/blivet/formats/fs.py b/blivet/formats/fs.py
index 13f143c..484ce4a 100644
--- a/blivet/formats/fs.py
+++ b/blivet/formats/fs.py
@@ -321,9 +321,6 @@ def _getExistingSize(self, info=None):
size = Size(0)
if self.exists:
- if info is None:
- info = self._getFSInfo()
-
try:
values = []
for line in info.splitlines():
@@ -907,10 +904,6 @@ def _getMinSize(self, info=None):
blockSize = None
if self.exists and os.path.exists(self.device):
- if info is None:
- # get block size
- info = self._getFSInfo()
-
for line in info.splitlines():
if line.startswith("Block size:"):
blockSize = int(line.split(" ")[-1])
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/c4871a0f5094b8ca89e5df3de3af9a4ec21ce36e
More information about the anaconda-patches
mailing list