Technical article 105393

What is the maximum number of subdirectories allowed in a directory in UnixWare?

OpenServer 6.0.0UnixWare 7.0.0UnixWare 7.0.1UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4Open UNIX 8

Written · Last revised

Problem

While trying to create a large number of directories I get the error:

UX:mkdir: ERROR: Cannot create directory "dirname": Too many links

Cause

Each directory links itself to its parent directory.  There is
a configurable kernel limit, MAXLINK, of the number of links to
any file.  By default, the limit is 1000.  Therefore, you can
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.

Solution

This parameter can be increased to a maximum of 32767, allowing
32765 subdirectories to be created in any given directory.  To
increase it, use the System Tuner tool on the Desktop or idtune(1M).

MAXLINK is in the "Miscellaneous Parameters" section of the System Tuner.

NOTE: There is no limit on the number of files you can have in a directory.

From the Xinuos technical article database, record 105393. Reproduced with permission. The original is at www.sco.com/ta/105393, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.