From 44f0f76890c6b53a893ffc370836794d74317c34 Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Wed, 5 Feb 2020 18:00:23 +0100 Subject: [PATCH] docs: Document the new sub-element of disk's MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We are going to add support for specifying offset and size attributes which will allow controling where the image and where the guest data itself starts in the source of the disk. This will be represented by a element filled with either a for the offset of the image format data. Add the XML documentation and RNG schema. Signed-off-by: Peter Krempa Reviewed-by: Ján Tomko --- docs/formatdomain.html.in | 13 +++++++++++++ docs/schemas/domaincommon.rng | 19 +++++++++++++++++++ 2 files changed, 32 insertions(+) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index d29c20e6ed..f4af65f13f 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2878,6 +2878,9 @@ <disk type='block' device='lun'> <driver name='qemu' type='raw'/> <source dev='/dev/sda'> + <slices> + <slice type='storage' offset='12345' size='123'/> + </slices> <reservations managed='no'> <source type='unix' path='/path/to/qemu-pr-helper' mode='client'/> </reservations> @@ -3360,6 +3363,16 @@ controller. Since 6.0.0 +
slices
+
The slices element using its slice + sub-elements allows configuring offset and size of either the + location of the image format (slice type='storage') + inside the storage source or the guest data inside the image format + container (future expansion). + + The offset and size values are in bytes. + Since 6.1.0 +

diff --git a/docs/schemas/domaincommon.rng b/docs/schemas/domaincommon.rng index 29b6b95357..4be751461d 100644 --- a/docs/schemas/domaincommon.rng +++ b/docs/schemas/domaincommon.rng @@ -1596,12 +1596,31 @@ + + + + + + + + + + + + + + storage + + + + + -- GitLab