Re: [PATCH 1/2] qcow2: handle discard-no-unref in measure

2024-06-05 Thread Jean-Louis Dupond
On 5/06/2024 11:06, Jean-Louis Dupond wrote: When doing a measure on an image with a backing file and discard-no-unref is enabled, the code should take this into account. If for example you have a snapshot image with a base, and you do a discard within the snapshot, it will be ZERO and ALLOCATED

[PATCH 1/2] qcow2: handle discard-no-unref in measure

2024-06-05 Thread Jean-Louis Dupond
When doing a measure on an image with a backing file and discard-no-unref is enabled, the code should take this into account. If for example you have a snapshot image with a base, and you do a discard within the snapshot, it will be ZERO and ALLOCATED, but without host offset. Now if we commit thi