From: "Denis V. Lunev" <d...@openvz.org> This data is obsolete.
The approach is exactly the same like we use with QCOW2. Signed-off-by: Denis V. Lunev <d...@openvz.org> --- block/parallels-ext.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/block/parallels-ext.c b/block/parallels-ext.c index 9cb8e65c0d..7fa14b057d 100644 --- a/block/parallels-ext.c +++ b/block/parallels-ext.c @@ -255,6 +255,14 @@ parallels_parse_format_extension(BlockDriverState *bs, uint8_t *ext_cluster, return 0; case PARALLELS_DIRTY_BITMAP_FEATURE_MAGIC: + if (s->header_unclean) { + /* + * The image was not closed correctly and thus dirty bitmap + * data inside the image is considered as incorrect and thus + * it should be dropper, exactly like we do for QCOW2. + */ + break; + } bitmap = parallels_load_bitmap(bs, pos, fh.data_size, errp); if (!bitmap) { goto fail; -- 2.40.1