Re: [PATCH v3 4/5] block: allow commit to unmap zero blocks

2024-10-02 Thread Vladimir Sementsov-Ogievskiy
On 01.09.24 17:24, 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 v3 4/5] block: allow commit to unmap zero blocks

2024-09-01 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