Skip to content

Treat EFSBADCRC as disk corruption - #41368

Open
Feng Wang (chemwolf6922) wants to merge 1 commit into
masterfrom
user/chemwolf6922/treat-EFSBADCRC-as-disk-corruption
Open

Treat EFSBADCRC as disk corruption#41368
Feng Wang (chemwolf6922) wants to merge 1 commit into
masterfrom
user/chemwolf6922/treat-EFSBADCRC-as-disk-corruption

Conversation

@chemwolf6922

Copy link
Copy Markdown
Contributor

Summary of the Pull Request

Mount could fail with errno 74 (EFSBADCRC) when the filesystem is corrupted. For example, in #13616. It is directly presented to the user as E_FAIL and could cause confusions.

This PR adds it to the error codes treated as disk corruption.

PR Checklist

  • Closes: Wsl/Service/CreateInstance/E_FAIL #13616
  • Communication: I've discussed this with core contributors already. If work hasn't been agreed, this work might be rejected
  • Tests: Added/updated if needed and all pass
  • Localization: All end user facing strings can be localized
  • Dev docs: Added/updated if needed
  • Documentation updated: If checked, please file a pull request on our docs repo and link it here: #xxx

Detailed Description of the Pull Request / Additional comments

Validation Steps Performed

@chemwolf6922
Feng Wang (chemwolf6922) requested a review from a team as a code owner August 17, 2026 08:37
Copilot AI lite review requested due to automatic review settings August 17, 2026 08:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 improves WSL service error handling during instance startup by treating mount failures that return errno 74 (EFSBADCRC) as disk corruption, aligning user-facing failures with the actual underlying filesystem state (as reported in #13616).

Changes:

  • Extend the mount-disk failure mapping to classify errno 74 as WSL_E_DISK_CORRUPTED.
  • Update the inline comment documenting which errno values indicate filesystem corruption during LxInitCreateInstanceStepMountDisk.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread src/windows/service/exe/WslCoreInstance.cpp
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.

2 participants