ext2/3 subdirectory limit [WAS: Choosing and tuning Linux file systems]

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

 



> > More than ~32,000 files in one directory: XFS or reiser
> 
> Ext3 can easily have more than 32000 *files* in a directory. However,
> it can only have 32000 *subdirectories* in a directory. This limit is
> from struct ext3_inode->i_links_count, which is an __le16: each
> subdirectory has an entry ".." that links back to its parent increasing
> the parents i_links_count.

I was always wondering why it increases link_count of the parent directory when
creating a subdirectory. It is clear that .. points to the parent, but the
subdirectory cannot exist without its parent and you cannot delete the parent if
it is not empty. Correct me if I am wrong.

What is the link_count (incremented by subdirectories) used for? Is it ext2/3
specific or should it be implemented in such a way by other FS too? I am asking
becuse I see no reason why to do so in our FS.

Cheers,

		Tomas
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]
  Powered by Linux