[PATCH] Prevent duplicate snapshot accounting.

David Lehman dlehman at redhat.com
Fri Sep 5 16:21:52 UTC 2014


Related: rhbz#1043916
---
 storage/devicetree.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/storage/devicetree.py b/storage/devicetree.py
index 4045cdf..83673cc 100644
--- a/storage/devicetree.py
+++ b/storage/devicetree.py
@@ -1593,6 +1593,9 @@ class DeviceTree(object):
                                                    vg_name, origin_name))
                     continue
 
+                if lv_name in origin.snapshots:
+                    continue
+
                 log.debug("adding %dMB to %s snapshot total"
                             % (lv_sizes[index], origin.name))
                 origin.snapshotSpace += lv_sizes[index]
-- 
1.9.3



More information about the anaconda-patches mailing list