[RFC PATCH 3/6] docs: added rng schema and formatdomain for NFS

Han Han hhan at redhat.com
Fri Dec 11 04:36:48 UTC 2020


On Fri, Dec 11, 2020 at 4:00 AM Ryan Gahagan <rgahagan at cs.utexas.edu> wrote:

> Signed-off-by: Ryan Gahagan <rgahagan at cs.utexas.edu>
> ---
>  docs/formatdomain.rst         |  1 +
>  docs/schemas/domaincommon.rng | 38 +++++++++++++++++++++++++++++++++++
>  2 files changed, 39 insertions(+)
>
> diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst
> index 512939679b..40a1a3c1e2 100644
> --- a/docs/formatdomain.rst
> +++ b/docs/formatdomain.rst
> @@ -2601,6 +2601,7 @@ paravirtualized driver is specified via the ``disk``
> element.
>        sheepdog one of the sheepdog servers (default is localhost:7000)
> zero or one                                                  7000
>        gluster  a server running glusterd daemon
> one or more ( :since:`Since 2.1.0` ), just one prior to that 24007
>        vxhs     a server running Veritas HyperScale daemon
> only one                                                     9999
> +      nfs      a server running Network File System
> only one                                                     2049
>
Mention the feature introduced version here.

>        ======== =======================================================
> ============================================================
> ================
>
And provide the nfs disk examples in the chapter
hard-drives-floppy-disks-cdroms of formatdomain

>
>        gluster supports "tcp", "rdma", "unix" as valid values for the
> transport
> diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng
> index 795b654feb..6b321b1ca3 100644
> --- a/docs/schemas/domaincommon.rng
> +++ b/docs/schemas/domaincommon.rng
> @@ -1774,6 +1774,27 @@
>      </element>
>    </define>
>
> +  <define name="diskSourceNetworkNFS">
> +    <element name="nfs">
> +      <optional>
> +        <attribute name="user">
> +          <choice>
> +            <ref name="unsignedInt"/>
> +            <ref name="genericName"/>
> +          </choice>
> +        </attribute>
> +      </optional>
> +      <optional>
> +        <attribute name="group">
> +          <choice>
> +            <ref name="unsignedInt"/>
> +            <ref name="genericName"/>
> +          </choice>
> +        </attribute>
> +      </optional>
> +    </element>
> +  </define>
> +
>    <define name="diskSourceNetworkProtocolRBD">
>      <element name="source">
>        <interleave>
> @@ -2039,6 +2060,22 @@
>      </element>
>    </define>
>
> +  <define name="diskSourceNetworkProtocolNFS">
> +    <element name="source">
> +      <interleave>
> +        <attribute name="protocol">
> +          <choice>
> +            <value>nfs</value>
> +          </choice>
> +        </attribute>
> +        <attribute name="name"/>
> +        <ref name="diskSourceCommon"/>
> +        <ref name="diskSourceNetworkHost"/>
> +        <ref name="diskSourceNetworkNFS"/>
> +      </interleave>
> +    </element>
> +  </define>
> +
>    <define name="diskSourceNetwork">
>      <attribute name="type">
>        <value>network</value>
> @@ -2053,6 +2090,7 @@
>        <ref name="diskSourceNetworkProtocolFTPS"/>
>        <ref name="diskSourceNetworkProtocolSimple"/>
>        <ref name="diskSourceNetworkProtocolVxHS"/>
> +      <ref name="diskSourceNetworkProtocolNFS"/>
>      </choice>
>    </define>
>
> --
> 2.29.0
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201211/8076da22/attachment-0001.htm>


More information about the libvir-list mailing list