Problem
In SCO UNIX System V/386 Release 3.2 Operating System Version 4.2,
there was a limit of 998 subdirectories. Has this been changed
in SCO OpenServer Release 5? Cause
Each directory links itself to its parent directory. There
is a non-configurable kernel limit of the number of links to
any file. In SCO UNIX Version 4.2, the limit was 1000. Thus,
you could create 998 subdirectories in any given directory.
The other two links are to the directories '.' and '..' which
are the current directory and the parent directory, respectively.
In SCO OpenServer Release 5, the maximum number of links has
been raised to 32767, resulting in 32765 as the maximum number
of subdirectories. Solution
Since this is not a configurable kernel option, there is no
workaround. You must create a directory structure that does
not require more than 998 subdirectories in any given directory
for SCO UNIX Version 4.2, or 32765 for SCO OpenServer 5.0.0.NOTE: There is no limit on the number of files you can have in a directory.
See also
TA106337, "What is the maximum number of subdirectories allowed in a directory?"