Reproducer: 1) openafs client: cd /afs/station.com/tmp mkdir foo cd foo git init echo "hello" > hello.txt git add hello.txt git commit -m "hello" git status On branch master nothing to commit, working tree clean 2) kafs client: cd /afs/station.com/tmp/foo git status On branch master nothing to commit, working tree clean 3) openafs client: echo hello2 >> hello.txt git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: hello.txt 4) kafs client: git status On branch master nothing to commit, working tree clean But after I use that file, for example cat hello.txt hello hello2 git status On branch master Changes not staged for commit: (use "git add <file>..." to update what will be committed) (use "git restore <file>..." to discard changes in working directory) modified: hello.txt
What kernel version are you using?
uname -a Linux test.station.com 5.18.0-rc7
This should be fixed by: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=2aeb8c86d49967552394d5e723f87454cb53f501 afs: Fix afs_getattr() to refetch file status if callback break occurred