From 943871f971d680f72726a9d6e9330eec264f6588 Mon Sep 17 00:00:00 2001 From: Ryan Gahagan Date: Wed, 6 Jan 2021 15:32:28 -0600 Subject: [PATCH] docs: add rng schema and formatdomain docs for NFS Add documentation and schema for the new disk transport protocol. Signed-off-by: Ryan Gahagan Reviewed-by: Peter Krempa --- docs/formatdomain.rst | 24 ++++++++++++++++++++++-- docs/schemas/domaincommon.rng | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+), 2 deletions(-) diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 1189795974..4402c52461 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2370,6 +2370,14 @@ paravirtualized driver is specified via the ``disk`` element. + + + + + + + + @@ -2491,7 +2499,7 @@ paravirtualized driver is specified via the ``disk`` element. ``network`` The ``protocol`` attribute specifies the protocol to access to the requested image. Possible values are "nbd", "iscsi", "rbd", "sheepdog", - "gluster", "vxhs", "http", "https", "ftp", ftps", or "tftp". + "gluster", "vxhs", "nfs", "http", "https", "ftp", ftps", or "tftp". For any ``protocol`` other than ``nbd`` an additional attribute ``name`` is mandatory to specify which volume/image will be used. @@ -2601,12 +2609,15 @@ 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 ( :since:`Since 7.0.0` ) must be omitted ======== ======================================================= ============================================================ ================ gluster supports "tcp", "rdma", "unix" as valid values for the transport attribute. nbd supports "tcp" and "unix". Others only support "tcp". If nothing is specified, "tcp" is assumed. If the transport is "unix", the - socket attribute specifies the path to an AF_UNIX socket. + socket attribute specifies the path to an AF_UNIX socket. nfs only + supports the use of a "tcp" transport, and does not support using a + port at all so it must be omitted. ``snapshot`` The ``name`` attribute of ``snapshot`` element can optionally specify an @@ -2683,6 +2694,15 @@ paravirtualized driver is specified via the ``disk`` element. ``timeout`` Specifies the connection timeout for protocols which support it. Note that '0' is considered as if the value is not provided. :since:`Since 6.2.0` + ``identity`` + When using an ``nfs`` protocol, this is used to provide information on the + configuration of the user and group. The element has two attributes, + ``user`` and ``group``. The user can provide these elements as user or + group strings, or as user and group ID numbers directly if the string + is formatted using a "+" at the beginning of the ID number. If either + of these attributes is omitted, then that field is assumed to be the + default value for the current system. If both ``user`` and ``group`` + are intended to be default, then the entire element may be omitted. For a "file" or "volume" disk type which represents a cdrom or floppy (the ``device`` attribute), it is possible to define policy what to do with the diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 701db7e7d2..3480edd946 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -1764,6 +1764,21 @@ + + + + + + + + + + + + + + + @@ -2029,6 +2044,22 @@ + + + + + + nfs + + + + + + + + + + network @@ -2043,6 +2074,7 @@ +