Skip to content

Commit

Permalink
Snapshot format exists upon snapshot creation.
Browse files Browse the repository at this point in the history
Related: rhbz#1113207
  • Loading branch information
dwlehman committed Jun 24, 2015
1 parent c50bbeb commit f9dd3a3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/devices/lvm.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f9dd3a3

Please sign in to comment.