Re: [PATCH v2 3/4] block: allow commit to unmap zero blocks

2024-09-01 Thread Vincent Vanlaer
On 2/08/2024 12:58, Vladimir Sementsov-Ogievskiy wrote: On 14.07.24 00:56, Vincent Vanlaer wrote: Non-active block commits do not discard blocks only containing zeros, causing images to lose sparseness after the commit. This commit fixes that by writing zero blocks using blk_co_pwrite_zeroes rat

Re: [PATCH v2 3/4] block: allow commit to unmap zero blocks

2024-08-02 Thread Vladimir Sementsov-Ogievskiy
On 14.07.24 00:56, Vincent Vanlaer wrote: Non-active block commits do not discard blocks only containing zeros, causing images to lose sparseness after the commit. This commit fixes that by writing zero blocks using blk_co_pwrite_zeroes rather than writing them out as any other arbitrary data. S

[PATCH v2 3/4] block: allow commit to unmap zero blocks

2024-07-13 Thread Vincent Vanlaer
Non-active block commits do not discard blocks only containing zeros, causing images to lose sparseness after the commit. This commit fixes that by writing zero blocks using blk_co_pwrite_zeroes rather than writing them out as any other arbitrary data. Signed-off-by: Vincent Vanlaer --- block/co