Maor Lipchuk has uploaded a new change for review.
Change subject: volume: Add qcow2_compat on create
......................................................................
volume: Add qcow2_compat on create
Pass qcow2 compat on create.
Change-Id: I8655be6da0b4cbd1c286b0c40288681a991aff19
Signed-off-by: Maor Lipchuk <mlipchuk(a)redhat.com>
---
M vdsm/storage/volume.py
1 file changed, 3 insertions(+), 1 deletion(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/75/64375/1
diff --git a/vdsm/storage/volume.py b/vdsm/storage/volume.py
index 1339d95..8826ab9 100644
--- a/vdsm/storage/volume.py
+++ b/vdsm/storage/volume.py
@@ -690,9 +690,11 @@
self.log.debug('cloning volume %s to %s', self.volumePath,
dstPath)
parent = getBackingVolumePath(self.imgUUID, self.volUUID)
+ domain = sdCache.produce(self.sdUUID)
qemuimg.create(dstPath, backing=parent,
format=sc.fmt2str(volFormat),
- backingFormat=sc.fmt2str(self.getFormat()))
+ backingFormat=sc.fmt2str(self.getFormat()),
+ qcow2_compat=domain.qcow2_compat())
self.teardown(self.sdUUID, self.volUUID)
except Exception as e:
self.log.exception('cannot clone image %s volume %s to %s',
--
To view, visit
https://gerrit.ovirt.org/64375
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8655be6da0b4cbd1c286b0c40288681a991aff19
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Maor Lipchuk <mlipchuk(a)redhat.com>