Re: [PATCH 07/14] docs: schemas: Split up definitions for NBD and gluster

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Apr 26, 2017 at 19:52:37 +0200, Peter Krempa wrote:
> NBD does not mandate a "filename". Gluster can have more servers. Split
> them so that we can tighten the schema.
> ---
>  docs/schemas/domaincommon.rng | 43 +++++++++++++++++++++++++++----------------
>  1 file changed, 27 insertions(+), 16 deletions(-)
> 
> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index d5e6bdb6b..0c51f5151 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -1585,31 +1585,42 @@
>      </element>
>    </define>
> 
> -  <define name="diskSourceNetworkProtocolGeneric">
> +  <define name="diskSourceNetworkProtocolNBD">
>      <element name="source">
> -      <interleave>
> -        <attribute name="protocol">
> -          <choice>
> -            <value>nbd</value>
> -            <value>gluster</value>
> -          </choice>
> -        </attribute>
> -        <optional>
> -          <attribute name="name"/>
> -        </optional>
> -        <zeroOrMore>
> -          <ref name="diskSourceNetworkHost"/>
> -        </zeroOrMore>
> -      </interleave>
> +      <attribute name="protocol">
> +        <choice>
> +          <value>nbd</value>
> +        </choice>
> +      </attribute>
> +      <optional>
> +        <attribute name="name"/>
> +      </optional>
> +      <ref name="diskSourceNetworkHost"/>
> +    </element>
> +  </define>
> +
> +  <define name="diskSourceNetworkProtocolGluster">
> +    <element name="source">
> +      <attribute name="protocol">
> +        <choice>
> +          <value>gluster</value>
> +        </choice>
> +      </attribute>
> +      <attribute name="name"/>
> +      <oneOrMore>
> +        <ref name="diskSourceNetworkHost"/>
> +      </oneOrMore>
>      </element>
>    </define>
> 
> +

This looks like an unintended new line.

>    <define name="diskSourceNetwork">
>      <attribute name="type">
>        <value>network</value>
>      </attribute>
>      <choice>
> -      <ref name="diskSourceNetworkProtocolGeneric"/>
> +      <ref name="diskSourceNetworkProtocolNBD"/>
> +      <ref name="diskSourceNetworkProtocolGluster"/>
>        <ref name="diskSourceNetworkProtocolRBD"/>
>        <ref name="diskSourceNetworkProtocolHTTP"/>
>        <ref name="diskSourceNetworkProtocolSimple"/>

Reviewed-by: Jiri Denemark <jdenemar@xxxxxxxxxx>

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux