Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Apr 1999 12:25:00 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Christopher Palmer <cpalmer@jig.ordway.org>
Cc:        "Randy A. Katz" <randyk@ccsales.com>, questions@FreeBSD.ORG
Subject:   Re: Too many links
Message-ID:  <19990413122500.D74226@lemis.com>
In-Reply-To: <Pine.BSF.4.10.9904121454470.22405-100000@jig.ordway.org>; from Christopher Palmer on Mon, Apr 12, 1999 at 02:56:08PM -0500
References:  <19990412121738.I2142@lemis.com> <Pine.BSF.4.10.9904121454470.22405-100000@jig.ordway.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Monday, 12 April 1999 at 14:56:08 -0500, Christopher Palmer wrote:
> On Mon, 12 Apr 1999, Greg Lehey wrote:
>
>> Seriously, it's a performance issue.  The current limit is in
>> /usr/include/sys/syslimits.h:
>>
>> #define	LINK_MAX		32767	/* max file link count */
>>
>> Theoretically you could just increase this value and 'make world', but
>> you might run into int overflow problems.  I certainly think that
>> there are better alternatives to this issue than adding yet more
>> directories to one which is too full already.
>
> Yikes! Is this a filesystem-wide limit (not more than 32767 files/dirs
> total) or a directory-specific limitation (not more than 32767 files/dirs
> per dir)?

This is a per-file limit.  A directory is just a special kind of
file.  Note that System V has a *much* lower limit (1000, IIRC).

> Basically, is this a limit on inodes?

No, it has nothing to do with inode limitations.  It's the number of
directory entries which are allowed to point to a single inode.
Recall that any directory (even /) has an entry .., which points to
the parent directory (or to / in the case of /..).  This is a link to
the directory, and it's the reason for the current problems.  The link
count is really an inode usage count: when you remove a link, you need
to know if you have removed the last one.  In this case you remove the
inode as well.

Greg
--
See complete headers for address, home page and phone numbers
finger grog@lemis.com for PGP public key


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990413122500.D74226>