Re: mkdir error message -- what does this mean?

From: Paul Procacci <pprocacci_at_gmail.com>
Date: Fri, 30 Sep 2022 19:52:03 UTC
Hey Aryeh,

You can still retain the files, but you just need to organize them in a
fashion in which the parent (or otherwise) doesn't reach the limit.
I'd suggest the easiest way is organizing them by year or even going a bit
more fine tuned like parent/year/month/day ... or maybe even
parent/archive/year/month ... or .... you get the idea.  There are many
ways to skin this cat.
Regardless of what you decide, you now know there's a limit and can
conceivably determine the best way of fixing it.  ;)

Thanks,
Paul Procacci

On Fri, Sep 30, 2022 at 3:21 PM Aryeh Friedman <aryeh.friedman@gmail.com>
wrote:

> 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
>
>

-- 
__________________

:(){ :|:& };: