Treat EFSBADCRC as disk corruption (#41368)

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.

Feng Wang committed Aug 18, 2026 at 11:11 UTC 8bd8a27f14295c7a1b25d6e35c6e2c8f2ec48106
1 file changed +2 -2
src/windows/service/exe/WslCoreInstance.cpp
+2 -2
@@ -65,8 +65,8 @@ WslCoreInstance::WslCoreInstance(
65
66 if (result.Result != 0)
67 {
68 - // N.B. EUCLEAN (117) can be returned if the disk's journal is corrupted.
69 - if ((result.Result == EINVAL || result.Result == 117) && result.FailureStep == LxInitCreateInstanceStepMountDisk)
68 + // N.B. EFSBADCRC (74) or EFSCORRUPTED (117) can be returned if the disk's journal is corrupted.
69 + if ((result.Result == EINVAL || result.Result == 74 || result.Result == 117) && result.FailureStep == LxInitCreateInstanceStepMountDisk)
70 {
71 THROW_HR(WSL_E_DISK_CORRUPTED);
72 }