From hsu@clinet.fi  Tue Jun  6 21:08:49 1995
Received: from clinet.fi (root@clinet.fi [193.64.6.1])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id VAA29565
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 Jun 1995 21:08:47 -0700
Received: from katiska.clinet.fi (root@katiska.clinet.fi [193.64.6.3]) by clinet.fi (8.6.10/8.6.4) with ESMTP id HAA07931 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Jun 1995 07:08:43 +0300
Received: (root@localhost) by katiska.clinet.fi (8.6.11/8.6.4) id HAA12334; Wed, 7 Jun 1995 07:08:43 +0300
Message-Id: <199506070408.HAA12334@katiska.clinet.fi>
Date: Wed, 7 Jun 1995 07:08:43 +0300
From: Heikki Suonsivu <hsu@clinet.fi>
Reply-To: hsu@clinet.fi
To: FreeBSD-gnats-submit@freebsd.org
Subject: Unremovable file?
X-Send-Pr-Version: 3.2

>Number:         495
>Category:       kern
>Synopsis:       Filesystem contains a file which is unremovable.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs (FreeBSD bugs mailing list)
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Jun  6 21:10:01 1995
>Closed-Date:    Wed Jun 7 00:34:04 PDT 1995
>Last-Modified:
>Originator:     Heikki Suonsivu
>Release:        FreeBSD 2.0-BUILT-19950507 i386
>Organization:
Helsinki University of Technology, Finland
>Environment:

	FreeBSD running -current.  P90, NNTP server + various other
	jobs.  The file in question appeared on the news filesystem.

>Description:

hsu#katiska.clinet.fi Wed 68: ls -l .overview 
-rw-rw-r--   1 news     news        31939 May  9 07:38 .overview
hsu#katiska.clinet.fi Wed 69: mv .overview foo
mv: cannot move `.overview' to `foo': Operation not permitted
hsu#katiska.clinet.fi Wed 70: L -d .
drwxrwxr-x   2 news     news          512 Jun  7 06:52 ./
hsu#katiska.clinet.fi Wed 71: chmod 777 .
hsu#katiska.clinet.fi Wed 72: rm .overview 
rm: remove `.overview'? y
rm: .overview: Operation not permitted
hsu#katiska.clinet.fi Wed 73: L
total 35
drwxrwxrwx   2 news     news          512 Jun  7 06:52 ./
drwxr-xr-x   3 hsu      wheel        1536 Jun  7 04:38 ../
-rw-rw-r--   1 news     news        31939 May  9 07:38 .overview
hsu#katiska.clinet.fi Wed 74: L -d .
drwxrwxrwx   2 news     news          512 Jun  7 06:52 ./
hsu#katiska.clinet.fi Wed 75: df .
Filesystem                      1024-blocks  Used Available Cap. Mounted on
/dev/sd1g                         1980569 1448498   433043  77%  /m/katiska/news
hsu#katiska.clinet.fi Wed 76: chmod 775 .
hsu#katiska.clinet.fi Wed 77: pwd
/m/katiska/news/tmp/guns-rikki

Everything I do, it always says no permission (is there a FORCE option 
somewhere?)

It stays over reboot or fsck.  It cannot be renamed, but the directory it is in
can be moved.

I think I have seen a similar thing on NFS mounted file system, but the
offending file could be removed from the NFS server.

>How-To-Repeat:

	Don't know, but I can dig more info for someone who wants to 
	look at it (the file is quite persistent so it is not going away :-)
	Just tell me what to look for.

>Fix:
	
	These shouldn't be generated?

	fsck should be able to detect and remove these?  That is, if it
	is a filesystem problem, not something else.

	All computer programs should have a --force or
	--I-know-what-I-am-doing option!

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: gpalmer 
State-Changed-When: Wed Jun 7 00:34:04 PDT 1995 
State-Changed-Why:  
The file had the `uchg' flag set and this was preventing the 
removal of the file. How that flag got set is another problem, 
possibly related to scsi bus lock-ups that Mr Suonsivu has been 
seeing. 
>Unformatted:



