]> xenbits.xensource.com Git - libvirt.git/commit
xml: share 'unit' in RNG
authorEric Blake <eblake@redhat.com>
Wed, 29 Feb 2012 04:16:28 +0000 (21:16 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 8 Mar 2012 01:24:43 +0000 (18:24 -0700)
commitcb7583e161570a8ae5dfdf83635f797edc7e77c2
tree347657597e880014ccddcd4478a2a5752f6b9b38
parent0d90823e87432b3cc57f00918359535f53d55d95
xml: share 'unit' in RNG

The code supported unit='E' for "exabyte", but the RNG did not;
conversely, the RNG supported "z" and "y" but the code did not
(I'm jealous if you have that much storage, particularly since
it won't fit in 64-bit off_t).  Also, the code supported
<allocation unit='...'>, but not the RNG.

In an effort to make 'unit' more worthwhile in future patches,
it's easier to share it between files.

In making this factorization, note that absFilePath is more
permissive than 'path', so storage pools and storage volumes
will now validate with a wider set of file names than before.
I don't think this should be a problem in practice.

* docs/schemas/storagepool.rng: Include basic types, rather than
repeating things here.
* docs/schemas/storagevol.rng: Likewise.
* docs/schemas/basictypes.rng: Add 'unsignedLong', 'unit', and fix
to match storage code.
docs/schemas/basictypes.rng
docs/schemas/storagepool.rng
docs/schemas/storagevol.rng