Re: [BUG] git clean not working on FreeBSD/NFS

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Török Edwin <edwintorok <at> gmail.com> writes:

> 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

--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]