From b05d2b679e2579341e75916c2faef9627246a468 Mon Sep 17 00:00:00 2001 From: David Lehman Date: Fri, 21 Feb 2014 16:25:04 -0600 Subject: [PATCH 02/13] Update targetSize to reflect actual size after a device is created. --- blivet/devices.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/blivet/devices.py b/blivet/devices.py index 77602f1..3d9c216 100644 --- a/blivet/devices.py +++ b/blivet/devices.py @@ -873,6 +873,11 @@ class StorageDevice(Device): self.updateSysfsPath() udev.udev_settle() + # make sure that targetSize is updated to reflect the actual size + if self.resizable: + self._partedDevice = None + self._targetSize = self.currentSize + # # destroy # -- 1.9.0