libvirt/docs/schemas
Eric Blake db7d7c0ee8 conf: restrict external snapshots to backing store formats
Domain snapshots should only permit an external snapshot into
a storage format that permits a backing chain, since the new
snapshot file necessarily must be backed by the existing file.
The C code for the qemu driver is a little bit stricter in
currently enforcing only qcow2 or qed, but at the XML parser
level, including virt-xml-validate, it is fairly easy to
enforce that a user can't request a 'raw' external snapshot.

* docs/schemas/storagecommon.rng (storageFormat): Split out...
(storageFormatBacking): ...new sublist.
* docs/schemas/domainsnapshot.rng (disksnapshotdriver): Use new
type.
* src/util/virstoragefile.h (virStorageFileFormat): Rearrange for
easier code management.
* src/util/virstoragefile.c (virStorageFileFormat, fileTypeInfo):
Likewise.
* src/conf/snapshot_conf.c (virDomainSnapshotDiskDefParseXML): Use
new marker to limit selection of formats.

Signed-off-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
2014-04-15 13:57:15 +02:00
..
basictypes.rng conf: introduce generic ISA address 2013-12-12 21:11:21 -07:00
capability.rng qemu: export disk snapshot support in capabilities 2014-03-26 13:41:25 +01:00
domain.rng snapshot: update rng to support full domain in xml 2011-09-03 08:12:13 -06:00
domaincommon.rng conf: move storage formats to common RNG file 2014-04-15 13:15:11 +02:00
domainsnapshot.rng conf: restrict external snapshots to backing store formats 2014-04-15 13:57:15 +02:00
interface.rng xml: Clean up schemas to use shared data types instead of local 2012-03-08 15:31:54 +01:00
Makefile.am conf: create common storage RNG grammar file 2014-04-14 07:07:01 -06: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
storagecommon.rng conf: restrict external snapshots to backing store formats 2014-04-15 13:57:15 +02:00
storagepool.rng storage: document gluster pool 2013-11-25 11:03:19 -07:00
storagevol.rng conf: move storage formats to common RNG file 2014-04-15 13:15:11 +02:00