lkml.org 
[lkml]   [1998]   [Jul]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: ext2fs: do directories ever shrink?
Clifford Wolf wrote:

> A general behaviour with UNIX files is that a file can never shrink! A
> file can be trucated - but it can shrink e.g. from 10 bytes to 5. Since
> a directory is just a file it can't shrink too (except the implementation
> contains additional code for it).

I don't understand this; are you saying that files can shrink or not?
What on earth does the directory as a file fills up with anyway? [The
largest directory size I've seen is 40,000 blocks for a directory filled
up with images and then these images were deleted!) Clearly there is a
benefit of reclaiming this - any chance the fsck process can
automatically reclaim this on reboots?

Cheers,
Alex.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.altern.org/andrebalsa/doc/lkml-faq.html

\
 
 \ /
  Last update: 2005-03-22 13:43    [from the cache]
©2003-2011 Jasper Spaans