lkml.org 
[lkml]   [1998]   [Jul]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: 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

\
 
 \ /
  Last update: 2005-03-22 13:43    [W:0.599 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site