Re: Directory size

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
To: <fedora-list@xxxxxxxxxx>
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@xxxxxx

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




[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux