[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 09/21] parallels: fix broken parallels_check_data_off()
From: |
Denis V. Lunev |
Subject: |
[PATCH 09/21] parallels: fix broken parallels_check_data_off() |
Date: |
Fri, 15 Sep 2023 20:41:17 +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>
---
block/parallels.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/block/parallels.c b/block/parallels.c
index 60ad41b49b..bdc4dd081b 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
- Re: [PATCH 08/21] tests: ensure that image validation will not cure the corruption, (continued)
- [PATCH 01/21] parallels: fix formatting in bdrv_parallels initialization, Denis V. Lunev, 2023/09/15
- [PATCH 02/21] parallels: mark driver as supporting CBT, Denis V. Lunev, 2023/09/15
- [PATCH 07/21] parallels: create mark_used() helper which sets bit in used bitmap, Denis V. Lunev, 2023/09/15
- [PATCH 05/21] parallels: return earlier from parallels_open() function on error, Denis V. Lunev, 2023/09/15
- [PATCH 09/21] parallels: fix broken parallels_check_data_off(),
Denis V. Lunev <=
- [PATCH 16/21] parallels: naive implementation of allocate_clusters with used bitmap, Denis V. Lunev, 2023/09/15
- [PATCH 14/21] parallels: accept multiple clusters in mark_used(), Denis V. Lunev, 2023/09/15
- [PATCH 19/21] tests: extend test 131 to cover availability of the discard operation, Denis V. Lunev, 2023/09/15
- [PATCH 21/21] tests: extend test 131 to cover availability of the write-zeroes, Denis V. Lunev, 2023/09/15