Files
qemu/block
Vincent Vanlaer 6f3199f996 block: allow commit to unmap zero blocks
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 <libvirt-e6954efa@volkihar.be>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Message-Id: <20241026163010.2865002-5-libvirt-e6954efa@volkihar.be>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
2025-05-01 12:12:19 +03:00
..
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2025-03-06 14:21:25 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2025-03-13 17:44:55 +01:00
2025-03-13 17:44:55 +01:00
2024-12-20 17:44:56 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00
2024-12-20 17:44:56 +01:00
2023-11-08 17:56:18 +01:00