[lug] # of subdirectory limits

Andrew Diederich andrew at NETdelivery.com
Tue Apr 17 13:12:48 MDT 2001


Folks,

I've run into a limit on Solaris 8, and was wondering if the same thing
happened to linux.  I wa creating bunches of subdirectories, and ran
into a limit at 32767 because of the limit on the number of links a file
can have to it.  So in Solaris if you:

% grep LINK_MAX /usr/include/limits.h 
#define LINK_MAX        32767

you see that you can't have more than 32766 subdirectories in a directory,
and this apparently isn't changable.  So, what is this in linux, and is it
a compile-time option in the kernel?  Enquiring minds want to know.

Danke.
--
    Andrew Diederich



More information about the LUG mailing list