From: David Lehman dlehman@redhat.com
update_size is the place to go get the current size. --- blivet/devices/file.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/blivet/devices/file.py b/blivet/devices/file.py index dc53a7a..2330e86 100644 --- a/blivet/devices/file.py +++ b/blivet/devices/file.py @@ -83,8 +83,8 @@ def path(self):
return os.path.normpath("%s%s" % (root, self.name))
- def _get_size(self): - size = self._size + def read_current_size(self): + size = Size(0) if self.exists and os.path.exists(self.path): st = os.stat(self.path) size = Size(st[stat.ST_SIZE])
anaconda-patches@lists.fedorahosted.org