Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Sep 2022 15:21:15 -0400
From:      Aryeh Friedman <aryeh.friedman@gmail.com>
To:        "Steve O'Hara-Smith" <steve@sohara.org>
Cc:        questions@freebsd.org
Subject:   Re: mkdir error message -- what does this mean?
Message-ID:  <CAGBxaXmPZmnbg0FPcov5dfB-rPaKO2eN=0bLgtSqHQCRACEf_w@mail.gmail.com>
In-Reply-To: <20220930200244.31d71c489812fd26c0d39769@sohara.org>
References:  <e293b9c3b1c168ad1eee3a65510b1aa9@nyclocal.net> <CAGBxaXnc_ornipZxX=NgoDagCjcU80vMXZ1EjZr8j-8RrcdJnw@mail.gmail.com> <CAFbbPuhXUqwcq%2BKsdD=q6C-w6JcypZLMKJGb9vUGp2k8r=G3=Q@mail.gmail.com> <20220930200244.31d71c489812fd26c0d39769@sohara.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Sep 30, 2022 at 3:03 PM Steve O'Hara-Smith <steve@sohara.org> wrote:
>
> On Fri, 30 Sep 2022 14:48:09 -0400
> Paul Procacci <pprocacci@gmail.com> wrote:
>
> >      31 EMLINK Too many links. Maximum allowable hard links to a single
> > file has been exceeded (limit of 32767 hard links per file).
> >
> > I betcha the parent directory has at least this many number of objects in
> > it.
>
>         DIRHASH has a lot to answer for, time was we'd jump through hoops
> when writing applications to avoid having huge numbers of files in a
> directory, now nobody notices any problems until they hit the limit.

To make matters worse many modern apps have a legal requirement to
retain files.  The offending app is a medical records system that has
a minimal retention requirements for most of the files of 18 months
and some files as long as 7 years (the offending files where in the
second category since they are the "physical" proscription from a
doctor [the system has several hundred doctors spread over 50 or so
orgs).  Note it took 8 years of moderate to heavy use to hit this
limit and it was only because we never wrote any code to delete
emptied out dirs.
>
> --
> Steve O'Hara-Smith <steve@sohara.org>
>


-- 
Aryeh M. Friedman, Lead Developer, http://www.PetiteCloud.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAGBxaXmPZmnbg0FPcov5dfB-rPaKO2eN=0bLgtSqHQCRACEf_w>