[PATCH v2 0/2] Add support for discard_no_unref qcow2 option

2023-06-09 Thread Jean-Louis Dupond
qcow2 image. We want to be able to enable this option (which is off by default) via libvirt, so this patch adds this option in libvirt. v2 fixes the remarks in the previous patchset Jean-Louis Dupond (2): Add discard_no_unref option for qcow2 images Update NEWS with new discard_no_unref option

[PATCH 2/2] Update NEWS with new discard_no_unref option

2023-06-09 Thread Jean-Louis Dupond
Signed-off-by: Jean-Louis Dupond --- NEWS.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index b1cccee4fa..deac80aec2 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -19,6 +19,8 @@ v9.5.0 (unreleased) * **Improvements** + * qemu: Change the discard-no-unref value via

[PATCH 1/2] Add discard_no_unref option for qcow2 images

2023-06-09 Thread Jean-Louis Dupond
. This was implemented to avoid fragmentation within the qcow2 image. Signed-off-by: Jean-Louis Dupond --- docs/formatdomain.rst | 7 src/conf/domain_conf.c| 8 src/conf/domain_conf.h| 1 + src/conf

Re: [PATCH 1/2] Add discard_no_unref option for qcow2 images

2023-06-09 Thread Jean-Louis Dupond
On 8/06/2023 16:36, Peter Krempa wrote: On Tue, Jun 06, 2023 at 11:54:40 +0200, Jean-Louis Dupond wrote: Qemu 8.1.0 will add discard_no_unref option for qcow2 images. When this option is enabled (default=false), then it will no longer unreference clusters when guest does a discard, but it will

[PATCH 0/2] Add support for discard_no_unref qcow2 option

2023-06-06 Thread Jean-Louis Dupond
qcow2 image. We want to be able to enable this option (which is off by default) via libvirt, so this patch adds this option in libvirt. Jean-Louis Dupond (2): Add discard_no_unref option for qcow2 images Update NEWS with new discard_no_unref option NEWS.rst

[PATCH 1/2] Add discard_no_unref option for qcow2 images

2023-06-06 Thread Jean-Louis Dupond
. This was implemented to avoid fragmentation within the qcow2 image. Signed-off-by: Jean-Louis Dupond --- docs/formatdomain.rst | 6 +++ src/conf/domain_conf.c| 8 +++ src/conf/domain_conf.h| 1 + src/conf/domain_validate.c

[PATCH 2/2] Update NEWS with new discard_no_unref option

2023-06-06 Thread Jean-Louis Dupond
Signed-off-by: Jean-Louis Dupond --- NEWS.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index b1cccee4fa..deac80aec2 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -19,6 +19,8 @@ v9.5.0 (unreleased) * **Improvements** + * qemu: Change the discard-no-unref value via