]> xenbits.xensource.com Git - libvirt.git/commit
storage: match RNG to supported driver types
authorEric Blake <eblake@redhat.com>
Fri, 28 Sep 2012 18:57:54 +0000 (12:57 -0600)
committerEric Blake <eblake@redhat.com>
Fri, 19 Oct 2012 23:35:09 +0000 (17:35 -0600)
commite2c41e486018ee74f6a75c1f71762234e3f4efd5
tree6200f4d5df1b4eba6802d38c040eb95c214e100d
parent41e0edaf84a9ecdce0c4868656ff899989bb51fa
storage: match RNG to supported driver types

At one point, the code passed through arbitrary strings for file
formats, which supposedly lets qemu handle a new file type even
before libvirt has been taught to handle it.  However, to properly
label files, libvirt has to learn the file type anyway, so we
might as well make our life easier by only accepting file types
that we are prepared to handle.  This patch lets the RNG validation
ensure that only known strings are let through.

* docs/schemas/domaincommon.rng (driverFormat): Limit to list of
supported strings.
* docs/schemas/domainsnapshot.rng (driver): Likewise.
docs/schemas/domaincommon.rng
docs/schemas/domainsnapshot.rng