Skip to content

gofer: Fix inode cache collisions on file type mismatches - #14100

Open
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl963768742
Open

gofer: Fix inode cache collisions on file type mismatches#14100
copybara-service[bot] wants to merge 1 commit into
masterfrom
test/cl963768742

Conversation

@copybara-service

Copy link
Copy Markdown

gofer: Fix inode cache collisions on file type mismatches

The Gofer client caches inodes by (device_id, inode_number).
Collisions can occur when different files share a host inode number
and map to the same device ID in Sentry (e.g., across different bind
mounts resolved by the same Gofer instance). This CL modifies the
inode cache lookup to evict stale cached inodes on file type
mismatches, and updates the destruction path to prevent cache
corruption when evicted-but-still-alive inodes are torn down.

The Gofer client caches inodes by (device_id, inode_number).
Collisions can occur when different files share a host inode number
and map to the same device ID in Sentry (e.g., across different bind
mounts resolved by the same Gofer instance). This CL modifies the
inode cache lookup to evict stale cached inodes on file type
mismatches, and updates the destruction path to prevent cache
corruption when evicted-but-still-alive inodes are torn down.

PiperOrigin-RevId: 963768742
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Aug 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant