Re: How many directories can I have ?

From: Barry Margolin (barmar_at_alum.mit.edu)
Date: 10/27/04


Date: Wed, 27 Oct 2004 00:16:54 -0400

In article <2004102612363050073%tonywalton@suncom>,
 Tony Walton <tony.walton@s_u_n.com> wrote:

> User-Agent: Unison/1.5.2
>
> On 2004-10-26 01:23:05 +0100, Barry Margolin <barmar@alum.mit.edu> said:
>
> >
> > There's no particular limit to directories.
>
> Except that a subdirectory creates a link to its parent. Since each
> link increments the link count in the parent, and the link count is an
> unsigned short, there's a hard limit of 32765 subdirectories in a
> directory (all referring to UFS).

I didn't get the impression that the OP was asking about directories at
a single level, just the total number in the entire filesystem.

-- 
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***


Relevant Pages

  • Re: How many directories can I have ?
    ... User-Agent: Unison/1.5.2 ... Except that a subdirectory creates a link to its parent. ... link increments the link count in the parent, and the link count is an ... directory (all referring to UFS). ...
    (comp.sys.sun.admin)
  • Re: reiser4 plugins
    ... parent pointers starting from A. If you ever reach B, ... you don't have a cycle. ... or too much branching with hard links (i.e. nodes with too many ... filesystem, the VFS change would have to be something where the ...
    (Linux-Kernel)
  • Re: what is necessary for directory hard links
    ... to work is creating hard-links to directories and renaming directories ... cross-directory. ... pass through the new parent into the victim and back to the new ... directories in the filesystem. ...
    (Linux-Kernel)