1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-23 22:55:23 +00:00

volume creation parameters changed to support latest version of qemu compatibility

This commit is contained in:
catborise 2018-07-31 16:26:28 +03:00
parent 07ae335d79
commit 88f187c94f
2 changed files with 12 additions and 0 deletions

View file

@ -131,6 +131,10 @@ class wvmCreate(wvmConnect):
<mode>0644</mode>
<label>virt_image_t</label>
</permissions>
<compat>1.1</compat>
<features>
<lazy_refcounts/>
</features>
</target>
</volume>""" % (clone, format)
stg.createXMLFrom(xml, vol, metadata)

View file

@ -227,6 +227,10 @@ class wvmStorage(wvmConnect):
<mode>0644</mode>
<label>virt_image_t</label>
</permissions>
<compat>1.1</compat>
<features>
<lazy_refcounts/>
</features>
</target>
</volume>""" % (name, size, alloc, vol_fmt)
self._createXML(xml, metadata)
@ -251,6 +255,10 @@ class wvmStorage(wvmConnect):
<mode>0644</mode>
<label>virt_image_t</label>
</permissions>
<compat>1.1</compat>
<features>
<lazy_refcounts/>
</features>
</target>
</volume>""" % (target_file, vol_fmt)
self._createXMLFrom(xml, vol, metadata)