Problem
HealthTest-NtfsDirtyBit detects a dirty volume only when English fsutil output contains is dirty.
File: health-tests/HealthTest-NtfsDirtyBit.ps1, lines 13-20.
On non-English Windows the text is translated, so a dirty volume can be missed. Errors from volume discovery and fsutil are also hidden, which can lead to PASS.
Simple example
A volume is dirty on Greek Windows. fsutil returns the translated dirty-state sentence, the English pattern does not match, and the test says no NTFS volumes are dirty.
Expected behavior
Use language-independent status or exit information. Track every queried volume and report command/read failures separately.
Acceptance criteria
- Dirty English and non-English samples are detected.
- A failed volume query or
fsutil call cannot produce the all-clear PASS.
- The affected drive is identified.
- Unit tests cover clean, dirty, localized, and error results.
Problem
HealthTest-NtfsDirtyBitdetects a dirty volume only when Englishfsutiloutput containsis dirty.File:
health-tests/HealthTest-NtfsDirtyBit.ps1, lines 13-20.On non-English Windows the text is translated, so a dirty volume can be missed. Errors from volume discovery and
fsutilare also hidden, which can lead to PASS.Simple example
A volume is dirty on Greek Windows.
fsutilreturns the translated dirty-state sentence, the English pattern does not match, and the test says no NTFS volumes are dirty.Expected behavior
Use language-independent status or exit information. Track every queried volume and report command/read failures separately.
Acceptance criteria
fsutilcall cannot produce the all-clear PASS.