[master 3/5] Snapshot format exists upon snapshot creation.
dwlehman
installerbot-noreply at redhat.com
Thu Jun 25 15:26:43 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 c524a11..6ad9408 100644
--- a/blivet/devices/lvm.py
+++ b/blivet/devices/lvm.py
@@ -1271,6 +1271,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/d27159153da91696f7187716e7660760e5f2c96f
More information about the anaconda-patches
mailing list