[master 3/5] Snapshot format exists upon snapshot creation.
dwlehman
installerbot-noreply at redhat.com
Wed Jun 24 17:44:25 UTC 2015
From: David Lehman <dlehman at redhat.com>
Related: rhbz#1113207
---
blivet/devices/lvm.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py
index 87252e2..aac570f 100644
--- a/blivet/devices/lvm.py
+++ b/blivet/devices/lvm.py
@@ -1265,6 +1265,10 @@ def _create(self):
blockdev.lvm.thsnapshotcreate(self.vg.name, self._name, self.origin.lvname,
pool_name=pool_name)
+ def _postCreate(self):
+ super(LVMThinSnapShotDevice, self)._postCreate()
+ self.format.exists = True
+
def dependsOn(self, dep):
# once a thin snapshot exists it no longer depends on its origin
return ((self.origin == dep and not self.exists) or
--
To view this commit on github, visit https://github.com/rhinstaller/blivet/commit/f9dd3a36c466208dc55578ee382fe6f465526240
More information about the anaconda-patches
mailing list