I have read all the threads on git having trouble with pread() and I didn't see anything to help.
Situation: git commands run on system "dev2" which is Linux 2.6.9-42.0.8.ELsmp on an NFS mounted directory. The NFS server is "dev1" which is Linux 2.4.28
I get the following output from git when doing a fetch: remote: Counting objects: 406, done. remote: Compressing objects: 100% (198/198), done. remote: Total 253 (delta 127), reused 150 (delta 55) Receiving objects: 100% (253/253), 5.27 MiB | 9136 KiB/s, done. fatal: cannot pread pack file: No such file or directory fatal: index-pack failed
The end of the strace looks like so: pread(3, "", 205, 1373) = 0 write(2, "fatal: cannot pread pack file: N"..., 57) = 57
I have ran strace -o /somedir/q -ff git fetch and have the straces available at: http://docwhat.gerf.org/files/tmp/git-strace-20080626.tgz
I have worked around the problem by running the fetch from the nfs server.
It looks like I can recreate this at will and I'm willing to help figure this out.
Thanks!
Ciao!