Date: Wed, 24 Mar 2010 17:29:56 +1100 From: Peter Jeremy <peterjeremy@acm.org> To: Bruce Evans <brde@optusnet.com.au> Cc: Kirk McKusick <mckusick@mckusick.com>, freebsd-fs@freebsd.org, Ivan Voras <ivoras@freebsd.org> Subject: Re: UFS files in a directory limit? Message-ID: <20100324062956.GA88991@server.vk2pj.dyndns.org> In-Reply-To: <20100324065242.U5160@delplex.bde.org> References: <201003220455.o2M4txXr082327@chez.mckusick.com> <20100324065242.U5160@delplex.bde.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--3MwIy2ne0vdjdPXF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2010-Mar-24 06:53:22 +1100, Bruce Evans <brde@optusnet.com.au> wrote: >On Sun, 21 Mar 2010, Kirk McKusick wrote: >> The only limit on the size of a directory is the number of files that >> you can have in the filesystem. There is a limit of 2^16 directories > 2^15-1 >> within a directory due to the limit on the number of hard links. If we're going to be pedantic, it's 2^15-3 sub-directories: There's a maximum of 2^15-1 hardlinks. One is used for the directory's name in its parent directory, one is used for the '.' entry in the directory itself and one-per-sub-directory is needed for the '..' entry in each sub-directory. (And a single file could theoretically have up to 2^15-1 hardlinks within a single directory - though this would not be particularly sensible). --=20 Peter Jeremy --3MwIy2ne0vdjdPXF Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (FreeBSD) iEYEARECAAYFAkupsWQACgkQ/opHv/APuIeeYQCcC6RUp8Ag4S9UKSon5E8IrUCQ tCMAn36NdQOJOz2ufS+no0/8h7eZ2rJP =rJTf -----END PGP SIGNATURE----- --3MwIy2ne0vdjdPXF--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100324062956.GA88991>