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

Peter Schuller peter.schuller at infidyne.com
Mon Nov 27 10:14:27 PST 2006


> Directories are only shrunk when a file is created and the slack
> directory space can be trivially truncated.  This is to avoid useless
> compaction during "rm -rf"-style activities of a directory that will
> just be deleted anyway.  Just create a dummy file with "touch" and the
> directory will shrink down to 1 block.  You can then remove the file.

Thanks, that explaints it. And it did work.

-- 
/ 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



More information about the freebsd-questions mailing list