The maximum number of files under a folder

Theodore Tso tytso at mit.edu
Mon Mar 17 13:32:07 UTC 2008


On Mon, Mar 17, 2008 at 03:40:36PM +0800, liuyue wrote:
> Theodore Tso,
> 
> 	In 64bit system, directory size can not be bigger than 2GB?

No, because the high 32-bits for i_size are overloaded to store the
directory creation acl.

In practice, you really don't want to have a directory that huge
anyway.  Iterating through it all with readdir() gets horribly slow,
and applications that try do anything with really huge directories
would be well advised to use a database, because they will get *much*
better performance that way....

							- Ted




More information about the Ext3-users mailing list