[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/22] parallels: fix broken parallels_check_data_off()
From: |
Denis V. Lunev |
Subject: |
[PATCH 10/22] parallels: fix broken parallels_check_data_off() |
Date: |
Mon, 18 Sep 2023 20:00:48 +0200 |
Once we have repaired data_off field in the header we should update
s->data_start which is calculated on the base of it.
Signed-off-by: Denis V. Lunev <den@openvz.org>
Reviewed-by: Alexander Ivanov <alexander.ivanov@virtuozzo.com>
---
block/parallels.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/parallels.c b/block/parallels.c
index 66c86d87e3..2b5f2b54a0 100644
--- a/block/parallels.c
+++ b/block/parallels.c
@@ -531,6 +531,7 @@ parallels_check_data_off(BlockDriverState *bs,
BdrvCheckResult *res,
res->corruptions++;
if (fix & BDRV_FIX_ERRORS) {
s->header->data_off = cpu_to_le32(data_off);
+ s->data_start = data_off;
res->corruptions_fixed++;
}
--
2.34.1
- [PATCH 17/22] parallels: naive implementation of allocate_clusters with used bitmap, (continued)
- [PATCH 17/22] parallels: naive implementation of allocate_clusters with used bitmap, Denis V. Lunev, 2023/09/18
- [PATCH 15/22] parallels: accept multiple clusters in mark_used(), Denis V. Lunev, 2023/09/18
- [PATCH 21/22] parallels: naive implementation of parallels_co_pwrite_zeroes, Denis V. Lunev, 2023/09/18
- [PATCH 16/22] parallels: update used bitmap in allocate_cluster, Denis V. Lunev, 2023/09/18
- [PATCH 13/22] tests: fix broken deduplication check in parallels format test, Denis V. Lunev, 2023/09/18
- [PATCH 22/22] tests: extend test 131 to cover availability of the write-zeroes, Denis V. Lunev, 2023/09/18
- [PATCH 14/22] tests: test self-cure of parallels image with duplicated clusters, Denis V. Lunev, 2023/09/18
- [PATCH 11/22] parallels: add test which will validate data_off fixes through repair, Denis V. Lunev, 2023/09/18
- [PATCH 20/22] tests: extend test 131 to cover availability of the discard operation, Denis V. Lunev, 2023/09/18
- [PATCH 10/22] parallels: fix broken parallels_check_data_off(),
Denis V. Lunev <=
- [PATCH 09/22] tests: ensure that image validation will not cure the corruption, Denis V. Lunev, 2023/09/18
- [PATCH 19/22] parallels: naive implementation of parallels_co_pdiscard, Denis V. Lunev, 2023/09/18
- [PATCH 12/22] parallels: collect bitmap of used clusters at open, Denis V. Lunev, 2023/09/18