Skip to content

Conversation

@wswsmao
Copy link
Contributor

@wswsmao wswsmao commented Dec 25, 2025

This PR introduces a file access log in debug mode.
By using a sync.Map to track accessed node IDs, it ensures that metadata for each file—including its path, size, mode, and layer digest—is logged only once when it is first opened or its symlink is read.
This feature is useful for analyzing container image usage patterns and identifying which files are actually being accessed during runtime.

rootID uint32
opaqueXattrs []string
passThrough passThroughConfig
accessedPaths sync.Map
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The size of this data continuously increase during runtime as long as the filesystem is mounted, right? If so, can this feature be optional? And what is the reason we avoid duplication here?

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.

2 participants