What is the maximum number of subdirectories allowed in Ext4?

meawoppl picture meawoppl · Apr 1, 2014 · Viewed 7.4k times · Source

I am considering moving my ext3 partition to ext4 in order to overcome the 32000 subdirectory limit. I have seen two different numbers thrown around about the limits of ext4, both from reputable sources:

Limit of 64,000:

Unlimited:

What is the correct answer, and how can I determine the correct answer from the ext4 source?

Answer

JerryJJ picture JerryJJ · Apr 1, 2014

The limit is 64000. Until you enable the file system feature flag dir_nlink

http://man7.org/linux/man-pages/man5/ext4.5.html

http://www.ispexperts.com.np/?p=797