Subject: port-i386/34248: "make -j4 cleandir" causes ESTALE on nfs
To: None <,,>
From: None <>
List: netbsd-bugs
Date: 08/21/2006 08:00:00
>Number:         34248
>Category:       port-i386
>Synopsis:       "make -j4 cleandir" causes ESTALE on nfs
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Aug 21 08:00:00 +0000 2006
>Originator:     YAMAMOTO Takashi <>
>Release:        NetBSD 4.99.1

System: NetBSD spacekaeru 4.99.1
Architecture: i386
Machine: i386
	src/sys/arch/i386/stand/boot/Makefile.boot has:

		cleandir distclean: cleanlibdir

			-rm -rf lib

	this "rm -rf" should be serialized with eg. cleandirkernlib target
	in libkern/  otherwise, with make -j, it can remove the
	directory and its contents while other instance of make is working
	under it.  in the case of nfs, it causes ESTALE.