Empty directory 60M in size; used to contain 1.7 million files

Jeff Mohler speedtoys.racing at gmail.com
Sun Nov 26 15:37:14 PST 2006


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 at 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 at infidyne.com>'
> Key retrieval: Send an E-Mail to getpgpkey at scode.org
> E-Mail: peter.schuller at infidyne.com Web: http://www.scode.org
>
> _______________________________________________
> freebsd-questions at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-unsubscribe at freebsd.org"
>


More information about the freebsd-questions mailing list