From owner-freebsd-questions@FreeBSD.ORG Sun Nov 26 23:37:14 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 10E4616A412 for ; Sun, 26 Nov 2006 23:37:14 +0000 (UTC) (envelope-from speedtoys.racing@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id A7A1043D49 for ; Sun, 26 Nov 2006 23:36:16 +0000 (GMT) (envelope-from speedtoys.racing@gmail.com) Received: by nf-out-0910.google.com with SMTP id x37so1902986nfc for ; Sun, 26 Nov 2006 15:37:12 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=eM/LqXC5qeCSMwxgBrhHs8jmBMTNDpCCpayqgP9zi8hxjzMVrwMIvFGJeOSm7//rv/ZB/4Fxs4Qv7HFKzz/5FahxyAKiiZ1khzAqzmEBgPeBoAreKl6H4hAiqB8DUOMvZ5oXrwjrWkM1H2538ImOQG3BGdySUwcSsM9rDJ2qvB0= Received: by 10.82.118.2 with SMTP id q2mr1873541buc.1164584231832; Sun, 26 Nov 2006 15:37:11 -0800 (PST) Received: by 10.82.141.18 with HTTP; Sun, 26 Nov 2006 15:37:11 -0800 (PST) Message-ID: Date: Sun, 26 Nov 2006 15:37:11 -0800 From: "Jeff Mohler" To: "Peter Schuller" In-Reply-To: <200611270131.44366.peter.schuller@infidyne.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <200611270131.44366.peter.schuller@infidyne.com> Cc: freebsd-questions@freebsd.org Subject: Re: Empty directory 60M in size; used to contain 1.7 million files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 26 Nov 2006 23:37:14 -0000 The directory size grew to accomodate the metadata required to list the files within it. You cant shrink it. You'll have to remove it and recreate it. On 11/26/06, Peter Schuller wrote: > Hello, > > Observe: > > hyperion# ls -la > total 61634 > drwxr-xr-x 2 xxx yyy 63047168 Nov 18 21:33 . > drwxr-xr-x 6 xxx yyy 512 Oct 8 16:39 .. > hyperion# find . > . > hyperion# > > The one special circumstance is that the directory previously contained 1.7 > million small files, that are now deleted. This is on FreeBSD 6.1 with UFS2 + > softupdates. No snapshots exist of the filesystem. > > 1.7 million files may be extreme, but I don't see why an empty directory would > ever consume more than one inode? > > -- > / Peter Schuller, InfiDyne Technologies HB > > PGP userID: 0xE9758B7D or 'Peter Schuller ' > Key retrieval: Send an E-Mail to getpgpkey@scode.org > E-Mail: peter.schuller@infidyne.com Web: http://www.scode.org > > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >