Re: WEIRD ext2fs dir size BUG?

Theodore Y. Ts'o (tytso@MIT.EDU)
Sun, 1 Mar 1998 19:38:04 -0500


Date: Sun, 1 Mar 1998 21:12:44 +0100 (CET)
From: Peter-Paul Witta <paul@ping.at>

i did some weird testing on ext2fs (2.0.33) and encountered the following
problem:

after touching 10000 files in a dir (all size 0), i deleted those files.
after the deletion of the files the directory size is far too big.

Ext2fs, like most Unix filesystems, doesn't shrink the size of the
directory after files have been deleted. Usually, this isn't a
problem. If it is, you can always rmdir and mkdir the directory to
reclaim the extra blocks.

- Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu