Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix size of symlinks and enable kernel symlink cache #2285

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Commits on Aug 5, 2024

  1. Fix size of symlinks

    Symlink inodes are expected to have size equal to the length of its
    target. This is defined in POSIX spec.
    
    FUSE's symlink cache also expects this, so fixing this prepares the
    enabling of the symlink cache.
    
    Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
    nbdd0121 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    22a47ca View commit details
    Browse the repository at this point in the history
  2. Enable kernel symlink caching

    This would provide significant savings when symlink'ed path is
    frequently accessed.
    
    Since symlink target is not mutable, this is always safe regardless TTL
    settings. (When the symlink is removed and re-created, its generatiton
    would change so a different inode is created).
    
    Signed-off-by: Gary Guo <gary.guo@lowrisc.org>
    nbdd0121 committed Aug 5, 2024
    Configuration menu
    Copy the full SHA
    8ef9d3d View commit details
    Browse the repository at this point in the history