From owner-freebsd-current@FreeBSD.ORG Thu Oct 9 20:50:04 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA10B16A4B3 for ; Thu, 9 Oct 2003 20:50:04 -0700 (PDT) Received: from fledge.watson.org (fledge.watson.org [204.156.12.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id BA57243FE1 for ; Thu, 9 Oct 2003 20:50:03 -0700 (PDT) (envelope-from robert@fledge.watson.org) Received: from fledge.watson.org (localhost [127.0.0.1]) by fledge.watson.org (8.12.9p2/8.12.9) with ESMTP id h9A3njMg007368; Thu, 9 Oct 2003 23:49:45 -0400 (EDT) (envelope-from robert@fledge.watson.org) Received: from localhost (robert@localhost)h9A3njjd007365; Thu, 9 Oct 2003 23:49:45 -0400 (EDT) (envelope-from robert@fledge.watson.org) Date: Thu, 9 Oct 2003 23:49:45 -0400 (EDT) From: Robert Watson X-Sender: robert@fledge.watson.org To: Boris Kovalenko In-Reply-To: <3F84ED93.9080606@ntmk.ru> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII cc: freebsd-current Subject: Re: Can not remove directory X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Oct 2003 03:50:04 -0000 On Thu, 9 Oct 2003, Boris Kovalenko wrote: > Can not remove directory /usr/obj/usr/src/gnu/usr.bin/cc/cc1 rm: > /usr/obj/usr/src/gnu/usr.bin/cc/cc1: Directory not empty What's going on is that the background file system checker hasn't adjusted down the reference counts for the directory in question. I've run into this on a couple of occasions, and Kirk and I have bantered about possible fixes. Basically, the only inconsistencies permitted by soft updates are freed space being unavailable for reuse, and elevated reference counts. The background file system checker walks through the file system metadata in a snapshot to move blocks to the free list and adjust reference counts. The problem will clear by itself once bgfsck catches up; as a workaround, just move it out of the way somewhere in the same file system until bgfsck is done. Or you can manually clear up the reference if you're willing to risk it :-). A normal fsck in single-user would also clear it up. Robert N M Watson FreeBSD Core Team, TrustedBSD Projects robert@fledge.watson.org Network Associates Laboratories > > bash-2.05b# pwd; ls -la > /usr/obj/usr/src/gnu/usr.bin/cc/cc1 > total 4 > drwxr-xr-x 2 root wheel 512 Oct 9 08:54 . > drwxr-xr-x 13 root wheel 512 Oct 9 08:54 .. > > bash-2.05b# pwd; ls -la > /usr/obj/usr/src/gnu/usr.bin/cc > total 26 > drwxr-xr-x 13 root wheel 512 Oct 9 08:54 . > drwxr-xr-x 21 root wheel 512 Oct 9 11:23 .. > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 c++ > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 c++filt > drwxr-xr-x 2 root wheel 512 Oct 9 08:54 cc1 > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 cc1obj > drwxr-xr-x 2 root wheel 1024 Oct 9 08:55 cc1plus > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 cpp > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 cpp0 > drwxr-xr-x 2 root wheel 512 Sep 26 10:34 doc > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 gcov > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 protoize > drwxr-xr-x 2 root wheel 512 Oct 9 08:55 tradcpp0 > > What is wrong? Current system is 5.1-RELEASE-p8 > > Yours truly, > Boris Kovalenko > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" >