Subject: kern/8815: unable to remove some empty directories on lfs filesystem
To: None <gnats-bugs@gnats.netbsd.org>
From: None <jbernard@mines.edu>
List: netbsd-bugs
Date: 11/16/1999 19:28:32
>Number:         8815
>Category:       kern
>Synopsis:       unable to remove some empty directories on lfs filesystem
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 16 19:27:01 1999
>Last-Modified:
>Originator:     Jim Bernard
>Organization:
	Speaking for myself
>Release:        November 16, 1999
>Environment:
System: NetBSD zoo 1.4L NetBSD 1.4L (ZOO) #0: Sat Oct 23 12:41:59 MDT 1999 local@zoo:/home/local/compile/sys/arch/i386/compile/ZOO i386


>Description:
	While running a kernel built from sources supped on Nov. 14, I built
	a new kernel from sources supped today (Nov. 16).  The sources are
	on an lfs filesystem, and I union mounted the source tree below a
	scratch directory also on the same lfs filesystem.  After the
	compilation, I unmounted the union mount, installed the new kernel,
	and rebooted under the new kernel.  I then tried to delete the scratch
	directory via "rm -rf" and received many messages saying that
	such-and-such directory is not empty, and the directories were not
	removed.  "ls -la" showed no files or directories in the "leaf"
	directories I checked, and "rmdir" also refused to delete them, saying
	they were not empty.  I booted the 2-day-old kernel and was able to
	immediately delete the entire scratch tree with "rm -rf", as usual.

>How-To-Repeat:
	See description.  Note that simply doing "mkdir -p x/y; rm -rf x"
	is not sufficient to cause the problem.  I'm not sure what is a
	minimal set of circumstances that causes it.

>Fix:
	Unknown.  But the soft updates merge did touch lfs, so I wonder if
	something in that caused the problem.
>Audit-Trail:
>Unformatted: