Skip to content

Conversation

@benhillis
Copy link
Member

While experimenting with the virtio9p and virtiofs tests I noticed that some of the testcases were failing because they were attempting to mount the socket-based 9p shares. This was due to the mount.drvfs helper using default-constructed config struct, which was inadvertently using config flags of zero instead of querying init for the real flags value.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in WslDistributionConfig where optional fields were incorrectly initialized with default values instead of remaining uninitialized. When mount.drvfs used a default-constructed config struct, it inadvertently used config flags of zero instead of querying init for the actual values, causing virtio9p and virtiofs test failures.

Key Changes:

  • Removed default initialization values from FeatureFlags and NetworkingMode optional fields, allowing proper detection of unset values

@benhillis benhillis merged commit a231b6b into master Oct 23, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants