<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/libvirt.git/tests/lxcxml2xmloutdata, branch master</title>
<subtitle>libvirt.org: git/libvirt.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libvirt.git/'/>
<entry>
<title>Allow root directory in filesystem source dir schema</title>
<updated>2013-11-07T17:43:15+00:00</updated>
<author>
<name>Ján Tomko</name>
<email>jtomko@redhat.com</email>
</author>
<published>2013-11-07T17:14:32+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libvirt.git/commit/?id=eab51940bd9d3b5f8b73f52c50ba6d00648f0909'/>
<id>eab51940bd9d3b5f8b73f52c50ba6d00648f0909</id>
<content type='text'>
Use absDirPath instead of absFilePath.

https://bugzilla.redhat.com/show_bug.cgi?id=1028107
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Use absDirPath instead of absFilePath.

https://bugzilla.redhat.com/show_bug.cgi?id=1028107
</pre>
</div>
</content>
</entry>
<entry>
<title>LXC: Fix handling of RAM filesystem size units</title>
<updated>2013-10-09T15:44:45+00:00</updated>
<author>
<name>Ján Tomko</name>
<email>jtomko@redhat.com</email>
</author>
<published>2013-10-09T12:17:13+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/libvirt.git/commit/?id=3f029fb5319b9dc9cc2fbf8d1ba4505ee9e4b1e3'/>
<id>3f029fb5319b9dc9cc2fbf8d1ba4505ee9e4b1e3</id>
<content type='text'>
Since 76b644c when the support for RAM filesystems was introduced,
libvirt accepted the following XML:
&lt;source usage='1024' unit='KiB'/&gt;

This was parsed correctly and internally stored in bytes, but it
was formatted as (with an extra 's'):
&lt;source usage='1024' units='KiB'/&gt;
When read again, this was treated as if the units were missing,
meaning libvirt was unable to parse its own XML correctly.

The usage attribute was documented as being in KiB, but it was not
scaled if the unit was missing. Transient domains still worked,
because this was balanced by an extra 'k' in the mount options.

This patch:
Changes the parser to use 'units' instead of 'unit', as the latter
was never documented (fixing persistent domains) and some programs
(libvirt-glib, libvirt-sandbox) already parse the 'units' attribute.

Removes the extra 'k' from the tmpfs mount options, which is needed
because now we parse our own XML correctly.

Changes the default input unit to KiB to match documentation, fixing:
https://bugzilla.redhat.com/show_bug.cgi?id=1015689
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Since 76b644c when the support for RAM filesystems was introduced,
libvirt accepted the following XML:
&lt;source usage='1024' unit='KiB'/&gt;

This was parsed correctly and internally stored in bytes, but it
was formatted as (with an extra 's'):
&lt;source usage='1024' units='KiB'/&gt;
When read again, this was treated as if the units were missing,
meaning libvirt was unable to parse its own XML correctly.

The usage attribute was documented as being in KiB, but it was not
scaled if the unit was missing. Transient domains still worked,
because this was balanced by an extra 'k' in the mount options.

This patch:
Changes the parser to use 'units' instead of 'unit', as the latter
was never documented (fixing persistent domains) and some programs
(libvirt-glib, libvirt-sandbox) already parse the 'units' attribute.

Removes the extra 'k' from the tmpfs mount options, which is needed
because now we parse our own XML correctly.

Changes the default input unit to KiB to match documentation, fixing:
https://bugzilla.redhat.com/show_bug.cgi?id=1015689
</pre>
</div>
</content>
</entry>
</feed>
