projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f025a99
)
parallels: fix broken parallels_check_data_off()
author
Denis V. Lunev
<den@openvz.org>
Mon, 18 Sep 2023 18:00:48 +0000
(20:00 +0200)
committer
Denis V. Lunev
<den@openvz.org>
Thu, 21 Sep 2023 06:47:08 +0000
(08:47 +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
patch
|
blob
|
history
diff --git
a/block/parallels.c
b/block/parallels.c
index 66c86d87e3662d7e14bef63de42f41d726ad1827..2b5f2b54a099c3c897ad4612d0e017167495a2cc 100644
(file)
--- 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++;
}