Subject: kern/5528: Operation not permitted when trying to rm -rf a tree after disk fills
To: None <gnats-bugs@gnats.netbsd.org>
From: Sean Doran <smd@ebone.net>
List: netbsd-bugs
Date: 06/02/1998 15:57:28
>Number:         5528
>Category:       kern
>Synopsis:       ffs partition fills, then cannot remove a particular file
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people (Kernel Bug People)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jun  2 07:05:01 1998
>Last-Modified:
>Originator:     Sean Doran
>Organization:
Ebone Inc.
>Release:        NetBSD-current sup of 28 May 1998
>Environment:
System: NetBSD sean.ebone.net 1.3E NetBSD 1.3E (EBONE) #0: Thu May 28 17:47:34 CEST 1998 smd@sean.ebone.net:/usr/src/sys/arch/i386/compile/EBONE i386


>Description:
	make in gimp pkgsrc directory
	/usr fills, see lots of:
uid 0 on /usr: file system full
uid 0 on /usr: file system full
uid 0 on /usr: file system full
uid 0 on /usr: file system full
	^C the make
	make clean, see:
sean# make clean
===>  Cleaning for gimp-0.99.28
rm: /usr/pkgsrc/graphics/gimp/work/gimp-data-extras-0.99a/patterns/gold.pat: Operation not permitted
rm: /usr/pkgsrc/graphics/gimp/work/gimp-data-extras-0.99a/patterns: Directory not empty
rm: /usr/pkgsrc/graphics/gimp/work/gimp-data-extras-0.99a: Directory not empty
rm: /usr/pkgsrc/graphics/gimp/work: Directory not empty
*** Error code 1

Stop.

sean# rm -rf work 
rm: work/gimp-data-extras-0.99a/patterns/gold.pat: Operation not permitted
rm: work/gimp-data-extras-0.99a/patterns: Directory not empty
rm: work/gimp-data-extras-0.99a: Directory not empty
rm: work: Directory not empty
sean# ls -ld work/gimp-data-extras-0.99a/patterns
drwxr-xr-x  2 1001  100  2048 Jun  2 15:42 work/gimp-data-extras-0.99a/patterns
sean# chown root work/gimp-data-extras-0.99a/patterns
sean# rm -rf work
rm: work/gimp-data-extras-0.99a/patterns/gold.pat: Operation not permitted
rm: work/gimp-data-extras-0.99a/patterns: Directory not empty
rm: work/gimp-data-extras-0.99a: Directory not empty
rm: work: Directory not empty
sean# cd work/gimp*/patterns
sean# rm *
override rw-r--r--  root/100 for gold.pat? y
rm: gold.pat: Operation not permitted
sean# ls -l
total 192
-rw-r--r--  1 root  100  195072 Jun  2 15:40 gold.pat

>How-To-Repeat:
	Unknown, never seen this before.
>Fix:
	will drop to single user and blow this away manually, grump.
>Audit-Trail:
>Unformatted: