Skip to content

fix(fs): recursive delete whiteouts lower-layer children in OverlayFs#459

Merged
chaliy merged 1 commit intomainfrom
claude/fix-420-Y2nIj
Mar 2, 2026
Merged

fix(fs): recursive delete whiteouts lower-layer children in OverlayFs#459
chaliy merged 1 commit intomainfrom
claude/fix-420-Y2nIj

Conversation

@chaliy
Copy link
Contributor

@chaliy chaliy commented Mar 2, 2026

Summary

  • is_whiteout() now checks ancestor paths so children of a deleted directory are properly hidden
  • remove() enumerates all lower children recursively during rm -r for accurate usage tracking
  • Added hide_lower_children_recursive() helper

Test plan

  • test_recursive_delete_whiteouts_children — verifies child files invisible after rm -r
  • test_recursive_delete_deducts_all_children — verifies usage deducted correctly
  • All 17 overlay tests pass

Closes #420

is_whiteout() now checks ancestor paths so children of a deleted
directory are properly hidden. Usage tracking enumerates all lower
children recursively during rm -r.

Closes #420

https://claude.ai/code/session_01WZjYqxm5xMPAEe7FSHJkDy
@chaliy chaliy merged commit 9364b39 into main Mar 2, 2026
17 checks passed
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.

[M-6] Incomplete recursive delete whiteout in OverlayFs

2 participants