4

It is known that ext2/ext3 FS have a rather low limit of about 32k files/directories per directory.

It looks like ReiserFS is limited in practice by the r5 hash function which allows about 1 200 000 file names without collisions.

But what about other common Linux File Systems? JFS, XFS, Btrfs, Reiser4, ext4,...

Thanks in advance!

Patrick Allaert
  • 145
  • 1
  • 6

2 Answers2

4

EXT4 either has the limit of 64k or no limit, depending on which wiki you read (I assume that earlier versions had 64k limit and newer have no hard limit). It is still limited by the maximum count of links the Directory Index can contain, and that depends on that particular filesystem attributes (block size for example).

XFS, AFAIK, has no limit, so does Reiser4. Out of my head I wouldn't recall the case of other filesystems; VxFS is definitely very robust and if it has a limit, it's very high (not sure how much helpful this information is :-) ).

cepal67
  • 91
  • 3
  • 1
    Ext4 has no per-directory limit if the `dir_index` and `dir_nlink` features are set. (They are the default for new file systems.) Old directories need to be upgraded to `dir_nlink` by running `e2fsck -f -D`. – Georg Schölly Dec 04 '17 at 08:35
2

visit wiki link

http://en.wikipedia.org/wiki/Ext4

http://en.wikipedia.org/wiki/Ext3

Rajat
  • 3,329
  • 21
  • 29