trinity-users@lists.pearsoncomputing.net

Message: previous - next
Month: November 2016

Re: [trinity-users] Directory depth

From: "E. Liddell" <ejlddll@...>
Date: Sun, 20 Nov 2016 12:42:26 -0500
On Sun, 20 Nov 2016 14:38:26 +0000
Baron <baron@...> wrote:

> Quick question. 32 Bit LinuxOS, Trinity 14.0.
> Is there a limit to directory depth ? if so what is it.

I believe the limit is the length of the path in bytes, which will vary according 
to what filesystem you're using, how your kernel is configured, etc.

What documentation I can find suggests 4096 bytes is often set as the limit.
So if you haven't done any special setup and you're using single-character directory 
names on ext4 or similar, that's a bit more than 2000 levels of nesting, although
you might run out of inodes or something first.  Using sane directory names
will give you less depth: 7 characters -> ~500 levels.

There is one exception to this:  the filesystem normally used for data CDs
seems to have a hard-coded limit of eight directory levels regardless of path
length.

E. Liddell