diff mbox series

[v5,07/22] parallels: Set data_end value in parallels_check_leak()

Message ID 20240311181850.73013-8-alexander.ivanov@virtuozzo.com
State New
Headers show
Series parallels: Add full dirty bitmap support | expand

Commit Message

Alexander Ivanov March 11, 2024, 6:18 p.m. UTC
In parallels_check_leak() we change file size but don't correct data_end
field of BDRVParallelsState structure. Fix it.

Signed-off-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
Reviewed-by: Denis V. Lunev <den@openvz.org>
---
 block/parallels.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/block/parallels.c b/block/parallels.c
index c6d82961c9..e7c3763017 100644
--- a/block/parallels.c
+++ b/block/parallels.c
@@ -811,6 +811,7 @@  parallels_check_leak(BlockDriverState *bs, BdrvCheckResult *res,
                 res->check_errors++;
                 return ret;
             }
+            s->data_end = res->image_end_offset >> BDRV_SECTOR_BITS;
             if (explicit) {
                 res->leaks_fixed += count;
             }