From owner-freebsd-fs@FreeBSD.ORG Tue Mar 23 21:59:01 2010 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1BC1E106566B for ; Tue, 23 Mar 2010 21:59:01 +0000 (UTC) (envelope-from brde@optusnet.com.au) Received: from fallbackmx07.syd.optusnet.com.au (fallbackmx07.syd.optusnet.com.au [211.29.132.9]) by mx1.freebsd.org (Postfix) with ESMTP id 3E1318FC0C for ; Tue, 23 Mar 2010 21:58:59 +0000 (UTC) Received: from mail10.syd.optusnet.com.au (mail10.syd.optusnet.com.au [211.29.132.191]) by fallbackmx07.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o2NJrQJu010125 for ; Wed, 24 Mar 2010 06:53:26 +1100 Received: from c122-106-174-6.carlnfd1.nsw.optusnet.com.au (c122-106-174-6.carlnfd1.nsw.optusnet.com.au [122.106.174.6]) by mail10.syd.optusnet.com.au (8.13.1/8.13.1) with ESMTP id o2NJrMbG014829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 24 Mar 2010 06:53:23 +1100 Date: Wed, 24 Mar 2010 06:53:22 +1100 (EST) From: Bruce Evans X-X-Sender: bde@delplex.bde.org To: Kirk McKusick In-Reply-To: <201003220455.o2M4txXr082327@chez.mckusick.com> Message-ID: <20100324065242.U5160@delplex.bde.org> References: <201003220455.o2M4txXr082327@chez.mckusick.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org, Ivan Voras Subject: Re: UFS files in a directory limit? X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2010 21:59:01 -0000 On Sun, 21 Mar 2010, Kirk McKusick wrote: >> From: Ivan Voras >> What is the limit on the number of files in a directory on UFS? I always >> thought it is 32,767 (or near it) but now I see several directories on a >> server with more than 36,000 files (yes it's inefficient, that's not the >> point). > > 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. Bruce