libvirt/docs/schemas
Ján Tomko 3f029fb531 LXC: Fix handling of RAM filesystem size units
Since 76b644c when the support for RAM filesystems was introduced,
libvirt accepted the following XML:
<source usage='1024' unit='KiB'/>

This was parsed correctly and internally stored in bytes, but it
was formatted as (with an extra 's'):
<source usage='1024' units='KiB'/>
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
2013-10-09 17:44:45 +02:00
..
basictypes.rng qemu: Allow the disk wwn to have "0x" prefix 2013-04-17 23:05:56 +08:00
capability.rng qemu: Implement CPUs check against machine type's cpu-max 2013-07-01 14:30:42 +02:00
domain.rng
domaincommon.rng LXC: Fix handling of RAM filesystem size units 2013-10-09 17:44:45 +02:00
domainsnapshot.rng Add support for storage format in FS <driver> 2013-05-13 13:15:19 +01:00
interface.rng
Makefile.am conf: add features to volume target XML 2013-06-21 13:25:30 +02:00
network.rng Add forwarder attribute to <dns/> element 2013-09-17 17:47:33 -06:00
networkcommon.rng Add '<nat>' element to '<forward>' network schemas 2013-09-05 13:45:49 +02:00
nodedev.rng nodedev: Resolve Relax-NG validity error 2013-10-04 07:52:45 -04:00
nwfilter.rng Correct invalid RNG schemas 2013-03-21 17:24:08 +01:00
secret.rng secret: add iscsi to possible usage types 2013-03-22 12:10:23 +08:00
storageencryption.rng
storagefilefeatures.rng conf: add features to volume target XML 2013-06-21 13:25:30 +02:00
storagepool.rng Make logical pools independent on target path 2013-07-16 12:16:37 +02:00
storagevol.rng conf: add features to volume target XML 2013-06-21 13:25:30 +02:00