Subject: port-i386/34248: "make -j4 cleandir" causes ESTALE on nfs
To: None <port-i386-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
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 <yamt@mwd.biglobe.ne.jp>
>Release:        NetBSD 4.99.1
>Organization:

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

		cleandir distclean: cleanlibdir

		cleanlibdir:
			-rm -rf lib

	this "rm -rf" should be serialized with eg. cleandirkernlib target
	in libkern/Makefile.inc.  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.
>How-To-Repeat:
>Fix:
	

>Unformatted: