Arik Hadas has uploaded a new change for review.

Change subject: proposal for bz 1282239
......................................................................

proposal for bz 1282239

Change-Id: Idace47c18673e250f3f612a20a15ae5c62565082
Signed-off-by: Arik Hadas <aha...@redhat.com>
---
M vdsm/storage/image.py
1 file changed, 3 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/44/48844/1

diff --git a/vdsm/storage/image.py b/vdsm/storage/image.py
index 956c805..c12cea8 100644
--- a/vdsm/storage/image.py
+++ b/vdsm/storage/image.py
@@ -236,6 +236,9 @@
 
         # Build up the sorted parent -> child chain
         while not srcVol.isShared():
+            if srcVol.getFormat() == volume.COW_FORMAT and \
+                volume.RAW_FORMAT == 
qemuimg.info(srcVol.getVolumePath)['format']:
+                srcVol.format = volume.RAW_FORMAT
             chain.insert(0, srcVol)
             seen.add(srcVol.volUUID)
 


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

Gerrit-MessageType: newchange
Gerrit-Change-Id: Idace47c18673e250f3f612a20a15ae5c62565082
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Arik Hadas <aha...@redhat.com>
_______________________________________________
vdsm-patches mailing list
vdsm-patches@lists.fedorahosted.org
https://lists.fedorahosted.org/mailman/listinfo/vdsm-patches

Reply via email to