-## Copyright (C) 2005-2011, 2013 Red Hat, Inc.
+## Copyright (C) 2005-2011, 2013-2014 Red Hat, Inc.
##
## This library is free software; you can redistribute it and/or
## modify it under the terms of the GNU Lesser General Public
nodedev.rng \
nwfilter.rng \
secret.rng \
- storageencryption.rng \
- storagefilefeatures.rng \
+ storagecommon.rng \
storagepool.rng \
storagevol.rng
<grammar xmlns="http://relaxng.org/ns/structure/1.0" datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
<!-- domain-related definitions used in multiple grammars -->
<include href='basictypes.rng'/>
- <include href='storageencryption.rng'/>
+ <include href='storagecommon.rng'/>
<include href='networkcommon.rng'/>
<!--
--- /dev/null
+<?xml version="1.0"?>
+<!-- A Relax NG schema for common libvirt XML storage elements -->
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+ <!-- This schema is not designed for standalone use; another file
+ must include both this file and basictypes.rng -->
+
+ <define name='encryption'>
+ <element name='encryption'>
+ <attribute name='format'>
+ <choice>
+ <value>default</value>
+ <value>qcow</value>
+ </choice>
+ </attribute>
+ <zeroOrMore>
+ <ref name='secret'/>
+ </zeroOrMore>
+ </element>
+ </define>
+
+ <define name='secret'>
+ <element name='secret'>
+ <attribute name='type'>
+ <choice>
+ <value>passphrase</value>
+ </choice>
+ </attribute>
+ <attribute name='uuid'>
+ <ref name="UUID"/>
+ </attribute>
+ </element>
+ </define>
+
+ <define name='compat'>
+ <element name='compat'>
+ <data type='string'>
+ <param name='pattern'>[0-9]+\.[0-9]+</param>
+ </data>
+ </element>
+ </define>
+ <define name='fileFormatFeatures'>
+ <element name='features'>
+ <interleave>
+ <optional>
+ <element name='lazy_refcounts'>
+ <empty/>
+ </element>
+ </optional>
+ </interleave>
+ </element>
+ </define>
+
+</grammar>
+++ /dev/null
-<?xml version="1.0"?>
-<!-- A Relax NG schema for the libvirt volume encryption XML format -->
-<grammar xmlns="http://relaxng.org/ns/structure/1.0"
- datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
-
- <define name='encryption'>
- <element name='encryption'>
- <attribute name='format'>
- <choice>
- <value>default</value>
- <value>qcow</value>
- </choice>
- </attribute>
- <zeroOrMore>
- <ref name='secret'/>
- </zeroOrMore>
- </element>
- </define>
-
- <define name='secret'>
- <element name='secret'>
- <attribute name='type'>
- <choice>
- <value>passphrase</value>
- </choice>
- </attribute>
- <attribute name='uuid'>
- <ref name="UUID"/>
- </attribute>
- </element>
- </define>
-
-</grammar>
+++ /dev/null
-<?xml version="1.0"?>
-<!-- A Relax NG schema for the libvirt volume features XML format -->
-<grammar xmlns="http://relaxng.org/ns/structure/1.0"
- datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
-
- <define name='compat'>
- <element name='compat'>
- <data type='string'>
- <param name='pattern'>[0-9]+\.[0-9]+</param>
- </data>
- </element>
- </define>
- <define name='fileFormatFeatures'>
- <element name='features'>
- <interleave>
- <optional>
- <element name='lazy_refcounts'>
- <empty/>
- </element>
- </optional>
- </interleave>
- </element>
- </define>
-</grammar>
<ref name='vol'/>
</start>
- <include href='storageencryption.rng'/>
- <include href='storagefilefeatures.rng'/>
+ <include href='storagecommon.rng'/>
<define name='vol'>
%{_datadir}/libvirt/schemas/nodedev.rng
%{_datadir}/libvirt/schemas/nwfilter.rng
%{_datadir}/libvirt/schemas/secret.rng
-%{_datadir}/libvirt/schemas/storageencryption.rng
-%{_datadir}/libvirt/schemas/storagefilefeatures.rng
+%{_datadir}/libvirt/schemas/storagecommon.rng
%{_datadir}/libvirt/schemas/storagepool.rng
%{_datadir}/libvirt/schemas/storagevol.rng
%{mingw32_datadir}/libvirt/schemas/nodedev.rng
%{mingw32_datadir}/libvirt/schemas/nwfilter.rng
%{mingw32_datadir}/libvirt/schemas/secret.rng
-%{mingw32_datadir}/libvirt/schemas/storageencryption.rng
-%{mingw32_datadir}/libvirt/schemas/storagefilefeatures.rng
+%{mingw32_datadir}/libvirt/schemas/storagecommon.rng
%{mingw32_datadir}/libvirt/schemas/storagepool.rng
%{mingw32_datadir}/libvirt/schemas/storagevol.rng
%dir %{mingw32_datadir}/libvirt/api/
%{mingw64_datadir}/libvirt/schemas/nodedev.rng
%{mingw64_datadir}/libvirt/schemas/nwfilter.rng
%{mingw64_datadir}/libvirt/schemas/secret.rng
-%{mingw64_datadir}/libvirt/schemas/storageencryption.rng
-%{mingw64_datadir}/libvirt/schemas/storagefilefeatures.rng
+%{mingw64_datadir}/libvirt/schemas/storagecommon.rng
%{mingw64_datadir}/libvirt/schemas/storagepool.rng
%{mingw64_datadir}/libvirt/schemas/storagevol.rng
%dir %{mingw64_datadir}/libvirt/api/