Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum number of subdirectories allowed in Ext4? [closed]

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:

  • ext4.wiki.kernel.org
  • SO ServerFault

Unlimited:

  • Kernel Newbies
  • Kernel.org
  • SO SuperUser

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

like image 913
meawoppl Avatar asked Apr 01 '14 01:04

meawoppl


1 Answers

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

like image 149
JerryJJ Avatar answered Sep 22 '22 21:09

JerryJJ