From: Nikolai Barybin Date: Wed, 20 Nov 2024 15:48:38 +0000 (+0300) Subject: Add schema and documentation for 'dataStore' sub-element of disk source X-Git-Tag: v10.10.0-rc1~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28d88e9fc31948c70ebc8dd8e4d38b951fd52f6d;p=thirdparty%2Flibvirt.git Add schema and documentation for 'dataStore' sub-element of disk source Signed-off-by: Nikolai Barybin Signed-off-by: Peter Krempa Reviewed-by: Peter Krempa --- diff --git a/docs/formatdomain.rst b/docs/formatdomain.rst index 18b60fe260..937a772ef7 100644 --- a/docs/formatdomain.rst +++ b/docs/formatdomain.rst @@ -2727,6 +2727,25 @@ paravirtualized driver is specified via the ``disk`` element. + + + + + + + + + + + + + + + + + + + ... @@ -3097,6 +3116,28 @@ paravirtualized driver is specified via the ``disk`` element. attribute. :since:`Since 9.8.0` + ``dataStore`` + This element describes external data store, which is storage holding the + actual data blocks of the given storage image. In such case the disk source + image holds only the metadata. This feature is currently supported only + by the ``qcow2`` format. :since:`Since 10.10.0` + + The following attribute is supported in ``dataStore``: + + ``type`` + The ``type`` attribute represents the type of storage used by the data store, + see disk type attribute above for more details and possible values. + + Moreover, ``dataStore`` supports the following sub-elements: + + ``format`` + The ``format`` element contains ``type`` attribute which specifies the + internal format of the data store. Only ``raw`` value is supported. + + ``source`` + This element has the same structure as the ``source`` element in ``disk``. + It specifies which file, device, or network location contains the data of + the described data store. 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/src/conf/schemas/domaincommon.rng b/src/conf/schemas/domaincommon.rng index bfd0044805..7415c37b65 100644 --- a/src/conf/schemas/domaincommon.rng +++ b/src/conf/schemas/domaincommon.rng @@ -1857,6 +1857,15 @@ + + + + + + + + +