Re: [libvirt] patch: allow disk cache mode to be specified in a domain's xml definition.

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

 



"Daniel P. Berrange" <berrange@xxxxxxxxxx> wrote:
> Here's the patch including RNG schema update
>
> Daniel
>
> diff -r 2ff2ff7734c2 docs/schemas/domain.rng
> --- a/docs/schemas/domain.rng	Fri Jan 30 11:01:52 2009 +0000
> +++ b/docs/schemas/domain.rng	Fri Jan 30 14:47:11 2009 +0000
> @@ -426,16 +426,43 @@
>      -->
>    <define name='driver'>
>      <element name='driver'>
> -      <attribute name='name'>
> +      <choice>
> +	<group>
> +	  <ref name='driverFormat'/>
> +	  <optional>
> +	    <ref name='driverCache'/>
> +	  </optional>
> +	</group>
> +	<group>
> +	  <optional>
> +	    <ref name='driverFormat'/>
> +	  </optional>
> +	  <ref name='driverCache'/>
> +	</group>
> +      </choice>
> +      <empty/>
> +    </element>
> +  </define>
> +
> +  <define name='driverFormat'>
> +    <attribute name='name'>
> +      <ref name='genericName'/>
> +    </attribute>
> +    <optional>
> +      <attribute name='type'>
>  	<ref name='genericName'/>
>        </attribute>
> -      <optional>
> -        <attribute name='type'>
> -	  <ref name='genericName'/>
> -	</attribute>
> -      </optional>
> -      <empty/>
> -    </element>
> +    </optional>
> +  </define>
> +
> +  <define name='driverCache'>
> +    <attribute name='cache'>
> +      <choice>
> +	<value>none</value>
> +	<value>writeback</value>
> +	<value>writethrough</value>
> +      </choice>
> +    </attribute>
>    </define>
>
>    <define name='filesystem'>

Yep.
ACK.

--
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]