Date: Sun, 26 Nov 2006 15:37:11 -0800 From: "Jeff Mohler" <speedtoys.racing@gmail.com> To: "Peter Schuller" <peter.schuller@infidyne.com> Cc: freebsd-questions@freebsd.org Subject: Re: Empty directory 60M in size; used to contain 1.7 million files Message-ID: <a969fbd10611261537l76d8dafbqa55a51f87c5a1425@mail.gmail.com> In-Reply-To: <200611270131.44366.peter.schuller@infidyne.com> References: <200611270131.44366.peter.schuller@infidyne.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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 <peter.schuller@infidyne.com> 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 <peter.schuller@infidyne.com>' > 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" >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a969fbd10611261537l76d8dafbqa55a51f87c5a1425>