# ambiguous ReFS writable namespace paths are refused - #421
Merged
Merged
Conversation
Hawkynt
force-pushed
the
fix/refs-ambiguous-namespace-lookup
branch
from
September 30, 2026 11:53
7079c54 to
0b576de
Compare
Hawkynt
force-pushed
the
fix/refs-ambiguous-namespace-lookup
branch
2 times, most recently
from
September 30, 2026 16:09
f135048 to
62ef4a9
Compare
Case-insensitive writable lookups selected the first matching row even when a directory contained names distinguished only by case. This could direct replacement, deletion or block clone at an unintended file. Require unique resolution both in the namespace walker and at the mutation entry points, and verify ambiguous synthetic images remain unchanged. The evidence is the existing ReFS row model and synthetic case-collision fixture; no external on-disk grammar is inferred.
Symptom: the offline-mutation test asserted only NotSupportedException, which Add also throws for a path it will not create, so the test passed even with the ambiguity check removed. Fix: assert the ambiguity message for every refused mutation, cover an ambiguous clone destination as well as an ambiguous source, and add the equivalence class of a unique case-folded path that must still resolve.
Hawkynt
force-pushed
the
fix/refs-ambiguous-namespace-lookup
branch
from
September 30, 2026 18:06
aeec038 to
22169a0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Validation
git diff --checkpassed.This is an offline mutation safety fix. It does not enable native mounted ReFS writes or claim support for case-sensitive write semantics.
Review update
main.NotSupportedException.Addalso throws that for a path it will not create, so the test passed even with the ambiguity check removed. It now asserts the ambiguity message. It also covers an ambiguous clone destination, and a unique case-folded path that must still resolve.Compression.Tests.Refs59 passed, 1 skipped.RefsOfflineModifier.cstoo, but in a different region. Either merge order works. The second PR to merge should be rebased and its CI rerun.