Directory size

Markku Kolkka markkuk at tuubi.net
Fri May 27 11:11:14 UTC 2005


Vidol Loeung kirjoitti viestissään (lähetysaika perjantai, 27. 
toukokuuta 2005 13:10):
> Just wonder why the size of a new, blank directory is 4096
> bytes. Could someone explain?

Ext2/ext3 filesystem allocates space in 4K chunks by default. Any 
non-empty file takes at least that much space. A "blank" 
directory contains entries for "." and "..", so it doesn't fit 
in 0 bytes and must take 4096 bytes.

-- 
 Markku Kolkka
 markku.kolkka at iki.fi




More information about the users mailing list