Re: [PATCH] qcow2: keep reference on zeroize with discard-no-unref enabled

2023-09-05 Thread Jean-Louis Dupond
Replaced by PATCH v2. On 4/09/2023 17:09, Jean-Louis Dupond wrote: When the discard-no-unref flag is enabled, we keep the reference for normal discard requests. But when a discard is executed on a snapshot/qcow2 image with backing, the discards are saved as zero clusters in the snapshot image.

[PATCH] qcow2: keep reference on zeroize with discard-no-unref enabled

2023-09-04 Thread Jean-Louis Dupond
When the discard-no-unref flag is enabled, we keep the reference for normal discard requests. But when a discard is executed on a snapshot/qcow2 image with backing, the discards are saved as zero clusters in the snapshot image. When committing the snapshot to the backing file, not discard_in_l2_sl