Change in vdsm[master]: Garbage volumes are not part of an image

alitke at redhat.com alitke at redhat.com
Thu Aug 13 20:42:08 UTC 2015


Adam Litke has uploaded a new change for review.

Change subject: Garbage volumes are not part of an image
......................................................................

Garbage volumes are not part of an image

Change-Id: I8776a4b48cc8d16f420426fb28d4696b6f2bf357
Signed-off-by: Adam Litke <alitke at redhat.com>
---
M vdsm/storage/blockVolume.py
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/30/44830/1

diff --git a/vdsm/storage/blockVolume.py b/vdsm/storage/blockVolume.py
index 9baa3d2..af11725 100644
--- a/vdsm/storage/blockVolume.py
+++ b/vdsm/storage/blockVolume.py
@@ -334,7 +334,7 @@
         (template)
         """
         lvs = lvm.lvsByTag(sdUUID, "%s%s" % (TAG_PREFIX_IMAGE, imgUUID))
-        return [lv.name for lv in lvs]
+        return [lv.name for lv in lvs if TAG_VOL_GARBAGE not in lv.tags]
 
     @logskip("ResourceManager")
     def llPrepare(self, rw=False, setrw=False):


-- 
To view, visit https://gerrit.ovirt.org/44830
To unsubscribe, visit https://gerrit.ovirt.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8776a4b48cc8d16f420426fb28d4696b6f2bf357
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Adam Litke <alitke at redhat.com>


More information about the vdsm-patches mailing list