On Tue, Oct 25, 2011 at 8:55 AM, Wayne Johnson <wdtj at yahoo.com> wrote:
> rm -r build/HEAD
> rm: cannot remove directory `build/HEAD/qa/testcapi/scripts': Directory not
> empty

> To get around this, I've doubled up the rm -rf command and this seems to
> work.  The question I am having is why this is failing?

NFS uses lock files, so while a file is in use there is a .nfsXXXX
file sitting there. This explains why the double rm works. Check your
scripts and make sure you aren't reading from a file while trying to
remove it, etc. lsof and of course ls -a will help you find the
culprit. Hope that helps.
-Jeremy