Re: [BUG] "git clean -df ." silently doesn't delete folders with stale .nfs* files
- From
- 'Yuri' <yuri@rawbw.com>
- Date
- Jun 11, 2024, 07:43 UTC
- Message-ID
- <ed33cfa9-d0e2-4e98-95e9-e210b24ac337@rawbw.com>
- In-Reply-To
- <20240611064847.GC3248245@coredump.intra.peff.net>
On 6/10/24 23:48, Jeff King wrote:
> $ git clean -df . warning: failed to remove > xx/.nfs0000000002c8197f00000002: Device or resource busy Which makes > sense, since the kernel fails our unlink() call. Maybe your system > behaves differently at the syscall level?
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.
Yuri