Repository navigation
sdk/rust: Fix overlayfs whiteout for base files in promoted dirs - #316
Merged
penberg merged 1 commit intoFeb 18, 2026
Merged
Conversation
broady
force-pushed
the
fix/overlayfs-whiteout-promoted-dirs
branch
from
February 9, 2026 04:02
f06ffb3 to
c80f682
Compare
Contributor
Author
|
ah, the test is failing because of a separate fuse issue - cached directory entries, I'll try to address that issue separately (bug/PR) |
Contributor
Author
|
FUSE cli integration test blocked on #317 |
broady
force-pushed
the
fix/overlayfs-whiteout-promoted-dirs
branch
from
February 13, 2026 19:35
c80f682 to
54e4a17
Compare
Contributor
Author
|
ready to review/merge @penberg |
broady
force-pushed
the
fix/overlayfs-whiteout-promoted-dirs
branch
3 times, most recently
from
February 15, 2026 05:56
7802d77 to
bf19e2b
Compare
broady
added a commit
to broady/agentfs
that referenced
this pull request
Feb 15, 2026
Revert FUSE/CLI and integration-test changes from this branch so PR tursodatabase#316 contains only sdk/rust overlay semantics changes.
broady
force-pushed
the
fix/overlayfs-whiteout-promoted-dirs
branch
from
February 15, 2026 06:41
1aba346 to
c1fed43
Compare
broady
force-pushed
the
fix/overlayfs-whiteout-promoted-dirs
branch
from
February 15, 2026 06:55
c1fed43 to
2eed2f1
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.
When a base-layer file is unlinked or renamed inside a directory
that has been promoted from Base to Delta (via ensure_parent_dirs),
we correctly create a whiteout at the source path.
However, the deleted name could still reappear in listings:
post-unlink inode operations (e.g. utimens on a stale inode handle)
could copy the base file into delta, and readdir/readdir_plus only
applied whiteout filtering to base entries, not delta entries.
This caused failures like:
Fix by:
Applying whiteout filtering to delta entries in both readdir()
and readdir_plus(), so whiteouts are authoritative across the
merged overlay view.
Treating whiteouted paths as not found for inode-based operations:
getattr/readlink return no entry, and open/chmod/chown/utimens
return ENOENT semantics instead of copy-up.
Preserving existing promoted-parent whiteout behavior for unlink,
rmdir, and rename source paths.
Add/keep test coverage for promoted-parent unlink/rename and the
overlay readdir/unlink integration path under cli/tests.