[PATCH 4/4] Preparation for lv resize is a subset of that for lv destroy. (#1027682)
David Lehman
dlehman at redhat.com
Tue Nov 12 17:44:29 UTC 2013
---
blivet/devices.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/blivet/devices.py b/blivet/devices.py
index 9564b05..39d96c1 100644
--- a/blivet/devices.py
+++ b/blivet/devices.py
@@ -2737,7 +2737,8 @@ class LVMLogicalVolumeDevice(DMDevice):
def resize(self):
log_method_call(self, self.name, status=self.status)
- self._preDestroy()
+ if not self.exists:
+ raise DeviceError("device has not been created", self.name)
# Setup VG parents (in case they are dmraid partitions for example)
self.vg.setupParents(orig=True)
--
1.8.1.4
More information about the anaconda-patches
mailing list