From owner-freebsd-questions@FreeBSD.ORG Tue Dec 30 20:41:13 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DC3CC16A4CE for ; Tue, 30 Dec 2003 20:41:13 -0800 (PST) Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by mx1.FreeBSD.org (Postfix) with ESMTP id D063F43D41 for ; Tue, 30 Dec 2003 20:41:12 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.12.10/8.12.10) id hBV4f9SQ025154; Tue, 30 Dec 2003 22:41:09 -0600 (CST) (envelope-from dan) Date: Tue, 30 Dec 2003 22:41:09 -0600 From: Dan Nelson To: Larry Johnson Message-ID: <20031231044108.GA84812@dan.emsphone.com> References: <1622164858.20031230150735@cooljohnsons.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1622164858.20031230150735@cooljohnsons.com> X-OS: FreeBSD 5.2-CURRENT X-message-flag: Outlook Error User-Agent: Mutt/1.5.5.1i cc: freebsd-questions@freebsd.org Subject: Re: file system X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 31 Dec 2003 04:41:14 -0000 In the last episode (Dec 30), Larry Johnson said: > The file systems used in Linux are limited to 32,000 files or > subdirectories within any given directory. Does anybody know what the > limit is in FreeBSD? Can't find any info about this anywhere. I don't think there's really a limit on the number of files; I quite easily created 90k files in a directory with a shell script. The number of subdirectories in one directory is 32766, since the link count for a directory is stored as a signed 16-bit integer, and the parent directory will end up with 32767 links (one for itself, and 32766 to .. in each child directory). This is also trivial to verify with a shell script. -- Dan Nelson dnelson@allantgroup.com