[master 2/4] Snapshot format exists upon snapshot creation.

dwlehman installerbot-noreply at redhat.com
Mon Jun 29 19:06:04 UTC 2015


From: David Lehman <dlehman at redhat.com>

Related: rhbz#1113207
---
 blivet/devices/lvm.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py
index 400dd80..6617583 100644
--- a/blivet/devices/lvm.py
+++ b/blivet/devices/lvm.py
@@ -1599,6 +1599,11 @@ 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()
+        # A snapshot's format exists as soon as the snapshot has been created.
+        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/19b6df3d7fa1b49b99047d24621a806d1a044222


More information about the anaconda-patches mailing list