Re: [PATCH] "docs: formatsnapshot: add docs for snapshotDeleteInProgress"

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

 



On Sun, May 12, 2024 at 01:30:45 +0530, Abhiram Tilak wrote:
> Adds documentation for the <snapshotDeleteInProgress/> element to
> the libvirt snapshot format XML reference. The <snapshotDeleteInProgress/>
> element, introduced at commit 565bcb5d79, ensures the consistency of qcow2
> images during snapshot deletion operations by marking disks in snapshot
> metadata as invalid until deletion is successfully completed.
> 
> The commit was merged but the related documentation was missing.

Well to be fair this is kind of an internal flag, but yes the
documentation should be there as it's in the public XML.


> 
> Resolves: https://gitlab.com/libvirt/libvirt/-/issues/609
> Signed-off-by: Abhiram Tilak <atp.exp@xxxxxxxxx>
> ---
>  docs/formatsnapshot.rst | 7 +++++++
>  1 file changed, 7 insertions(+)
> 
> diff --git a/docs/formatsnapshot.rst b/docs/formatsnapshot.rst
> index 570a988442..e3d0d47e00 100644
> --- a/docs/formatsnapshot.rst
> +++ b/docs/formatsnapshot.rst
> @@ -170,6 +170,13 @@ The top-level ``domainsnapshot`` element may contain the following elements:
>           sub-element can be used with same semantics as the identically named
>           subelement of the domain definition disk's driver.
> 
> +      ``snapshotDeleteInProgress``
> +
> +         If a the snapshot is marked for deletion, the disk is invalidated. The
> +         sub-element ``snapshotDeleteInProgress`` marks the disk in the snapshot
> +         as invalid until the snapshot delete is completed successfully.
> +         :since:`Since 9.0`

Preferrably also add a note that users should not add or remove this
element as it may break the snapshot or disk images.
_______________________________________________
Devel mailing list -- devel@xxxxxxxxxxxxxxxxx
To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxx




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

  Powered by Linux