[Devel] [PATCH hci-8.1 v2 3/3] drivers/md/dm-qcow2: do not revalidate inconsistent persistent bitmaps

no-reply at sashiko.virtuozzo.com no-reply at sashiko.virtuozzo.com
Thu Oct 29 17:48:46 MSK 2026


> qcow2_check_convert_hdr() ignores the autoclear features stored in the
> image, and qcow2_parse_bitmap_ext() sets the bitmaps bit whenever no
> bitmap has the auto flag. If the bit was already clear on disk, a
> writable open sets it again and marks the bitmaps extension consistent.
> The qcow2 spec requires to treat such an extension as inconsistent,
> since a program without bitmap support might have modified the image.
> 
> Keep the bitmaps bit only if it is set in the image.
> 
> https://virtuozzo.atlassian.net/browse/VSTOR-138887
> Feature: dm-qcow2: block device over QCOW2 files driver
> 
> Fixes: f913aa3f7a1d4 ("dm-qcow2: parse bitmap extension")
> Signed-off-by: Alexander Ivanov <alexander.ivanov at virtuozzo.com>

Sashiko has reviewed this patch and found no issues. It looks great!

-- 
Sashiko AI review · https://sashiko.vzint.dev/#/patchset/20261029144358.3384569-1-alexander.ivanov@virtuozzo.com?part=3




More information about the Devel mailing list