Skip to content

Make NtfsDirtyBit independent of English fsutil output #128

Description

@ndemou

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions