diff options
| author | Vincent Vanlaer <libvirt-e6954efa@volkihar.be> | 2024-10-26 18:30:08 +0200 |
|---|---|---|
| committer | Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> | 2025-05-01 12:12:19 +0300 |
| commit | 6f3199f99600fe75f32f78574e507f347de80854 (patch) | |
| tree | a92da05a341938734993f83626d9563ffffdc956 /rust/qemu-api/src/assertions.rs | |
| parent | 0648c76ad198e91515771fbbeaac3a3807669a4a (diff) | |
| download | focaccia-qemu-6f3199f99600fe75f32f78574e507f347de80854.tar.gz focaccia-qemu-6f3199f99600fe75f32f78574e507f347de80854.zip | |
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>
Diffstat (limited to 'rust/qemu-api/src/assertions.rs')
0 files changed, 0 insertions, 0 deletions