Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vmm: Disable sector 0 writes for autodetected VHD images - #8218

Merged
likebreath merged 1 commit into
cloud-hypervisor:mainfrom
weltling:block-vhd-sector0-writes
May 14, 2026
Merged

likebreath merged 1 commit into
cloud-hypervisor:mainfrom
weltling:block-vhd-sector0-writes

Conversation

@weltling

Copy link
Copy Markdown
Member

When no image_type is specified, sector 0 writes are disabled as a safety measure for autodetected raw images. Extend this protection to autodetected fixed VHD images, which carry metadata in the last sector and are equally susceptible to accidental overwrites of the first sector when the format is not explicitly acknowledged.

Update the corresponding warning in the virtio block worker to be format agnostic.

When no image_type is specified, sector 0 writes are disabled as a
safety measure for autodetected raw images. Extend this protection
to autodetected fixed VHD images, which carry metadata in the last
sector and are equally susceptible to accidental overwrites of the
first sector when the format is not explicitly acknowledged.

Update the corresponding warning in the virtio block worker to be
format agnostic.

Signed-off-by: Anatol Belski <[email protected]>
@weltling
weltling requested a review from a team as a code owner May 14, 2026 16:26
@likebreath
likebreath enabled auto-merge May 14, 2026 16:34
@github-project-automation github-project-automation Bot moved this from 🆕 New to 📋 Backlog in Cloud Hypervisor Roadmap May 14, 2026
@likebreath likebreath added the bug-fix Bug fix to include in release notes label May 14, 2026

@rbradford rbradford left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@likebreath
likebreath added this pull request to the merge queue May 14, 2026
Merged via the queue into cloud-hypervisor:main with commit 9d487a8 May 14, 2026
41 checks passed
@github-project-automation github-project-automation Bot moved this from 📋 Backlog to ✅ Done in Cloud Hypervisor Roadmap May 14, 2026
@weltling
weltling deleted the block-vhd-sector0-writes branch May 14, 2026 20:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug-fix Bug fix to include in release notes

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants