Skip to content

Dynamic VHD block bitmap: real vs. supposed behavior #14

Description

@maxpat78

Let’s assume we have a Dynamic VHD and we fill a specific sector N of the emulated disk with a pattern.

Subsequently, in the bitmap related to the VHD block containing sector N, we alternately set the bit corresponding to N to 0 and 1 before attempting to read N back.

At this point, we discover that the behavior of Windows 11 (and, likely, previous editions) differs from 86box (MiniVHD library) and 7-Zip.

Windows 11, in fact, ignores the bitmap and retrieves the physical sector from the block regardless, returning the original pattern.

MiniVHD and 7-Zip, on the other hand, honor the VHD 1.0 specification and, finding the bit set to zero, return an empty (zeroed-out) sector.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions