]> git.ipfire.org Git - thirdparty/qemu.git/commit
block/copy-before-write: support unligned snapshot-discard
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Wed, 13 Mar 2024 15:28:19 +0000 (18:28 +0300)
committerVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Tue, 28 May 2024 12:52:15 +0000 (15:52 +0300)
commit507175197b06a24beb2369abe95b00172741c457
treecdb4365e00cb427a86cf7fa82c2621798aaf5c8b
parent137b4d4bd506bd42c18718f3f8b43a2d7c3346a8
block/copy-before-write: support unligned snapshot-discard

First thing that crashes on unligned access here is
bdrv_reset_dirty_bitmap(). Correct way is to align-down the
snapshot-discard request.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>
Message-Id: <20240313152822.626493-3-vsementsov@yandex-team.ru>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
block/copy-before-write.c