Skip to content
GitLab Next
  • Menu
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gitaly gitaly
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 557
    • Issues 557
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 56
    • Merge requests 56
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GitLab.orgGitLab.org
  • gitalygitaly
  • Merge requests
  • !924

Prevent stale packed-refs file when Gitaly is running on top of NFS

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Stan Hu requested to merge sh-add-nfs-workaround into master Oct 16, 2018
  • Overview 4
  • Commits 1
  • Pipelines 4
  • Changes 2

Users of the Linux NFS client v4.0 (and even v4.1) may encounter stale file handles or stale data if git gc is running for a long time. A patch for this kernel bug is here: https://marc.info/?l=linux-nfs&m=153816500525563&w=2

This workaround calls stat() on the packed-refs file to force the kernel to do a directory entry validation on the inode.

Closes #1339 (closed)

Edited Nov 18, 2021 by GitLab Release Tools Bot
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: sh-add-nfs-workaround