Messages in this thread | | | Date | Fri, 10 Jul 1998 16:19:59 +0200 (CEST) | From | Rik van Riel <> | Subject | Re: ext2fs: do directories ever shrink? |
| |
On Fri, 10 Jul 1998, Jakob Borg wrote:
> If a directory is created and filled with, say, 500 files, it will > grow to 6K in size. It will retain this size when all files in it are > unlinked. > > Does it ever shrink in size or will it retain it's 6 blocks until > it's unlinked? If so, is this just another form of preallocation, in > case we would that many files again in the same directory?
Ext2 directories never shrink. This is mainly because of race conditions and coding difficulty. If a directory size really bothers you, you must have been doing something _very_ strange anyway :)
Rik. +-------------------------------------------------------------------+ | Linux memory management tour guide. H.H.vanRiel@phys.uu.nl | | Scouting Vries cubscout leader. http://www.phys.uu.nl/~riel/ | +-------------------------------------------------------------------+
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu
| |