Re: [BUG] git clean not working on FreeBSD/NFS
- From
Henrik Grubbström <grubba@grubba.org>
- Date
- Jun 17, 2010, 15:18 UTC
- Message-ID
- <loom.20100617T170956-287@post.gmane.org>
- In-Reply-To
- <4C1A30A3.9080708@gmail.com>
Török Edwin <edwintorok <at> gmail.com> writes:
Show 12 quoted lines
> Hi, > > I am running git 1.7.1 on a FreeBSD 8 box which has its home dir mounted > via NFS (I guess the NFS server is a Linux box). > When running 'git clean -x -f -d' it fails to remove some directories: > warning: failed to remove 'libclamav/.deps/' > warning: failed to remove 'libclamav/.libs/' > warning: failed to remove 'libclamav/c++/.deps/' > warning: failed to remove 'libclamav/c++/.libs/' > warning: failed to remove 'libclamav/c++/llvm/test/CodeGen/X86/Output/' > > This causes buildbot managed builds to fail every 2nd time.
Sounds like the classic nfs problem with references to open deleted files. If you look closer at the failing directories, I bet that you'll find files with names like ".nfsDEAD".
You can use eg lsof to find the process that holds the open file reference:
$ lsof tmp/.nfs536B COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME pike 29705 grubba 8w VREG 285,4 0 10977399 tmp/.nfs536B
/grubba