Directory size

Vidol Loeung fedora.kh at undp.org
Mon May 30 06:17:28 UTC 2005


Thank you Makku and Neil. Now I understand, a new directory is not actuall
empty but contains the '.' and '..'.

Best,
Vidol
----- Original Message ----- 
From: "Markku Kolkka" <markkuk at tuubi.net>
To: <fedora-list at redhat.com>
Sent: Friday, May 27, 2005 6:11 PM
Subject: Re: Directory size


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

-- 
fedora-list mailing list
fedora-list at redhat.com
To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list






More information about the users mailing list