git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [BUG] "git clean -df ." silently doesn't delete folders with stale .nfs* files

From
GGGabor Gombas <gombasg@digikabel.hu>
Date
Jun 13, 2024, 08:09 UTC
Message-ID
<ZmqpQ4FkfXRm2jAE@lan>
In-Reply-To
<ed33cfa9-d0e2-4e98-95e9-e210b24ac337@rawbw.com>
On Tue, Jun 11, 2024 at 12:43:51AM -0700, 'Yuri' wrote:
Show 6 quoted lines
> The system I observed the problem is Centos with the kernel
> 3.10.0-1160.76.1.el7.x86_64 (10 years old).
> 
> 
> "rm -rf xx" command also says Device or resource busy
> But git-2.43.0 doesn't say anything.
On RHEL7:

$ mkdir foo $ cd foo $ git --version git version 2.39.2 $ git init $ mkdir xx $ touch xx/x $ tail -f xx/x $ git clean -dfx warning: failed to remove xx/: Directory not empty Removig xx/x $ git clean -dfx warning: failed to remove xx/.nfs[... long hex number...]: Device or resource busy

Well, try something:

$ echo xx > .gitignore $ git add .gitignore $ git commit -m foo $ git clean -df [there is no output - bingo] $ git clean -dfx warning: failed to remove xx/.nfs[... long hex number...]: Device or resource busy

Regards, Gabor

Previous: 'Yuri'Next: 'Yuri'
Message 14 of 17 in “[BUG] "git clean -df ." silently doesn't delete folders with stale .nfs* files”
  1. YuriJun 10, 2024
  2. Junio C HamanoJun 10, 2024
  3. YuriJun 10, 2024
  4. Junio C HamanoJun 10, 2024
  5. YuriJun 10, 2024
  6. rsbecker@nexbridge.comJun 10, 2024
  7. Junio C HamanoJun 11, 2024
  8. 'Yuri'Jun 11, 2024
  9. rsbecker@nexbridge.comJun 11, 2024
  10. 'Yuri'Jun 11, 2024
  11. Chris TorekJun 11, 2024
  12. Jeff KingJun 11, 2024
  13. 'Yuri'Jun 11, 2024
  14. Gabor GombasJun 13, 2024
  15. 'Yuri'Jun 13, 2024
  16. rsbecker@nexbridge.comJun 11, 2024
  17. 'Yuri'Jun 11, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.